From 7a4fd30953179eaa959f88f78ee239d58885e62c Mon Sep 17 00:00:00 2001 From: Alec Petersen Date: Mon, 28 Jul 2025 13:46:59 -0600 Subject: [PATCH 1/7] Remove dependency on readOnlyVars to implement Equatable --- .../csharp/libraries/generichost/modelGeneric.mustache | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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..53b1c3321618 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 @@ -383,8 +381,6 @@ return hashCode; } } - {{/-first}} - {{/readOnlyVars}} {{/equatable}} {{#validatable}} {{^parentModel}} From 4f2bcace075d1cfe1ce36ba73a564f1d2f9e3495 Mon Sep 17 00:00:00 2001 From: Alec Petersen Date: Mon, 28 Jul 2025 13:47:16 -0600 Subject: [PATCH 2/7] Use allVars when creating .Equals and .GetHashCode --- .../libraries/generichost/modelGeneric.mustache | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 53b1c3321618..9180805b6aff 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 @@ -311,7 +311,7 @@ if (input == null) return false; - return {{#parent}}base.Equals(input) && {{/parent}}{{#readOnlyVars}}{{^isInherited}}{{^isContainer}} + return {{#parent}}base.Equals(input) && {{/parent}}{{#allVars}}{{^isInherited}}{{^isContainer}} ( {{name}} == input.{{name}} || {{^vendorExtensions.x-is-value-type}} @@ -327,7 +327,7 @@ {{^vendorExtensions.x-is-value-type}}{{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}} + ){{^-last}} && {{/-last}}{{/isContainer}}{{/isInherited}}{{/allVars}}{{^allVars}}{{#parent}}base.Equals(input){{/parent}}{{^parent}}false{{/parent}}{{/allVars}}{{^isAdditionalPropertiesTrue}};{{/isAdditionalPropertiesTrue}} {{#isAdditionalPropertiesTrue}} {{^parentModel}} && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); @@ -350,14 +350,14 @@ {{^parent}} int hashCode = 41; {{/parent}} - {{#readOnlyVars}} + {{#allVars}} {{#required}} {{^isNullable}} hashCode = (hashCode * 59) + {{name}}.GetHashCode(); {{/isNullable}} {{/required}} - {{/readOnlyVars}} - {{#readOnlyVars}} + {{/allVars}} + {{#allVars}} {{#lambda.copy}} if ({{name}} != null) hashCode = (hashCode * 59) + {{name}}.GetHashCode(); @@ -371,7 +371,7 @@ {{#lambda.pasteOnce}} {{/lambda.pasteOnce}} {{/required}} - {{/readOnlyVars}} + {{/allVars}} {{#isAdditionalPropertiesTrue}} {{^parentModel}} hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode(); From 6d63499b398a0b97ede1504daaf30e3d75e73bbe Mon Sep 17 00:00:00 2001 From: Alec Petersen Date: Mon, 28 Jul 2025 14:00:07 -0600 Subject: [PATCH 3/7] Remove dependency on readOnlyVars to implement IEquatable --- .../csharp/libraries/generichost/ImplementsIEquatable.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From a45fc672547a44955ab0b8ed11eb1e84e13689a7 Mon Sep 17 00:00:00 2001 From: Alec Petersen Date: Mon, 28 Jul 2025 14:00:26 -0600 Subject: [PATCH 4/7] Update samples --- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 48 +++++- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Person.cs | 46 +++++- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Apple.cs | 49 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 48 +++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 49 +++++- .../src/Org.OpenAPITools/Model/Activity.cs | 40 ++++- .../ActivityOutputElementRepresentation.cs | 43 ++++- .../Model/AdditionalPropertiesClass.cs | 61 +++++++- .../src/Org.OpenAPITools/Model/Animal.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Apple.cs | 46 +++++- .../src/Org.OpenAPITools/Model/AppleReq.cs | 40 ++++- .../Model/ArrayOfArrayOfNumberOnly.cs | 40 ++++- .../Model/ArrayOfNumberOnly.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BananaReq.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BasquePig.cs | 38 ++++- .../Org.OpenAPITools/Model/Capitalization.cs | 55 ++++++- .../src/Org.OpenAPITools/Model/Cat.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Category.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ChildCat.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ClassModel.cs | 40 ++++- .../Model/ComplexQuadrilateral.cs | 39 ++++- .../Org.OpenAPITools/Model/CopyActivity.cs | 38 ++++- .../src/Org.OpenAPITools/Model/DanishPig.cs | 38 ++++- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 40 ++++- .../Model/DeprecatedObject.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Descendant1.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Descendant2.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Dog.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Drawing.cs | 49 +++++- .../src/Org.OpenAPITools/Model/EntityBase.cs | 38 ++++- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 43 ++++- .../src/Org.OpenAPITools/Model/EnumTest.cs | 62 +++++++- .../Model/EquilateralTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/File.cs | 40 ++++- .../Model/FileSchemaTestClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Foo.cs | 40 ++++- .../Model/FooGetDefaultResponse.cs | 40 ++++- .../src/Org.OpenAPITools/Model/FormatTest.cs | 105 ++++++++++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 39 ++++- .../src/Org.OpenAPITools/Model/FruitReq.cs | 36 ++++- .../src/Org.OpenAPITools/Model/GmFruit.cs | 39 ++++- .../Model/GrandparentAnimal.cs | 38 ++++- .../Model/HealthCheckResult.cs | 40 ++++- .../Model/IsoscelesTriangle.cs | 38 ++++- .../src/Org.OpenAPITools/Model/List.cs | 40 ++++- .../Model/LiteralStringClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Mammal.cs | 38 ++++- .../src/Org.OpenAPITools/Model/MapTest.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 40 ++++- .../Model/MixedAnyOfContent.cs | 37 ++++- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 40 ++++- .../Model/MixedOneOfContent.cs | 37 ++++- ...dPropertiesAndAdditionalPropertiesClass.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 40 ++++- .../Model/Model200Response.cs | 43 ++++- .../src/Org.OpenAPITools/Model/ModelClient.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Name.cs | 4 + ...cationtestGetElementsV1ResponseMPayload.cs | 39 ++++- .../Org.OpenAPITools/Model/NullableClass.cs | 73 ++++++++- .../Model/NullableGuidClass.cs | 40 ++++- .../Org.OpenAPITools/Model/NullableShape.cs | 38 ++++- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 40 ++++- .../Model/ObjectWithDeprecatedFields.cs | 49 +++++- .../src/Org.OpenAPITools/Model/OneOfString.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Order.cs | 55 ++++++- .../Org.OpenAPITools/Model/OuterComposite.cs | 46 +++++- .../src/Org.OpenAPITools/Model/ParentPet.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Pet.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Pig.cs | 38 ++++- .../Model/PolymorphicProperty.cs | 37 ++++- .../Org.OpenAPITools/Model/Quadrilateral.cs | 38 ++++- .../Model/QuadrilateralInterface.cs | 38 ++++- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 3 + .../Org.OpenAPITools/Model/RequiredClass.cs | 147 +++++++++++++++++- .../src/Org.OpenAPITools/Model/Result.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Return.cs | 47 +++++- .../Model/RolesReportsHash.cs | 43 ++++- .../Model/RolesReportsHashRole.cs | 40 ++++- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Shape.cs | 38 ++++- .../Org.OpenAPITools/Model/ShapeInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 38 ++++- .../Model/SimpleQuadrilateral.cs | 39 ++++- .../Model/SpecialModelName.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Tag.cs | 43 ++++- .../Model/TestCollectionEndingWithWordList.cs | 40 ++++- .../TestCollectionEndingWithWordListObject.cs | 40 ++++- .../Org.OpenAPITools/Model/TestDescendants.cs | 39 ++++- ...lineFreeformAdditionalPropertiesRequest.cs | 40 ++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Triangle.cs | 38 ++++- .../Model/TriangleInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/User.cs | 73 ++++++++- .../src/Org.OpenAPITools/Model/Whale.cs | 44 +++++- .../src/Org.OpenAPITools/Model/Zebra.cs | 41 ++++- .../Model/ZeroBasedEnumClass.cs | 40 ++++- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Activity.cs | 40 ++++- .../ActivityOutputElementRepresentation.cs | 43 ++++- .../Model/AdditionalPropertiesClass.cs | 61 +++++++- .../src/Org.OpenAPITools/Model/Animal.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Apple.cs | 46 +++++- .../src/Org.OpenAPITools/Model/AppleReq.cs | 40 ++++- .../Model/ArrayOfArrayOfNumberOnly.cs | 40 ++++- .../Model/ArrayOfNumberOnly.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BananaReq.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BasquePig.cs | 38 ++++- .../Org.OpenAPITools/Model/Capitalization.cs | 55 ++++++- .../src/Org.OpenAPITools/Model/Cat.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Category.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ChildCat.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ClassModel.cs | 40 ++++- .../Model/ComplexQuadrilateral.cs | 39 ++++- .../Org.OpenAPITools/Model/CopyActivity.cs | 38 ++++- .../src/Org.OpenAPITools/Model/DanishPig.cs | 38 ++++- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 40 ++++- .../Model/DeprecatedObject.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Descendant1.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Descendant2.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Dog.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Drawing.cs | 49 +++++- .../src/Org.OpenAPITools/Model/EntityBase.cs | 38 ++++- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 43 ++++- .../src/Org.OpenAPITools/Model/EnumTest.cs | 62 +++++++- .../Model/EquilateralTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/File.cs | 40 ++++- .../Model/FileSchemaTestClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Foo.cs | 40 ++++- .../Model/FooGetDefaultResponse.cs | 40 ++++- .../src/Org.OpenAPITools/Model/FormatTest.cs | 105 ++++++++++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 39 ++++- .../src/Org.OpenAPITools/Model/FruitReq.cs | 36 ++++- .../src/Org.OpenAPITools/Model/GmFruit.cs | 39 ++++- .../Model/GrandparentAnimal.cs | 38 ++++- .../Model/HealthCheckResult.cs | 40 ++++- .../Model/IsoscelesTriangle.cs | 38 ++++- .../src/Org.OpenAPITools/Model/List.cs | 40 ++++- .../Model/LiteralStringClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Mammal.cs | 38 ++++- .../src/Org.OpenAPITools/Model/MapTest.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 40 ++++- .../Model/MixedAnyOfContent.cs | 37 ++++- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 40 ++++- .../Model/MixedOneOfContent.cs | 37 ++++- ...dPropertiesAndAdditionalPropertiesClass.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 40 ++++- .../Model/Model200Response.cs | 43 ++++- .../src/Org.OpenAPITools/Model/ModelClient.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Name.cs | 4 + ...cationtestGetElementsV1ResponseMPayload.cs | 39 ++++- .../Org.OpenAPITools/Model/NullableClass.cs | 73 ++++++++- .../Model/NullableGuidClass.cs | 40 ++++- .../Org.OpenAPITools/Model/NullableShape.cs | 38 ++++- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 40 ++++- .../Model/ObjectWithDeprecatedFields.cs | 49 +++++- .../src/Org.OpenAPITools/Model/OneOfString.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Order.cs | 55 ++++++- .../Org.OpenAPITools/Model/OuterComposite.cs | 46 +++++- .../src/Org.OpenAPITools/Model/ParentPet.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Pet.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Pig.cs | 38 ++++- .../Model/PolymorphicProperty.cs | 37 ++++- .../Org.OpenAPITools/Model/Quadrilateral.cs | 38 ++++- .../Model/QuadrilateralInterface.cs | 38 ++++- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 3 + .../Org.OpenAPITools/Model/RequiredClass.cs | 147 +++++++++++++++++- .../src/Org.OpenAPITools/Model/Result.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Return.cs | 47 +++++- .../Model/RolesReportsHash.cs | 43 ++++- .../Model/RolesReportsHashRole.cs | 40 ++++- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Shape.cs | 38 ++++- .../Org.OpenAPITools/Model/ShapeInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 38 ++++- .../Model/SimpleQuadrilateral.cs | 39 ++++- .../Model/SpecialModelName.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Tag.cs | 43 ++++- .../Model/TestCollectionEndingWithWordList.cs | 40 ++++- .../TestCollectionEndingWithWordListObject.cs | 40 ++++- .../Org.OpenAPITools/Model/TestDescendants.cs | 39 ++++- ...lineFreeformAdditionalPropertiesRequest.cs | 40 ++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Triangle.cs | 38 ++++- .../Model/TriangleInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/User.cs | 73 ++++++++- .../src/Org.OpenAPITools/Model/Whale.cs | 44 +++++- .../src/Org.OpenAPITools/Model/Zebra.cs | 41 ++++- .../Model/ZeroBasedEnumClass.cs | 40 ++++- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 48 +++++- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Person.cs | 46 +++++- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Apple.cs | 49 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 48 +++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 49 +++++- .../src/Org.OpenAPITools/Model/Activity.cs | 40 ++++- .../ActivityOutputElementRepresentation.cs | 43 ++++- .../Model/AdditionalPropertiesClass.cs | 61 +++++++- .../src/Org.OpenAPITools/Model/Animal.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Apple.cs | 46 +++++- .../src/Org.OpenAPITools/Model/AppleReq.cs | 40 ++++- .../Model/ArrayOfArrayOfNumberOnly.cs | 40 ++++- .../Model/ArrayOfNumberOnly.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BananaReq.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BasquePig.cs | 38 ++++- .../Org.OpenAPITools/Model/Capitalization.cs | 55 ++++++- .../src/Org.OpenAPITools/Model/Cat.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Category.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ChildCat.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ClassModel.cs | 40 ++++- .../Model/ComplexQuadrilateral.cs | 39 ++++- .../Org.OpenAPITools/Model/CopyActivity.cs | 38 ++++- .../src/Org.OpenAPITools/Model/DanishPig.cs | 38 ++++- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 40 ++++- .../Model/DeprecatedObject.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Descendant1.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Descendant2.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Dog.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Drawing.cs | 49 +++++- .../src/Org.OpenAPITools/Model/EntityBase.cs | 38 ++++- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 43 ++++- .../src/Org.OpenAPITools/Model/EnumTest.cs | 62 +++++++- .../Model/EquilateralTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/File.cs | 40 ++++- .../Model/FileSchemaTestClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Foo.cs | 40 ++++- .../Model/FooGetDefaultResponse.cs | 40 ++++- .../src/Org.OpenAPITools/Model/FormatTest.cs | 105 ++++++++++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 39 ++++- .../src/Org.OpenAPITools/Model/FruitReq.cs | 36 ++++- .../src/Org.OpenAPITools/Model/GmFruit.cs | 39 ++++- .../Model/GrandparentAnimal.cs | 38 ++++- .../Model/HealthCheckResult.cs | 40 ++++- .../Model/IsoscelesTriangle.cs | 38 ++++- .../src/Org.OpenAPITools/Model/List.cs | 40 ++++- .../Model/LiteralStringClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Mammal.cs | 38 ++++- .../src/Org.OpenAPITools/Model/MapTest.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 40 ++++- .../Model/MixedAnyOfContent.cs | 37 ++++- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 40 ++++- .../Model/MixedOneOfContent.cs | 37 ++++- ...dPropertiesAndAdditionalPropertiesClass.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 40 ++++- .../Model/Model200Response.cs | 43 ++++- .../src/Org.OpenAPITools/Model/ModelClient.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Name.cs | 4 + ...cationtestGetElementsV1ResponseMPayload.cs | 39 ++++- .../Org.OpenAPITools/Model/NullableClass.cs | 73 ++++++++- .../Model/NullableGuidClass.cs | 40 ++++- .../Org.OpenAPITools/Model/NullableShape.cs | 38 ++++- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 40 ++++- .../Model/ObjectWithDeprecatedFields.cs | 49 +++++- .../src/Org.OpenAPITools/Model/OneOfString.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Order.cs | 55 ++++++- .../Org.OpenAPITools/Model/OuterComposite.cs | 46 +++++- .../src/Org.OpenAPITools/Model/ParentPet.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Pet.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Pig.cs | 38 ++++- .../Model/PolymorphicProperty.cs | 37 ++++- .../Org.OpenAPITools/Model/Quadrilateral.cs | 38 ++++- .../Model/QuadrilateralInterface.cs | 38 ++++- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 3 + .../Org.OpenAPITools/Model/RequiredClass.cs | 147 +++++++++++++++++- .../src/Org.OpenAPITools/Model/Result.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Return.cs | 47 +++++- .../Model/RolesReportsHash.cs | 43 ++++- .../Model/RolesReportsHashRole.cs | 40 ++++- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Shape.cs | 38 ++++- .../Org.OpenAPITools/Model/ShapeInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 38 ++++- .../Model/SimpleQuadrilateral.cs | 39 ++++- .../Model/SpecialModelName.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Tag.cs | 43 ++++- .../Model/TestCollectionEndingWithWordList.cs | 40 ++++- .../TestCollectionEndingWithWordListObject.cs | 40 ++++- .../Org.OpenAPITools/Model/TestDescendants.cs | 39 ++++- ...lineFreeformAdditionalPropertiesRequest.cs | 40 ++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Triangle.cs | 38 ++++- .../Model/TriangleInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/User.cs | 73 ++++++++- .../src/Org.OpenAPITools/Model/Whale.cs | 44 +++++- .../src/Org.OpenAPITools/Model/Zebra.cs | 41 ++++- .../Model/ZeroBasedEnumClass.cs | 40 ++++- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Activity.cs | 40 ++++- .../ActivityOutputElementRepresentation.cs | 43 ++++- .../Model/AdditionalPropertiesClass.cs | 61 +++++++- .../src/Org.OpenAPITools/Model/Animal.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Apple.cs | 46 +++++- .../src/Org.OpenAPITools/Model/AppleReq.cs | 40 ++++- .../Model/ArrayOfArrayOfNumberOnly.cs | 40 ++++- .../Model/ArrayOfNumberOnly.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BananaReq.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BasquePig.cs | 38 ++++- .../Org.OpenAPITools/Model/Capitalization.cs | 55 ++++++- .../src/Org.OpenAPITools/Model/Cat.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Category.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ChildCat.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ClassModel.cs | 40 ++++- .../Model/ComplexQuadrilateral.cs | 39 ++++- .../Org.OpenAPITools/Model/CopyActivity.cs | 38 ++++- .../src/Org.OpenAPITools/Model/DanishPig.cs | 38 ++++- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 40 ++++- .../Model/DeprecatedObject.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Descendant1.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Descendant2.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Dog.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Drawing.cs | 49 +++++- .../src/Org.OpenAPITools/Model/EntityBase.cs | 38 ++++- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 43 ++++- .../src/Org.OpenAPITools/Model/EnumTest.cs | 62 +++++++- .../Model/EquilateralTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/File.cs | 40 ++++- .../Model/FileSchemaTestClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Foo.cs | 40 ++++- .../Model/FooGetDefaultResponse.cs | 40 ++++- .../src/Org.OpenAPITools/Model/FormatTest.cs | 105 ++++++++++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 39 ++++- .../src/Org.OpenAPITools/Model/FruitReq.cs | 36 ++++- .../src/Org.OpenAPITools/Model/GmFruit.cs | 39 ++++- .../Model/GrandparentAnimal.cs | 38 ++++- .../Model/HealthCheckResult.cs | 40 ++++- .../Model/IsoscelesTriangle.cs | 38 ++++- .../src/Org.OpenAPITools/Model/List.cs | 40 ++++- .../Model/LiteralStringClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Mammal.cs | 38 ++++- .../src/Org.OpenAPITools/Model/MapTest.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 40 ++++- .../Model/MixedAnyOfContent.cs | 37 ++++- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 40 ++++- .../Model/MixedOneOfContent.cs | 37 ++++- ...dPropertiesAndAdditionalPropertiesClass.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 40 ++++- .../Model/Model200Response.cs | 43 ++++- .../src/Org.OpenAPITools/Model/ModelClient.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Name.cs | 4 + ...cationtestGetElementsV1ResponseMPayload.cs | 39 ++++- .../Org.OpenAPITools/Model/NullableClass.cs | 73 ++++++++- .../Model/NullableGuidClass.cs | 40 ++++- .../Org.OpenAPITools/Model/NullableShape.cs | 38 ++++- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 40 ++++- .../Model/ObjectWithDeprecatedFields.cs | 49 +++++- .../src/Org.OpenAPITools/Model/OneOfString.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Order.cs | 55 ++++++- .../Org.OpenAPITools/Model/OuterComposite.cs | 46 +++++- .../src/Org.OpenAPITools/Model/ParentPet.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Pet.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Pig.cs | 38 ++++- .../Model/PolymorphicProperty.cs | 37 ++++- .../Org.OpenAPITools/Model/Quadrilateral.cs | 38 ++++- .../Model/QuadrilateralInterface.cs | 38 ++++- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 3 + .../Org.OpenAPITools/Model/RequiredClass.cs | 147 +++++++++++++++++- .../src/Org.OpenAPITools/Model/Result.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Return.cs | 47 +++++- .../Model/RolesReportsHash.cs | 43 ++++- .../Model/RolesReportsHashRole.cs | 40 ++++- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Shape.cs | 38 ++++- .../Org.OpenAPITools/Model/ShapeInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 38 ++++- .../Model/SimpleQuadrilateral.cs | 39 ++++- .../Model/SpecialModelName.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Tag.cs | 43 ++++- .../Model/TestCollectionEndingWithWordList.cs | 40 ++++- .../TestCollectionEndingWithWordListObject.cs | 40 ++++- .../Org.OpenAPITools/Model/TestDescendants.cs | 39 ++++- ...lineFreeformAdditionalPropertiesRequest.cs | 40 ++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Triangle.cs | 38 ++++- .../Model/TriangleInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/User.cs | 73 ++++++++- .../src/Org.OpenAPITools/Model/Whale.cs | 44 +++++- .../src/Org.OpenAPITools/Model/Zebra.cs | 41 ++++- .../Model/ZeroBasedEnumClass.cs | 40 ++++- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 48 +++++- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Person.cs | 46 +++++- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Apple.cs | 49 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 48 +++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 49 +++++- .../src/Org.OpenAPITools/Model/Activity.cs | 40 ++++- .../ActivityOutputElementRepresentation.cs | 43 ++++- .../Model/AdditionalPropertiesClass.cs | 61 +++++++- .../src/Org.OpenAPITools/Model/Animal.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Apple.cs | 46 +++++- .../src/Org.OpenAPITools/Model/AppleReq.cs | 40 ++++- .../Model/ArrayOfArrayOfNumberOnly.cs | 40 ++++- .../Model/ArrayOfNumberOnly.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BananaReq.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BasquePig.cs | 38 ++++- .../Org.OpenAPITools/Model/Capitalization.cs | 55 ++++++- .../src/Org.OpenAPITools/Model/Cat.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Category.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ChildCat.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ClassModel.cs | 40 ++++- .../Model/ComplexQuadrilateral.cs | 39 ++++- .../Org.OpenAPITools/Model/CopyActivity.cs | 38 ++++- .../src/Org.OpenAPITools/Model/DanishPig.cs | 38 ++++- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 40 ++++- .../Model/DeprecatedObject.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Descendant1.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Descendant2.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Dog.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Drawing.cs | 49 +++++- .../src/Org.OpenAPITools/Model/EntityBase.cs | 38 ++++- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 43 ++++- .../src/Org.OpenAPITools/Model/EnumTest.cs | 62 +++++++- .../Model/EquilateralTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/File.cs | 40 ++++- .../Model/FileSchemaTestClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Foo.cs | 40 ++++- .../Model/FooGetDefaultResponse.cs | 40 ++++- .../src/Org.OpenAPITools/Model/FormatTest.cs | 105 ++++++++++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 39 ++++- .../src/Org.OpenAPITools/Model/FruitReq.cs | 36 ++++- .../src/Org.OpenAPITools/Model/GmFruit.cs | 39 ++++- .../Model/GrandparentAnimal.cs | 38 ++++- .../Model/HealthCheckResult.cs | 40 ++++- .../Model/IsoscelesTriangle.cs | 38 ++++- .../src/Org.OpenAPITools/Model/List.cs | 40 ++++- .../Model/LiteralStringClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Mammal.cs | 38 ++++- .../src/Org.OpenAPITools/Model/MapTest.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 40 ++++- .../Model/MixedAnyOfContent.cs | 37 ++++- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 40 ++++- .../Model/MixedOneOfContent.cs | 37 ++++- ...dPropertiesAndAdditionalPropertiesClass.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 40 ++++- .../Model/Model200Response.cs | 43 ++++- .../src/Org.OpenAPITools/Model/ModelClient.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Name.cs | 4 + ...cationtestGetElementsV1ResponseMPayload.cs | 39 ++++- .../Org.OpenAPITools/Model/NullableClass.cs | 73 ++++++++- .../Model/NullableGuidClass.cs | 40 ++++- .../Org.OpenAPITools/Model/NullableShape.cs | 38 ++++- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 40 ++++- .../Model/ObjectWithDeprecatedFields.cs | 49 +++++- .../src/Org.OpenAPITools/Model/OneOfString.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Order.cs | 55 ++++++- .../Org.OpenAPITools/Model/OuterComposite.cs | 46 +++++- .../src/Org.OpenAPITools/Model/ParentPet.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Pet.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Pig.cs | 38 ++++- .../Model/PolymorphicProperty.cs | 37 ++++- .../Org.OpenAPITools/Model/Quadrilateral.cs | 38 ++++- .../Model/QuadrilateralInterface.cs | 38 ++++- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 3 + .../Org.OpenAPITools/Model/RequiredClass.cs | 147 +++++++++++++++++- .../src/Org.OpenAPITools/Model/Result.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Return.cs | 47 +++++- .../Model/RolesReportsHash.cs | 43 ++++- .../Model/RolesReportsHashRole.cs | 40 ++++- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Shape.cs | 38 ++++- .../Org.OpenAPITools/Model/ShapeInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 38 ++++- .../Model/SimpleQuadrilateral.cs | 39 ++++- .../Model/SpecialModelName.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Tag.cs | 43 ++++- .../Model/TestCollectionEndingWithWordList.cs | 40 ++++- .../TestCollectionEndingWithWordListObject.cs | 40 ++++- .../Org.OpenAPITools/Model/TestDescendants.cs | 39 ++++- ...lineFreeformAdditionalPropertiesRequest.cs | 40 ++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Triangle.cs | 38 ++++- .../Model/TriangleInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/User.cs | 73 ++++++++- .../src/Org.OpenAPITools/Model/Whale.cs | 44 +++++- .../src/Org.OpenAPITools/Model/Zebra.cs | 41 ++++- .../Model/ZeroBasedEnumClass.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Activity.cs | 40 ++++- .../ActivityOutputElementRepresentation.cs | 43 ++++- .../Model/AdditionalPropertiesClass.cs | 61 +++++++- .../src/Org.OpenAPITools/Model/Animal.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Apple.cs | 46 +++++- .../src/Org.OpenAPITools/Model/AppleReq.cs | 40 ++++- .../Model/ArrayOfArrayOfNumberOnly.cs | 40 ++++- .../Model/ArrayOfNumberOnly.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BananaReq.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BasquePig.cs | 38 ++++- .../Org.OpenAPITools/Model/Capitalization.cs | 55 ++++++- .../src/Org.OpenAPITools/Model/Cat.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Category.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ChildCat.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ClassModel.cs | 40 ++++- .../Model/ComplexQuadrilateral.cs | 39 ++++- .../Org.OpenAPITools/Model/CopyActivity.cs | 38 ++++- .../src/Org.OpenAPITools/Model/DanishPig.cs | 38 ++++- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 40 ++++- .../Model/DeprecatedObject.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Descendant1.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Descendant2.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Dog.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Drawing.cs | 49 +++++- .../src/Org.OpenAPITools/Model/EntityBase.cs | 38 ++++- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 43 ++++- .../src/Org.OpenAPITools/Model/EnumTest.cs | 62 +++++++- .../Model/EquilateralTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/File.cs | 40 ++++- .../Model/FileSchemaTestClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Foo.cs | 40 ++++- .../Model/FooGetDefaultResponse.cs | 40 ++++- .../src/Org.OpenAPITools/Model/FormatTest.cs | 105 ++++++++++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 39 ++++- .../src/Org.OpenAPITools/Model/FruitReq.cs | 36 ++++- .../src/Org.OpenAPITools/Model/GmFruit.cs | 39 ++++- .../Model/GrandparentAnimal.cs | 38 ++++- .../Model/HealthCheckResult.cs | 40 ++++- .../Model/IsoscelesTriangle.cs | 38 ++++- .../src/Org.OpenAPITools/Model/List.cs | 40 ++++- .../Model/LiteralStringClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Mammal.cs | 38 ++++- .../src/Org.OpenAPITools/Model/MapTest.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 40 ++++- .../Model/MixedAnyOfContent.cs | 37 ++++- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 40 ++++- .../Model/MixedOneOfContent.cs | 37 ++++- ...dPropertiesAndAdditionalPropertiesClass.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 40 ++++- .../Model/Model200Response.cs | 43 ++++- .../src/Org.OpenAPITools/Model/ModelClient.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Name.cs | 4 + ...cationtestGetElementsV1ResponseMPayload.cs | 39 ++++- .../Org.OpenAPITools/Model/NullableClass.cs | 73 ++++++++- .../Model/NullableGuidClass.cs | 40 ++++- .../Org.OpenAPITools/Model/NullableShape.cs | 38 ++++- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 40 ++++- .../Model/ObjectWithDeprecatedFields.cs | 49 +++++- .../src/Org.OpenAPITools/Model/OneOfString.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Order.cs | 55 ++++++- .../Org.OpenAPITools/Model/OuterComposite.cs | 46 +++++- .../src/Org.OpenAPITools/Model/ParentPet.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Pet.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Pig.cs | 38 ++++- .../Model/PolymorphicProperty.cs | 37 ++++- .../Org.OpenAPITools/Model/Quadrilateral.cs | 38 ++++- .../Model/QuadrilateralInterface.cs | 38 ++++- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 3 + .../Org.OpenAPITools/Model/RequiredClass.cs | 147 +++++++++++++++++- .../src/Org.OpenAPITools/Model/Result.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Return.cs | 47 +++++- .../Model/RolesReportsHash.cs | 43 ++++- .../Model/RolesReportsHashRole.cs | 40 ++++- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Shape.cs | 38 ++++- .../Org.OpenAPITools/Model/ShapeInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 38 ++++- .../Model/SimpleQuadrilateral.cs | 39 ++++- .../Model/SpecialModelName.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Tag.cs | 43 ++++- .../Model/TestCollectionEndingWithWordList.cs | 40 ++++- .../TestCollectionEndingWithWordListObject.cs | 40 ++++- .../Org.OpenAPITools/Model/TestDescendants.cs | 39 ++++- ...lineFreeformAdditionalPropertiesRequest.cs | 40 ++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Triangle.cs | 38 ++++- .../Model/TriangleInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/User.cs | 73 ++++++++- .../src/Org.OpenAPITools/Model/Whale.cs | 44 +++++- .../src/Org.OpenAPITools/Model/Zebra.cs | 41 ++++- .../Model/ZeroBasedEnumClass.cs | 40 ++++- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Activity.cs | 40 ++++- .../ActivityOutputElementRepresentation.cs | 43 ++++- .../Model/AdditionalPropertiesClass.cs | 61 +++++++- .../src/Org.OpenAPITools/Model/Animal.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Apple.cs | 46 +++++- .../src/Org.OpenAPITools/Model/AppleReq.cs | 40 ++++- .../Model/ArrayOfArrayOfNumberOnly.cs | 40 ++++- .../Model/ArrayOfNumberOnly.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BananaReq.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BasquePig.cs | 38 ++++- .../Org.OpenAPITools/Model/Capitalization.cs | 55 ++++++- .../src/Org.OpenAPITools/Model/Cat.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Category.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ChildCat.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ClassModel.cs | 40 ++++- .../Model/ComplexQuadrilateral.cs | 39 ++++- .../Org.OpenAPITools/Model/CopyActivity.cs | 38 ++++- .../src/Org.OpenAPITools/Model/DanishPig.cs | 38 ++++- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 40 ++++- .../Model/DeprecatedObject.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Descendant1.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Descendant2.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Dog.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Drawing.cs | 49 +++++- .../src/Org.OpenAPITools/Model/EntityBase.cs | 38 ++++- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 43 ++++- .../src/Org.OpenAPITools/Model/EnumTest.cs | 62 +++++++- .../Model/EquilateralTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/File.cs | 40 ++++- .../Model/FileSchemaTestClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Foo.cs | 40 ++++- .../Model/FooGetDefaultResponse.cs | 40 ++++- .../src/Org.OpenAPITools/Model/FormatTest.cs | 105 ++++++++++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 39 ++++- .../src/Org.OpenAPITools/Model/FruitReq.cs | 36 ++++- .../src/Org.OpenAPITools/Model/GmFruit.cs | 39 ++++- .../Model/GrandparentAnimal.cs | 38 ++++- .../Model/HealthCheckResult.cs | 40 ++++- .../Model/IsoscelesTriangle.cs | 38 ++++- .../src/Org.OpenAPITools/Model/List.cs | 40 ++++- .../Model/LiteralStringClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Mammal.cs | 38 ++++- .../src/Org.OpenAPITools/Model/MapTest.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 40 ++++- .../Model/MixedAnyOfContent.cs | 37 ++++- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 40 ++++- .../Model/MixedOneOfContent.cs | 37 ++++- ...dPropertiesAndAdditionalPropertiesClass.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 40 ++++- .../Model/Model200Response.cs | 43 ++++- .../src/Org.OpenAPITools/Model/ModelClient.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Name.cs | 4 + ...cationtestGetElementsV1ResponseMPayload.cs | 39 ++++- .../Org.OpenAPITools/Model/NullableClass.cs | 73 ++++++++- .../Model/NullableGuidClass.cs | 40 ++++- .../Org.OpenAPITools/Model/NullableShape.cs | 38 ++++- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 40 ++++- .../Model/ObjectWithDeprecatedFields.cs | 49 +++++- .../src/Org.OpenAPITools/Model/OneOfString.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Order.cs | 55 ++++++- .../Org.OpenAPITools/Model/OuterComposite.cs | 46 +++++- .../src/Org.OpenAPITools/Model/ParentPet.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Pet.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Pig.cs | 38 ++++- .../Model/PolymorphicProperty.cs | 37 ++++- .../Org.OpenAPITools/Model/Quadrilateral.cs | 38 ++++- .../Model/QuadrilateralInterface.cs | 38 ++++- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 3 + .../Org.OpenAPITools/Model/RequiredClass.cs | 147 +++++++++++++++++- .../src/Org.OpenAPITools/Model/Result.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Return.cs | 47 +++++- .../Model/RolesReportsHash.cs | 43 ++++- .../Model/RolesReportsHashRole.cs | 40 ++++- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Shape.cs | 38 ++++- .../Org.OpenAPITools/Model/ShapeInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 38 ++++- .../Model/SimpleQuadrilateral.cs | 39 ++++- .../Model/SpecialModelName.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Tag.cs | 43 ++++- .../Model/TestCollectionEndingWithWordList.cs | 40 ++++- .../TestCollectionEndingWithWordListObject.cs | 40 ++++- .../Org.OpenAPITools/Model/TestDescendants.cs | 39 ++++- ...lineFreeformAdditionalPropertiesRequest.cs | 40 ++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Triangle.cs | 38 ++++- .../Model/TriangleInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/User.cs | 73 ++++++++- .../src/Org.OpenAPITools/Model/Whale.cs | 44 +++++- .../src/Org.OpenAPITools/Model/Zebra.cs | 41 ++++- .../Model/ZeroBasedEnumClass.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Activity.cs | 40 ++++- .../ActivityOutputElementRepresentation.cs | 43 ++++- .../Model/AdditionalPropertiesClass.cs | 61 +++++++- .../src/Org.OpenAPITools/Model/Animal.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Apple.cs | 46 +++++- .../src/Org.OpenAPITools/Model/AppleReq.cs | 40 ++++- .../Model/ArrayOfArrayOfNumberOnly.cs | 40 ++++- .../Model/ArrayOfNumberOnly.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BananaReq.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BasquePig.cs | 38 ++++- .../Org.OpenAPITools/Model/Capitalization.cs | 55 ++++++- .../src/Org.OpenAPITools/Model/Cat.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Category.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ChildCat.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ClassModel.cs | 40 ++++- .../Model/ComplexQuadrilateral.cs | 39 ++++- .../Org.OpenAPITools/Model/CopyActivity.cs | 38 ++++- .../src/Org.OpenAPITools/Model/DanishPig.cs | 38 ++++- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 40 ++++- .../Model/DeprecatedObject.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Descendant1.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Descendant2.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Dog.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Drawing.cs | 49 +++++- .../src/Org.OpenAPITools/Model/EntityBase.cs | 38 ++++- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 43 ++++- .../src/Org.OpenAPITools/Model/EnumTest.cs | 62 +++++++- .../Model/EquilateralTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/File.cs | 40 ++++- .../Model/FileSchemaTestClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Foo.cs | 40 ++++- .../Model/FooGetDefaultResponse.cs | 40 ++++- .../src/Org.OpenAPITools/Model/FormatTest.cs | 105 ++++++++++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 39 ++++- .../src/Org.OpenAPITools/Model/FruitReq.cs | 36 ++++- .../src/Org.OpenAPITools/Model/GmFruit.cs | 39 ++++- .../Model/GrandparentAnimal.cs | 38 ++++- .../Model/HealthCheckResult.cs | 40 ++++- .../Model/IsoscelesTriangle.cs | 38 ++++- .../src/Org.OpenAPITools/Model/List.cs | 40 ++++- .../Model/LiteralStringClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Mammal.cs | 38 ++++- .../src/Org.OpenAPITools/Model/MapTest.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 40 ++++- .../Model/MixedAnyOfContent.cs | 37 ++++- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 40 ++++- .../Model/MixedOneOfContent.cs | 37 ++++- ...dPropertiesAndAdditionalPropertiesClass.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 40 ++++- .../Model/Model200Response.cs | 43 ++++- .../src/Org.OpenAPITools/Model/ModelClient.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Name.cs | 4 + ...cationtestGetElementsV1ResponseMPayload.cs | 39 ++++- .../Org.OpenAPITools/Model/NullableClass.cs | 73 ++++++++- .../Model/NullableGuidClass.cs | 40 ++++- .../Org.OpenAPITools/Model/NullableShape.cs | 38 ++++- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 40 ++++- .../Model/ObjectWithDeprecatedFields.cs | 49 +++++- .../src/Org.OpenAPITools/Model/OneOfString.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Order.cs | 55 ++++++- .../Org.OpenAPITools/Model/OuterComposite.cs | 46 +++++- .../src/Org.OpenAPITools/Model/ParentPet.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Pet.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Pig.cs | 38 ++++- .../Model/PolymorphicProperty.cs | 37 ++++- .../Org.OpenAPITools/Model/Quadrilateral.cs | 38 ++++- .../Model/QuadrilateralInterface.cs | 38 ++++- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 3 + .../Org.OpenAPITools/Model/RequiredClass.cs | 147 +++++++++++++++++- .../src/Org.OpenAPITools/Model/Result.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Return.cs | 47 +++++- .../Model/RolesReportsHash.cs | 43 ++++- .../Model/RolesReportsHashRole.cs | 40 ++++- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Shape.cs | 38 ++++- .../Org.OpenAPITools/Model/ShapeInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 38 ++++- .../Model/SimpleQuadrilateral.cs | 39 ++++- .../Model/SpecialModelName.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Tag.cs | 43 ++++- .../Model/TestCollectionEndingWithWordList.cs | 40 ++++- .../TestCollectionEndingWithWordListObject.cs | 40 ++++- .../Org.OpenAPITools/Model/TestDescendants.cs | 39 ++++- ...lineFreeformAdditionalPropertiesRequest.cs | 40 ++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Triangle.cs | 38 ++++- .../Model/TriangleInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/User.cs | 73 ++++++++- .../src/Org.OpenAPITools/Model/Whale.cs | 44 +++++- .../src/Org.OpenAPITools/Model/Zebra.cs | 41 ++++- .../Model/ZeroBasedEnumClass.cs | 40 ++++- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 48 +++++- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Person.cs | 46 +++++- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Apple.cs | 49 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 48 +++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 49 +++++- .../src/Org.OpenAPITools/Model/Activity.cs | 40 ++++- .../ActivityOutputElementRepresentation.cs | 43 ++++- .../Model/AdditionalPropertiesClass.cs | 61 +++++++- .../src/Org.OpenAPITools/Model/Animal.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Apple.cs | 46 +++++- .../src/Org.OpenAPITools/Model/AppleReq.cs | 40 ++++- .../Model/ArrayOfArrayOfNumberOnly.cs | 40 ++++- .../Model/ArrayOfNumberOnly.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BananaReq.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BasquePig.cs | 38 ++++- .../Org.OpenAPITools/Model/Capitalization.cs | 55 ++++++- .../src/Org.OpenAPITools/Model/Cat.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Category.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ChildCat.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ClassModel.cs | 40 ++++- .../Model/ComplexQuadrilateral.cs | 39 ++++- .../Org.OpenAPITools/Model/CopyActivity.cs | 38 ++++- .../src/Org.OpenAPITools/Model/DanishPig.cs | 38 ++++- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 40 ++++- .../Model/DeprecatedObject.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Descendant1.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Descendant2.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Dog.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Drawing.cs | 49 +++++- .../src/Org.OpenAPITools/Model/EntityBase.cs | 38 ++++- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 43 ++++- .../src/Org.OpenAPITools/Model/EnumTest.cs | 62 +++++++- .../Model/EquilateralTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/File.cs | 40 ++++- .../Model/FileSchemaTestClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Foo.cs | 40 ++++- .../Model/FooGetDefaultResponse.cs | 40 ++++- .../src/Org.OpenAPITools/Model/FormatTest.cs | 105 ++++++++++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 39 ++++- .../src/Org.OpenAPITools/Model/FruitReq.cs | 36 ++++- .../src/Org.OpenAPITools/Model/GmFruit.cs | 39 ++++- .../Model/GrandparentAnimal.cs | 38 ++++- .../Model/HealthCheckResult.cs | 40 ++++- .../Model/IsoscelesTriangle.cs | 38 ++++- .../src/Org.OpenAPITools/Model/List.cs | 40 ++++- .../Model/LiteralStringClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Mammal.cs | 38 ++++- .../src/Org.OpenAPITools/Model/MapTest.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 40 ++++- .../Model/MixedAnyOfContent.cs | 37 ++++- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 40 ++++- .../Model/MixedOneOfContent.cs | 37 ++++- ...dPropertiesAndAdditionalPropertiesClass.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 40 ++++- .../Model/Model200Response.cs | 43 ++++- .../src/Org.OpenAPITools/Model/ModelClient.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Name.cs | 4 + ...cationtestGetElementsV1ResponseMPayload.cs | 39 ++++- .../Org.OpenAPITools/Model/NullableClass.cs | 73 ++++++++- .../Model/NullableGuidClass.cs | 40 ++++- .../Org.OpenAPITools/Model/NullableShape.cs | 38 ++++- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 40 ++++- .../Model/ObjectWithDeprecatedFields.cs | 49 +++++- .../src/Org.OpenAPITools/Model/OneOfString.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Order.cs | 55 ++++++- .../Org.OpenAPITools/Model/OuterComposite.cs | 46 +++++- .../src/Org.OpenAPITools/Model/ParentPet.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Pet.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Pig.cs | 38 ++++- .../Model/PolymorphicProperty.cs | 37 ++++- .../Org.OpenAPITools/Model/Quadrilateral.cs | 38 ++++- .../Model/QuadrilateralInterface.cs | 38 ++++- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 3 + .../Org.OpenAPITools/Model/RequiredClass.cs | 147 +++++++++++++++++- .../src/Org.OpenAPITools/Model/Result.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Return.cs | 47 +++++- .../Model/RolesReportsHash.cs | 43 ++++- .../Model/RolesReportsHashRole.cs | 40 ++++- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Shape.cs | 38 ++++- .../Org.OpenAPITools/Model/ShapeInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 38 ++++- .../Model/SimpleQuadrilateral.cs | 39 ++++- .../Model/SpecialModelName.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Tag.cs | 43 ++++- .../Model/TestCollectionEndingWithWordList.cs | 40 ++++- .../TestCollectionEndingWithWordListObject.cs | 40 ++++- .../Org.OpenAPITools/Model/TestDescendants.cs | 39 ++++- ...lineFreeformAdditionalPropertiesRequest.cs | 40 ++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Triangle.cs | 38 ++++- .../Model/TriangleInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/User.cs | 73 ++++++++- .../src/Org.OpenAPITools/Model/Whale.cs | 44 +++++- .../src/Org.OpenAPITools/Model/Zebra.cs | 41 ++++- .../Model/ZeroBasedEnumClass.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Activity.cs | 40 ++++- .../ActivityOutputElementRepresentation.cs | 43 ++++- .../Model/AdditionalPropertiesClass.cs | 61 +++++++- .../src/Org.OpenAPITools/Model/Animal.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Apple.cs | 46 +++++- .../src/Org.OpenAPITools/Model/AppleReq.cs | 40 ++++- .../Model/ArrayOfArrayOfNumberOnly.cs | 40 ++++- .../Model/ArrayOfNumberOnly.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BananaReq.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BasquePig.cs | 38 ++++- .../Org.OpenAPITools/Model/Capitalization.cs | 55 ++++++- .../src/Org.OpenAPITools/Model/Cat.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Category.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ChildCat.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ClassModel.cs | 40 ++++- .../Model/ComplexQuadrilateral.cs | 39 ++++- .../Org.OpenAPITools/Model/CopyActivity.cs | 38 ++++- .../src/Org.OpenAPITools/Model/DanishPig.cs | 38 ++++- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 40 ++++- .../Model/DeprecatedObject.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Descendant1.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Descendant2.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Dog.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Drawing.cs | 49 +++++- .../src/Org.OpenAPITools/Model/EntityBase.cs | 38 ++++- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 43 ++++- .../src/Org.OpenAPITools/Model/EnumTest.cs | 62 +++++++- .../Model/EquilateralTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/File.cs | 40 ++++- .../Model/FileSchemaTestClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Foo.cs | 40 ++++- .../Model/FooGetDefaultResponse.cs | 40 ++++- .../src/Org.OpenAPITools/Model/FormatTest.cs | 105 ++++++++++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 39 ++++- .../src/Org.OpenAPITools/Model/FruitReq.cs | 36 ++++- .../src/Org.OpenAPITools/Model/GmFruit.cs | 39 ++++- .../Model/GrandparentAnimal.cs | 38 ++++- .../Model/HealthCheckResult.cs | 40 ++++- .../Model/IsoscelesTriangle.cs | 38 ++++- .../src/Org.OpenAPITools/Model/List.cs | 40 ++++- .../Model/LiteralStringClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Mammal.cs | 38 ++++- .../src/Org.OpenAPITools/Model/MapTest.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 40 ++++- .../Model/MixedAnyOfContent.cs | 37 ++++- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 40 ++++- .../Model/MixedOneOfContent.cs | 37 ++++- ...dPropertiesAndAdditionalPropertiesClass.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 40 ++++- .../Model/Model200Response.cs | 43 ++++- .../src/Org.OpenAPITools/Model/ModelClient.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Name.cs | 4 + ...cationtestGetElementsV1ResponseMPayload.cs | 39 ++++- .../Org.OpenAPITools/Model/NullableClass.cs | 73 ++++++++- .../Model/NullableGuidClass.cs | 40 ++++- .../Org.OpenAPITools/Model/NullableShape.cs | 38 ++++- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 40 ++++- .../Model/ObjectWithDeprecatedFields.cs | 49 +++++- .../src/Org.OpenAPITools/Model/OneOfString.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Order.cs | 55 ++++++- .../Org.OpenAPITools/Model/OuterComposite.cs | 46 +++++- .../src/Org.OpenAPITools/Model/ParentPet.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Pet.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Pig.cs | 38 ++++- .../Model/PolymorphicProperty.cs | 37 ++++- .../Org.OpenAPITools/Model/Quadrilateral.cs | 38 ++++- .../Model/QuadrilateralInterface.cs | 38 ++++- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 3 + .../Org.OpenAPITools/Model/RequiredClass.cs | 147 +++++++++++++++++- .../src/Org.OpenAPITools/Model/Result.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Return.cs | 47 +++++- .../Model/RolesReportsHash.cs | 43 ++++- .../Model/RolesReportsHashRole.cs | 40 ++++- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Shape.cs | 38 ++++- .../Org.OpenAPITools/Model/ShapeInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 38 ++++- .../Model/SimpleQuadrilateral.cs | 39 ++++- .../Model/SpecialModelName.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Tag.cs | 43 ++++- .../Model/TestCollectionEndingWithWordList.cs | 40 ++++- .../TestCollectionEndingWithWordListObject.cs | 40 ++++- .../Org.OpenAPITools/Model/TestDescendants.cs | 39 ++++- ...lineFreeformAdditionalPropertiesRequest.cs | 40 ++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Triangle.cs | 38 ++++- .../Model/TriangleInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/User.cs | 73 ++++++++- .../src/Org.OpenAPITools/Model/Whale.cs | 44 +++++- .../src/Org.OpenAPITools/Model/Zebra.cs | 41 ++++- .../Model/ZeroBasedEnumClass.cs | 40 ++++- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Activity.cs | 40 ++++- .../ActivityOutputElementRepresentation.cs | 43 ++++- .../Model/AdditionalPropertiesClass.cs | 61 +++++++- .../src/Org.OpenAPITools/Model/Animal.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Apple.cs | 46 +++++- .../src/Org.OpenAPITools/Model/AppleReq.cs | 40 ++++- .../Model/ArrayOfArrayOfNumberOnly.cs | 40 ++++- .../Model/ArrayOfNumberOnly.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BananaReq.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BasquePig.cs | 38 ++++- .../Org.OpenAPITools/Model/Capitalization.cs | 55 ++++++- .../src/Org.OpenAPITools/Model/Cat.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Category.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ChildCat.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ClassModel.cs | 40 ++++- .../Model/ComplexQuadrilateral.cs | 39 ++++- .../Org.OpenAPITools/Model/CopyActivity.cs | 38 ++++- .../src/Org.OpenAPITools/Model/DanishPig.cs | 38 ++++- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 40 ++++- .../Model/DeprecatedObject.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Descendant1.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Descendant2.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Dog.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Drawing.cs | 49 +++++- .../src/Org.OpenAPITools/Model/EntityBase.cs | 38 ++++- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 43 ++++- .../src/Org.OpenAPITools/Model/EnumTest.cs | 62 +++++++- .../Model/EquilateralTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/File.cs | 40 ++++- .../Model/FileSchemaTestClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Foo.cs | 40 ++++- .../Model/FooGetDefaultResponse.cs | 40 ++++- .../src/Org.OpenAPITools/Model/FormatTest.cs | 105 ++++++++++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 39 ++++- .../src/Org.OpenAPITools/Model/FruitReq.cs | 36 ++++- .../src/Org.OpenAPITools/Model/GmFruit.cs | 39 ++++- .../Model/GrandparentAnimal.cs | 38 ++++- .../Model/HealthCheckResult.cs | 40 ++++- .../Model/IsoscelesTriangle.cs | 38 ++++- .../src/Org.OpenAPITools/Model/List.cs | 40 ++++- .../Model/LiteralStringClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Mammal.cs | 38 ++++- .../src/Org.OpenAPITools/Model/MapTest.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 40 ++++- .../Model/MixedAnyOfContent.cs | 37 ++++- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 40 ++++- .../Model/MixedOneOfContent.cs | 37 ++++- ...dPropertiesAndAdditionalPropertiesClass.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 40 ++++- .../Model/Model200Response.cs | 43 ++++- .../src/Org.OpenAPITools/Model/ModelClient.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Name.cs | 4 + ...cationtestGetElementsV1ResponseMPayload.cs | 39 ++++- .../Org.OpenAPITools/Model/NullableClass.cs | 73 ++++++++- .../Model/NullableGuidClass.cs | 40 ++++- .../Org.OpenAPITools/Model/NullableShape.cs | 38 ++++- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 40 ++++- .../Model/ObjectWithDeprecatedFields.cs | 49 +++++- .../src/Org.OpenAPITools/Model/OneOfString.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Order.cs | 55 ++++++- .../Org.OpenAPITools/Model/OuterComposite.cs | 46 +++++- .../src/Org.OpenAPITools/Model/ParentPet.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Pet.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Pig.cs | 38 ++++- .../Model/PolymorphicProperty.cs | 37 ++++- .../Org.OpenAPITools/Model/Quadrilateral.cs | 38 ++++- .../Model/QuadrilateralInterface.cs | 38 ++++- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 3 + .../Org.OpenAPITools/Model/RequiredClass.cs | 147 +++++++++++++++++- .../src/Org.OpenAPITools/Model/Result.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Return.cs | 47 +++++- .../Model/RolesReportsHash.cs | 43 ++++- .../Model/RolesReportsHashRole.cs | 40 ++++- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Shape.cs | 38 ++++- .../Org.OpenAPITools/Model/ShapeInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 38 ++++- .../Model/SimpleQuadrilateral.cs | 39 ++++- .../Model/SpecialModelName.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Tag.cs | 43 ++++- .../Model/TestCollectionEndingWithWordList.cs | 40 ++++- .../TestCollectionEndingWithWordListObject.cs | 40 ++++- .../Org.OpenAPITools/Model/TestDescendants.cs | 39 ++++- ...lineFreeformAdditionalPropertiesRequest.cs | 40 ++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Triangle.cs | 38 ++++- .../Model/TriangleInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/User.cs | 73 ++++++++- .../src/Org.OpenAPITools/Model/Whale.cs | 44 +++++- .../src/Org.OpenAPITools/Model/Zebra.cs | 41 ++++- .../Model/ZeroBasedEnumClass.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Activity.cs | 40 ++++- .../ActivityOutputElementRepresentation.cs | 43 ++++- .../Model/AdditionalPropertiesClass.cs | 61 +++++++- .../src/Org.OpenAPITools/Model/Animal.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Apple.cs | 46 +++++- .../src/Org.OpenAPITools/Model/AppleReq.cs | 40 ++++- .../Model/ArrayOfArrayOfNumberOnly.cs | 40 ++++- .../Model/ArrayOfNumberOnly.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BananaReq.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BasquePig.cs | 38 ++++- .../Org.OpenAPITools/Model/Capitalization.cs | 55 ++++++- .../src/Org.OpenAPITools/Model/Cat.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Category.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ChildCat.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ClassModel.cs | 40 ++++- .../Model/ComplexQuadrilateral.cs | 39 ++++- .../Org.OpenAPITools/Model/CopyActivity.cs | 38 ++++- .../src/Org.OpenAPITools/Model/DanishPig.cs | 38 ++++- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 40 ++++- .../Model/DeprecatedObject.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Descendant1.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Descendant2.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Dog.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Drawing.cs | 49 +++++- .../src/Org.OpenAPITools/Model/EntityBase.cs | 38 ++++- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 43 ++++- .../src/Org.OpenAPITools/Model/EnumTest.cs | 62 +++++++- .../Model/EquilateralTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/File.cs | 40 ++++- .../Model/FileSchemaTestClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Foo.cs | 40 ++++- .../Model/FooGetDefaultResponse.cs | 40 ++++- .../src/Org.OpenAPITools/Model/FormatTest.cs | 105 ++++++++++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 39 ++++- .../src/Org.OpenAPITools/Model/FruitReq.cs | 36 ++++- .../src/Org.OpenAPITools/Model/GmFruit.cs | 39 ++++- .../Model/GrandparentAnimal.cs | 38 ++++- .../Model/HealthCheckResult.cs | 40 ++++- .../Model/IsoscelesTriangle.cs | 38 ++++- .../src/Org.OpenAPITools/Model/List.cs | 40 ++++- .../Model/LiteralStringClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Mammal.cs | 38 ++++- .../src/Org.OpenAPITools/Model/MapTest.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 40 ++++- .../Model/MixedAnyOfContent.cs | 37 ++++- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 40 ++++- .../Model/MixedOneOfContent.cs | 37 ++++- ...dPropertiesAndAdditionalPropertiesClass.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 40 ++++- .../Model/Model200Response.cs | 43 ++++- .../src/Org.OpenAPITools/Model/ModelClient.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Name.cs | 4 + ...cationtestGetElementsV1ResponseMPayload.cs | 39 ++++- .../Org.OpenAPITools/Model/NullableClass.cs | 73 ++++++++- .../Model/NullableGuidClass.cs | 40 ++++- .../Org.OpenAPITools/Model/NullableShape.cs | 38 ++++- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 40 ++++- .../Model/ObjectWithDeprecatedFields.cs | 49 +++++- .../src/Org.OpenAPITools/Model/OneOfString.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Order.cs | 55 ++++++- .../Org.OpenAPITools/Model/OuterComposite.cs | 46 +++++- .../src/Org.OpenAPITools/Model/ParentPet.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Pet.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Pig.cs | 38 ++++- .../Model/PolymorphicProperty.cs | 37 ++++- .../Org.OpenAPITools/Model/Quadrilateral.cs | 38 ++++- .../Model/QuadrilateralInterface.cs | 38 ++++- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 3 + .../Org.OpenAPITools/Model/RequiredClass.cs | 147 +++++++++++++++++- .../src/Org.OpenAPITools/Model/Result.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Return.cs | 47 +++++- .../Model/RolesReportsHash.cs | 43 ++++- .../Model/RolesReportsHashRole.cs | 40 ++++- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Shape.cs | 38 ++++- .../Org.OpenAPITools/Model/ShapeInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 38 ++++- .../Model/SimpleQuadrilateral.cs | 39 ++++- .../Model/SpecialModelName.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Tag.cs | 43 ++++- .../Model/TestCollectionEndingWithWordList.cs | 40 ++++- .../TestCollectionEndingWithWordListObject.cs | 40 ++++- .../Org.OpenAPITools/Model/TestDescendants.cs | 39 ++++- ...lineFreeformAdditionalPropertiesRequest.cs | 40 ++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Triangle.cs | 38 ++++- .../Model/TriangleInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/User.cs | 73 ++++++++- .../src/Org.OpenAPITools/Model/Whale.cs | 44 +++++- .../src/Org.OpenAPITools/Model/Zebra.cs | 41 ++++- .../Model/ZeroBasedEnumClass.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Activity.cs | 40 ++++- .../ActivityOutputElementRepresentation.cs | 43 ++++- .../Model/AdditionalPropertiesClass.cs | 61 +++++++- .../src/Org.OpenAPITools/Model/Animal.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Apple.cs | 46 +++++- .../src/Org.OpenAPITools/Model/AppleReq.cs | 40 ++++- .../Model/ArrayOfArrayOfNumberOnly.cs | 40 ++++- .../Model/ArrayOfNumberOnly.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Banana.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BananaReq.cs | 40 ++++- .../src/Org.OpenAPITools/Model/BasquePig.cs | 38 ++++- .../Org.OpenAPITools/Model/Capitalization.cs | 55 ++++++- .../src/Org.OpenAPITools/Model/Cat.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Category.cs | 41 ++++- .../src/Org.OpenAPITools/Model/ChildCat.cs | 40 ++++- .../src/Org.OpenAPITools/Model/ClassModel.cs | 40 ++++- .../Model/ComplexQuadrilateral.cs | 39 ++++- .../Org.OpenAPITools/Model/CopyActivity.cs | 38 ++++- .../src/Org.OpenAPITools/Model/DanishPig.cs | 38 ++++- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 40 ++++- .../Model/DeprecatedObject.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Descendant1.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Descendant2.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Dog.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Drawing.cs | 49 +++++- .../src/Org.OpenAPITools/Model/EntityBase.cs | 38 ++++- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 43 ++++- .../src/Org.OpenAPITools/Model/EnumTest.cs | 62 +++++++- .../Model/EquilateralTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/File.cs | 40 ++++- .../Model/FileSchemaTestClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Foo.cs | 40 ++++- .../Model/FooGetDefaultResponse.cs | 40 ++++- .../src/Org.OpenAPITools/Model/FormatTest.cs | 105 ++++++++++++- .../src/Org.OpenAPITools/Model/Fruit.cs | 39 ++++- .../src/Org.OpenAPITools/Model/FruitReq.cs | 36 ++++- .../src/Org.OpenAPITools/Model/GmFruit.cs | 39 ++++- .../Model/GrandparentAnimal.cs | 38 ++++- .../Model/HealthCheckResult.cs | 40 ++++- .../Model/IsoscelesTriangle.cs | 38 ++++- .../src/Org.OpenAPITools/Model/List.cs | 40 ++++- .../Model/LiteralStringClass.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Mammal.cs | 38 ++++- .../src/Org.OpenAPITools/Model/MapTest.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 40 ++++- .../Model/MixedAnyOfContent.cs | 37 ++++- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 40 ++++- .../Model/MixedOneOfContent.cs | 37 ++++- ...dPropertiesAndAdditionalPropertiesClass.cs | 49 +++++- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 40 ++++- .../Model/Model200Response.cs | 43 ++++- .../src/Org.OpenAPITools/Model/ModelClient.cs | 40 ++++- .../src/Org.OpenAPITools/Model/Name.cs | 4 + ...cationtestGetElementsV1ResponseMPayload.cs | 39 ++++- .../Org.OpenAPITools/Model/NullableClass.cs | 73 ++++++++- .../Model/NullableGuidClass.cs | 40 ++++- .../Org.OpenAPITools/Model/NullableShape.cs | 38 ++++- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 40 ++++- .../Model/ObjectWithDeprecatedFields.cs | 49 +++++- .../src/Org.OpenAPITools/Model/OneOfString.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Order.cs | 55 ++++++- .../Org.OpenAPITools/Model/OuterComposite.cs | 46 +++++- .../src/Org.OpenAPITools/Model/ParentPet.cs | 37 ++++- .../src/Org.OpenAPITools/Model/Pet.cs | 51 +++++- .../src/Org.OpenAPITools/Model/Pig.cs | 38 ++++- .../Model/PolymorphicProperty.cs | 37 ++++- .../Org.OpenAPITools/Model/Quadrilateral.cs | 38 ++++- .../Model/QuadrilateralInterface.cs | 38 ++++- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 3 + .../Org.OpenAPITools/Model/RequiredClass.cs | 147 +++++++++++++++++- .../src/Org.OpenAPITools/Model/Result.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Return.cs | 47 +++++- .../Model/RolesReportsHash.cs | 43 ++++- .../Model/RolesReportsHashRole.cs | 40 ++++- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 39 ++++- .../src/Org.OpenAPITools/Model/Shape.cs | 38 ++++- .../Org.OpenAPITools/Model/ShapeInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 38 ++++- .../Model/SimpleQuadrilateral.cs | 39 ++++- .../Model/SpecialModelName.cs | 43 ++++- .../src/Org.OpenAPITools/Model/Tag.cs | 43 ++++- .../Model/TestCollectionEndingWithWordList.cs | 40 ++++- .../TestCollectionEndingWithWordListObject.cs | 40 ++++- .../Org.OpenAPITools/Model/TestDescendants.cs | 39 ++++- ...lineFreeformAdditionalPropertiesRequest.cs | 40 ++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 46 +++++- .../src/Org.OpenAPITools/Model/Triangle.cs | 38 ++++- .../Model/TriangleInterface.cs | 38 ++++- .../src/Org.OpenAPITools/Model/User.cs | 73 ++++++++- .../src/Org.OpenAPITools/Model/Whale.cs | 44 +++++- .../src/Org.OpenAPITools/Model/Zebra.cs | 41 ++++- .../Model/ZeroBasedEnumClass.cs | 40 ++++- 1270 files changed, 53712 insertions(+), 1244 deletions(-) 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..e6b21e5672e8 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,52 @@ 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(); + + if (FirstName != null) + hashCode = (hashCode * 59) + FirstName.GetHashCode(); + + if (LastName != null) + hashCode = (hashCode * 59) + LastName.GetHashCode(); + + if (Type != null) + hashCode = (hashCode * 59) + Type.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..5d423b55be2a 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,55 @@ 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 (FirstName != null) + hashCode = (hashCode * 59) + FirstName.GetHashCode(); + + if (LastName != null) + hashCode = (hashCode * 59) + LastName.GetHashCode(); + + if (Type != null) + hashCode = (hashCode * 59) + Type.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..ab22bf81304b 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,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 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 + ( + Kind == input.Kind || + (Kind != null && + Kind.Equals(input.Kind)) + ) + && (AdditionalProperties.Count == input.AdditionalProperties.Count && !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..0773b3aca3bd 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,52 @@ 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 + ( + Count == input.Count || + Count.Equals(input.Count) + ) + && (AdditionalProperties.Count == input.AdditionalProperties.Count && !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..421804aef05a 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,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 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 + ( + Color == input.Color || + (Color != null && + Color.Equals(input.Color)) + ) + && (AdditionalProperties.Count == input.AdditionalProperties.Count && !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..f9001e9924ec 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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Color != null) + hashCode = (hashCode * 59) + Color.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..9710a8bfceb0 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) + Schema.GetHashCode(); + hashCode = (hashCode * 59) + CopyActivitytt.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..69c538fa0ab0 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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + DescendantName.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.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..3c138c2fe193 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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.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..4f564028cfd3 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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Breed != null) + hashCode = (hashCode * 59) + Breed.GetHashCode(); + + if (Color != null) + hashCode = (hashCode * 59) + Color.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..55209e0f8878 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,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 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(); + hashCode = (hashCode * 59) + PetType.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..f9001e9924ec 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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Color != null) + hashCode = (hashCode * 59) + Color.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 /// /// 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/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..fad0ea2936f8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 7a8ae9371f73..9710a8bfceb0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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) + Schema.GetHashCode(); + hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..c3ade9d078db 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 62ae935e4564..3811c02effd4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..35c0c6474f16 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 78e8ee587c11..20acb495ce09 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + DescendantName.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index a9859338c4ba..e954ffe02305 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 509278540c44..4f564028cfd3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Breed != null) + hashCode = (hashCode * 59) + Breed.GetHashCode(); + + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index e83b95303760..9bf0a759348e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs index 6ad9d8ea3a34..f4e520f072b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index c107741e961d..00b30f415013 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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. @@ -223,6 +223,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/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 40d5e2753631..9d1b5c554957 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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. @@ -680,6 +680,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/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..0c7823a35cdc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..9c5ae3ecb3c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 76db6338890f..3458f9cfef70 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..5cbc2e7d9847 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 285e193a7e15..5fed92ae4324 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 1887346c88b6..d2cbf7c9e7b5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..1327c362aab6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..899c5dd1c24c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..e5950e5799ea 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 78b741ac8c69..210daeb0c340 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..9bccf4cf1110 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..39c722d32440 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..9034be04da57 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..8873ba2f28d7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..f8018a8357fe 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 0af46ec34e41..096de54f8a98 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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. @@ -189,6 +189,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/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 3a559f831196..60ad1cc56304 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..9221d78c62e5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 5e238e0f7b30..53e9c518a45a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..39f75816b620 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index e0462d7c8a25..ee5ce7a4ecec 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..61a7dc5f21a2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 882bf7ccda47..67fef894159e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..58e29caf89b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs index dba5779e547d..082c57c305c6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 9da492190051..3ae2c1e54eae 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 397f12bffbb0..415192871a7f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 6efbeef44dcd..73d065eb7b0f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..41b8669f492d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 55ab016ac3db..b5bbaa65e7f5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 541a621953aa..377db506794d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..9f7bc8d17301 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs index ad31eb6ad143..a27142d80f1b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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. @@ -238,6 +238,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/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index d366c24ec24c..838de079def8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index e69a7e25caa5..55209e0f8878 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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,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 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(); + hashCode = (hashCode * 59) + PetType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e8e661445a1c..1f5770feabe4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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. @@ -224,6 +224,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/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..4ca819c4d699 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..8473cacd0ff5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..e26a93281ae3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..3389630a55ab 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..cbc9b21a9bc7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index fee9ba7f2965..c6bb1a54eaf3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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. @@ -1691,6 +1691,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/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..b516f1e23a07 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs index 81211e0ce4ac..a6cec7f4ab13 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 5b7a88bd659a..a630e939dd9b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..96c1912c44e1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..e6e7ba44c94d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..28f687694345 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..226c2b95f32d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..aa5ab3585b45 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..fb1f60c70f36 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index f30e2a11997b..59ac9471da5c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 6b9d5082405b..4229b0b75aa3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..57c30556c29c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 7328caf1ead5..46bd8cab9cb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs index 36c7ef1ca217..869402c5aaf4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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. @@ -142,6 +142,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/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..bb83884c6e2e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index cfa1aee10f8d..f0fa0884d97d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..5aace5b51f1d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..d2cdf13edc72 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs index a85e556bb9e8..9d46caed8e10 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 56da6f6db3c6..fd4741ccf020 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index bdf489815279..04670ae44d5b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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. @@ -164,6 +164,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/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index a6d408aeecc1..f7e69ee99c30 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/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. @@ -141,6 +141,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.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs index f25596215be6..e6b21e5672e8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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,52 @@ 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(); + + if (FirstName != null) + hashCode = (hashCode * 59) + FirstName.GetHashCode(); + + if (LastName != null) + hashCode = (hashCode * 59) + LastName.GetHashCode(); + + if (Type != null) + hashCode = (hashCode * 59) + Type.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs index c6f78d43c423..5d423b55be2a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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,55 @@ 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 (FirstName != null) + hashCode = (hashCode * 59) + FirstName.GetHashCode(); + + if (LastName != null) + hashCode = (hashCode * 59) + LastName.GetHashCode(); + + if (Type != null) + hashCode = (hashCode * 59) + Type.GetHashCode(); + + if (BoosterSeat != null) + hashCode = (hashCode * 59) + BoosterSeat.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs index b1c00a2eda29..419898e228ff 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..628e5e8ba608 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index edf36db227d5..ad44625adf83 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index cd1e938ffb37..2e31aef5bc8d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 70534c23212e..ab22bf81304b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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,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 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 + ( + Kind == input.Kind || + (Kind != null && + Kind.Equals(input.Kind)) + ) + && (AdditionalProperties.Count == input.AdditionalProperties.Count && !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.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 2cf5830c69f6..0773b3aca3bd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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,52 @@ 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 + ( + Count == input.Count || + Count.Equals(input.Count) + ) + && (AdditionalProperties.Count == input.AdditionalProperties.Count && !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.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index de8c3fcf7b7b..421804aef05a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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,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 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 + ( + Color == input.Color || + (Color != null && + Color.Equals(input.Color)) + ) + && (AdditionalProperties.Count == input.AdditionalProperties.Count && !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.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs index 4562d4ceb728..0ac5a7015a9f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index db832150ed96..9521ebe66825 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index f70c7a4c5fc3..616a0cabe479 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs index f172cd70bc53..7cedbffdbcf6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 74dbae3c6ba3..176933bfd50d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..ca96c6586a85 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index 1a839ecb01b6..ac0d7ce04ae9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cea3f5a4ba50..ceae5298ed9b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 47bac6ba97c6..8ce9459915ff 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 1992bf9e932d..ce5e03122363 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs index d7b7e8188f75..ac171273b5fc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index 8aa8da44caea..7d9cb85757a4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..1577fab0eaba 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..477cd5c1cb70 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 9ed61c34f667..f9001e9924ec 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + if (Declawed != null) + hashCode = (hashCode * 59) + Declawed.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs index 7db5ba3129ff..3315b089337d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 632caa963cf7..69bfecd64fef 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..4fc40c3323c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..fad0ea2936f8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs index 7a8ae9371f73..9710a8bfceb0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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) + Schema.GetHashCode(); + hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..c3ade9d078db 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 62ae935e4564..3811c02effd4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..35c0c6474f16 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs index 1ed4938d5fa7..69c538fa0ab0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + DescendantName.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs index fd2ec581e4df..3c138c2fe193 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 509278540c44..4f564028cfd3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Breed != null) + hashCode = (hashCode * 59) + Breed.GetHashCode(); + + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index e83b95303760..9bf0a759348e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs index 6ad9d8ea3a34..f4e520f072b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index 007eba77a358..cf0d8a7cf612 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index cb22e561feaf..154d5e3a1ea9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..0c7823a35cdc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..9c5ae3ecb3c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 76db6338890f..3458f9cfef70 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..5cbc2e7d9847 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 285e193a7e15..5fed92ae4324 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index 1887346c88b6..d2cbf7c9e7b5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..1327c362aab6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..899c5dd1c24c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..e5950e5799ea 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 78b741ac8c69..210daeb0c340 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..9bccf4cf1110 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..39c722d32440 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..9034be04da57 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..8873ba2f28d7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..f8018a8357fe 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 7331b5d3f61b..c0738f30d127 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 3a559f831196..60ad1cc56304 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..9221d78c62e5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 5e238e0f7b30..53e9c518a45a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..39f75816b620 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index e0462d7c8a25..ee5ce7a4ecec 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..61a7dc5f21a2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index 882bf7ccda47..67fef894159e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..58e29caf89b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs index dba5779e547d..082c57c305c6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 9da492190051..3ae2c1e54eae 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 397f12bffbb0..415192871a7f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 6efbeef44dcd..73d065eb7b0f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..41b8669f492d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 55ab016ac3db..b5bbaa65e7f5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 541a621953aa..377db506794d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..9f7bc8d17301 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs index 8af5defaed7e..b459f3644c09 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index d366c24ec24c..838de079def8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index e69a7e25caa5..55209e0f8878 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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,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 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(); + hashCode = (hashCode * 59) + PetType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs index 6e741c362d66..50273f72d2a6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..4ca819c4d699 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..8473cacd0ff5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..e26a93281ae3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..3389630a55ab 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..cbc9b21a9bc7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index f7422f86f558..7fbd98de5880 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..b516f1e23a07 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs index 81211e0ce4ac..a6cec7f4ab13 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 5b7a88bd659a..a630e939dd9b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..96c1912c44e1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..e6e7ba44c94d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..28f687694345 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..226c2b95f32d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..aa5ab3585b45 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..fb1f60c70f36 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index f30e2a11997b..59ac9471da5c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 6b9d5082405b..4229b0b75aa3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..57c30556c29c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 7328caf1ead5..46bd8cab9cb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs index df5553038566..badbeff43421 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..bb83884c6e2e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index cfa1aee10f8d..f0fa0884d97d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..5aace5b51f1d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..d2cdf13edc72 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs index a85e556bb9e8..9d46caed8e10 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 56da6f6db3c6..fd4741ccf020 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index 0b9bb3c3bc51..36b1554933d0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index d538b722cae0..53ad2f0e1fb1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..628e5e8ba608 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs index edf36db227d5..ad44625adf83 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index 1d1c7c5388c0..7ac80bbb8284 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 4562d4ceb728..0ac5a7015a9f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index db832150ed96..9521ebe66825 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index f70c7a4c5fc3..616a0cabe479 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs index f172cd70bc53..7cedbffdbcf6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 74dbae3c6ba3..176933bfd50d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..ca96c6586a85 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 1a839ecb01b6..ac0d7ce04ae9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cea3f5a4ba50..ceae5298ed9b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 47bac6ba97c6..8ce9459915ff 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 1992bf9e932d..ce5e03122363 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d7b7e8188f75..ac171273b5fc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 8aa8da44caea..7d9cb85757a4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..1577fab0eaba 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..477cd5c1cb70 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 9ed61c34f667..f9001e9924ec 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + if (Declawed != null) + hashCode = (hashCode * 59) + Declawed.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs index 7db5ba3129ff..3315b089337d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index cce039237aea..5d3849406886 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/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.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..4fc40c3323c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..fad0ea2936f8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 7a8ae9371f73..9710a8bfceb0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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) + Schema.GetHashCode(); + hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..c3ade9d078db 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 62ae935e4564..3811c02effd4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..35c0c6474f16 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 78e8ee587c11..20acb495ce09 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + DescendantName.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index a9859338c4ba..e954ffe02305 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 509278540c44..4f564028cfd3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Breed != null) + hashCode = (hashCode * 59) + Breed.GetHashCode(); + + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index e83b95303760..9bf0a759348e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs index 6ad9d8ea3a34..f4e520f072b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index c107741e961d..00b30f415013 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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. @@ -223,6 +223,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.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 40d5e2753631..9d1b5c554957 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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. @@ -680,6 +680,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.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..0c7823a35cdc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..9c5ae3ecb3c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 76db6338890f..3458f9cfef70 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..5cbc2e7d9847 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 285e193a7e15..5fed92ae4324 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 1887346c88b6..d2cbf7c9e7b5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..1327c362aab6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..899c5dd1c24c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..e5950e5799ea 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 78b741ac8c69..210daeb0c340 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..9bccf4cf1110 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..39c722d32440 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..9034be04da57 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..8873ba2f28d7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..f8018a8357fe 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 0af46ec34e41..096de54f8a98 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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. @@ -189,6 +189,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.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 3a559f831196..60ad1cc56304 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..9221d78c62e5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 5e238e0f7b30..53e9c518a45a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..39f75816b620 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index e0462d7c8a25..ee5ce7a4ecec 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..61a7dc5f21a2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 882bf7ccda47..67fef894159e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..58e29caf89b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs index dba5779e547d..082c57c305c6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 9da492190051..3ae2c1e54eae 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 397f12bffbb0..415192871a7f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 6efbeef44dcd..73d065eb7b0f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..41b8669f492d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 55ab016ac3db..b5bbaa65e7f5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 541a621953aa..377db506794d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..9f7bc8d17301 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs index ad31eb6ad143..a27142d80f1b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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. @@ -238,6 +238,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.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index d366c24ec24c..838de079def8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index e69a7e25caa5..55209e0f8878 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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,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 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(); + hashCode = (hashCode * 59) + PetType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e8e661445a1c..1f5770feabe4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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. @@ -224,6 +224,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.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..4ca819c4d699 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..8473cacd0ff5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..e26a93281ae3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..3389630a55ab 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..cbc9b21a9bc7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index fee9ba7f2965..c6bb1a54eaf3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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. @@ -1691,6 +1691,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.8/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..b516f1e23a07 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs index 81211e0ce4ac..a6cec7f4ab13 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 5b7a88bd659a..a630e939dd9b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..96c1912c44e1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..e6e7ba44c94d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..28f687694345 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..226c2b95f32d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..aa5ab3585b45 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..fb1f60c70f36 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index f30e2a11997b..59ac9471da5c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 6b9d5082405b..4229b0b75aa3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..57c30556c29c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 7328caf1ead5..46bd8cab9cb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs index 36c7ef1ca217..869402c5aaf4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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. @@ -142,6 +142,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.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..bb83884c6e2e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index cfa1aee10f8d..f0fa0884d97d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..5aace5b51f1d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..d2cdf13edc72 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs index a85e556bb9e8..9d46caed8e10 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 56da6f6db3c6..fd4741ccf020 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index bdf489815279..04670ae44d5b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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. @@ -164,6 +164,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.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index a6d408aeecc1..f7e69ee99c30 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/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. @@ -141,6 +141,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/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs index e5c016d2627d..0436e963b5bf 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -29,7 +29,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. @@ -72,6 +72,52 @@ 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(); + + if (FirstName != null) + hashCode = (hashCode * 59) + FirstName.GetHashCode(); + + if (LastName != null) + hashCode = (hashCode * 59) + LastName.GetHashCode(); + + if (Type != null) + hashCode = (hashCode * 59) + Type.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs index 25e989718a63..f95fe5811126 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -29,7 +29,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. @@ -88,6 +88,55 @@ 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 (FirstName != null) + hashCode = (hashCode * 59) + FirstName.GetHashCode(); + + if (LastName != null) + hashCode = (hashCode * 59) + LastName.GetHashCode(); + + if (Type != null) + hashCode = (hashCode * 59) + Type.GetHashCode(); + + if (BoosterSeat != null) + hashCode = (hashCode * 59) + BoosterSeat.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs index 6da989d4e3a7..a429944bcc28 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Person /// - public partial class Person : IValidatableObject + public partial class Person : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -101,6 +101,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/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..f755b0fb0e31 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Apple /// - public partial class Apple : IValidatableObject + public partial class Apple : 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 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/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 170ad4b54dac..8097bf8a1edb 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Banana /// - public partial class Banana : IValidatableObject + public partial class Banana : 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 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/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index 64a206e3bd57..f253ae7407c8 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Fruit /// - public partial class Fruit : IValidatableObject + public partial class Fruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -104,6 +104,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/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 8531edebf731..9b2b855bc57d 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model /// /// Apple /// - public partial class Apple : IValidatableObject + public partial class Apple : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,6 +76,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 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 + ( + Kind == input.Kind || + (Kind != null && + Kind.Equals(input.Kind)) + ) + && (AdditionalProperties.Count == input.AdditionalProperties.Count && !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/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 93897bf0b56a..018396b1f229 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model /// /// Banana /// - public partial class Banana : IValidatableObject + public partial class Banana : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,6 +76,52 @@ 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 + ( + Count == input.Count || + Count.Equals(input.Count) + ) + && (AdditionalProperties.Count == input.AdditionalProperties.Count && !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/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index 73c92d0cded3..f4f73bf7c4ae 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model /// /// Fruit /// - public partial class Fruit : IValidatableObject + public partial class Fruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -103,6 +103,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 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 + ( + Color == input.Color || + (Color != null && + Color.Equals(input.Color)) + ) + && (AdditionalProperties.Count == input.AdditionalProperties.Count && !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/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs index aabac63ce195..34d2eb29b90d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 1da19734a2d3..e40a8476b20b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 5fa49b8033da..0f3a343b0a64 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs index 5a0b22326df1..1f20a3cc1a80 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 78ce72e42861..36e37fb9d644 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..7bdae344040b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index f9d8cb0178a6..3d95cecbe093 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 6bd3d13aec0c..348d63795c7a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c1fc28e5e87e..f3a2827b1ef7 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 24f40349480e..1a231f08c729 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs index e0176c9c103d..dfcf64f8320f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index dd211ecc28ae..fc689bf8b989 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..1577fab0eaba 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..b4844e8dda3c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 6b4b1efcac37..f736dcbf126e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + if (Declawed != null) + hashCode = (hashCode * 59) + Declawed.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs index 406cff32fdf5..c72331678a2a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 99c5b315aa00..c91e63fe1d4a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..5c787690806a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..fad0ea2936f8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs index 7a8ae9371f73..9710a8bfceb0 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net8/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) + Schema.GetHashCode(); + hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..c3ade9d078db 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 921b10388991..140648613797 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..48ee40a87a58 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs index 1ed4938d5fa7..69c538fa0ab0 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net8/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + DescendantName.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs index fd2ec581e4df..3c138c2fe193 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net8/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs index a4879a78dc05..36881b4fd45c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Breed != null) + hashCode = (hashCode * 59) + Breed.GetHashCode(); + + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index 50db62858883..b050d1f5729c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs index 6ad9d8ea3a34..f4e520f072b1 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index afdb3342ce23..bbd2825b6702 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index 49ce4b0a6d6e..2fa9ec805ecf 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..0c7823a35cdc 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..eb3d5a30c400 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 601c8e998661..5a8a3f9bd698 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..3cef58046513 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index db1b090fa3e9..d3222e5ee618 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index 217cf10f2dda..bdfed8ade3e2 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..6ba30cd77087 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..899c5dd1c24c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index d5f9d222bc04..df31897b4769 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 78b741ac8c69..210daeb0c340 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..c922074ea2de 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..39c722d32440 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..69d337c567e7 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..b4d7c3db3d04 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..f8018a8357fe 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index d2f562dc62c7..61ef74e8a446 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 88c96f83b3a1..a815d0a9fdaa 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 4d5b99d03e4c..3a7e9f68c8fb 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 6049305ccc01..03b929a3a2ca 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..39f75816b620 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 2b9dab1b761b..97d795a1dced 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..9103975d9cc9 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index d74cab9a645c..5e7bd8426e06 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..de22082821f6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs index 1ced7be525f5..ea49bb6d691a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 9da492190051..3ae2c1e54eae 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 47b7b40607a7..8da17807a27e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index bbc9459f436f..b846be3d71d3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..41b8669f492d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 55e6045dc21e..71a00c8bc2d3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index dc0e8da10833..35de804e4a98 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..9f7bc8d17301 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs index 0f70b6ee763d..c77acf6e6c00 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index abcca493d7d2..8a2218e1bf9f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index e69a7e25caa5..55209e0f8878 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/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,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 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(); + hashCode = (hashCode * 59) + PetType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs index 294770c56dfb..758c3acb29cd 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..4ca819c4d699 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..8473cacd0ff5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..e26a93281ae3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..3389630a55ab 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..e25c72f4861f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index 8a2fc39d76bf..51317c43c0c1 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..e9d67f2c07f0 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs index fcf8e483d79e..cf59122f76ef 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index b9a4a5f9c95c..8de4c33187a6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..2b1295f54f62 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..e6e7ba44c94d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..28f687694345 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..226c2b95f32d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..aa5ab3585b45 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..fb1f60c70f36 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 25d27479cb9b..b60354c08ac0 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 3ebb619596ee..97feac9982f9 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..5b2ab5542d25 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 54cbe89d95af..057b73593669 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs index df5553038566..badbeff43421 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..146af3e7994d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 508d19f2807e..f10ef0d9b4d8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..5aace5b51f1d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..d2cdf13edc72 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs index 62f5b0736d68..64ce734a146c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 012c650e4f1c..38c27c18ff77 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index d3fbe37b12e5..b83fe9ed07ef 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 7373bc5873d5..abe1d7c579b4 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs index fd37515f54a2..ca56bdb25d75 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs @@ -29,7 +29,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. @@ -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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 80ab5ec04b8d..5d8b38829150 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ActivityOutputElementRepresentation /// - public partial class ActivityOutputElementRepresentation : IValidatableObject + public partial class ActivityOutputElementRepresentation : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -93,6 +93,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index de2cf7f84849..0c190a29b2ff 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// AdditionalPropertiesClass /// - public partial class AdditionalPropertiesClass : IValidatableObject + public partial class AdditionalPropertiesClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -190,6 +190,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs index 1e87e6de2950..ac211b1bbf35 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Animal /// - public partial class Animal : IValidatableObject + public partial class Animal : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -85,6 +85,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs index c7fa501c3c5d..83973945f1e8 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ApiResponse /// - public partial class ApiResponse : IValidatableObject + public partial class ApiResponse : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs index 601dae95aa1a..f812612fbaa9 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Apple /// - public partial class Apple : IValidatableObject + public partial class Apple : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs index fdef147cb388..72b00e5dac78 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// AppleReq /// - public partial class AppleReq : IValidatableObject + public partial class AppleReq : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index a09872cef811..1bfa4ec407ef 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ArrayOfArrayOfNumberOnly /// - public partial class ArrayOfArrayOfNumberOnly : IValidatableObject + public partial class ArrayOfArrayOfNumberOnly : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c338f29efc9d..0d008b8922b4 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ArrayOfNumberOnly /// - public partial class ArrayOfNumberOnly : IValidatableObject + public partial class ArrayOfNumberOnly : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs index 04609b245365..bee803e74802 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ArrayTest /// - public partial class ArrayTest : IValidatableObject + public partial class ArrayTest : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs index cf0ee9cdb1aa..8f75bb2c7e2d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Banana /// - public partial class Banana : IValidatableObject + public partial class Banana : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs index 10375771f80b..6f0d907260ab 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// BananaReq /// - public partial class BananaReq : IValidatableObject + public partial class BananaReq : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs index 7eaeac5cde68..77868532e498 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// BasquePig /// - public partial class BasquePig : IValidatableObject + public partial class BasquePig : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs index 133845a991f0..211036b77e52 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Capitalization /// - public partial class Capitalization : IValidatableObject + public partial class Capitalization : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -158,6 +158,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs index 4887c6c7aff7..fe9c1857fac3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs @@ -29,7 +29,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. @@ -71,6 +71,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + if (Declawed != null) + hashCode = (hashCode * 59) + Declawed.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs index 936d8dc8b225..d49154f0dbf8 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Category /// - public partial class Category : IValidatableObject + public partial class Category : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -86,6 +86,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs index c37ba2ec211e..949d1718ed4a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs @@ -29,7 +29,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. @@ -130,6 +130,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs index 5a199576ee29..9569e588dc0d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs @@ -29,7 +29,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. @@ -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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 018f49af861f..78c2fcee1cb0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ComplexQuadrilateral /// - public partial class ComplexQuadrilateral : IValidatableObject + public partial class ComplexQuadrilateral : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs index d2cbf27feffc..b4a54944429e 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -29,7 +29,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. @@ -123,6 +123,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) + Schema.GetHashCode(); + hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs index c0042b4d8843..7022c8ddd29e 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// DanishPig /// - public partial class DanishPig : IValidatableObject + public partial class DanishPig : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs index d908fed19a3a..bc76d6808fc2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// DateOnlyClass /// - public partial class DateOnlyClass : IValidatableObject + public partial class DateOnlyClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 68e0836b632f..85370d17716c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// DeprecatedObject /// - public partial class DeprecatedObject : IValidatableObject + public partial class DeprecatedObject : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs index d86b93b3ff02..54714665b44f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs @@ -29,7 +29,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. @@ -64,6 +64,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + DescendantName.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs index 152103158d0a..fe46d36e9406 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs @@ -29,7 +29,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. @@ -64,6 +64,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs index 05eb0781cfe7..3dfcd6ce2ef3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs @@ -29,7 +29,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. @@ -71,6 +71,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Breed != null) + hashCode = (hashCode * 59) + Breed.GetHashCode(); + + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs index 1668434a783f..3720ed9ed136 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Drawing /// - public partial class Drawing : IValidatableObject + public partial class Drawing : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -125,6 +125,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs index 17b8f812e777..26105bdeb486 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// EntityBase /// - public partial class EntityBase : IValidatableObject + public partial class EntityBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -69,6 +69,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs index 9a6f097e92c2..fa03d2df86d3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// EnumArrays /// - public partial class EnumArrays : IValidatableObject + public partial class EnumArrays : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -225,6 +225,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs index ea7a5bd26988..985affa467da 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// EnumTest /// - public partial class EnumTest : IValidatableObject + public partial class EnumTest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -682,6 +682,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 12983d68a09f..cf2a25d681a2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// EquilateralTriangle /// - public partial class EquilateralTriangle : IValidatableObject + public partial class EquilateralTriangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs index dab2e4e27b36..74d921d5fbe6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs @@ -29,7 +29,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. @@ -78,6 +78,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 971a81e9c8c4..2b569cb4328c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// FileSchemaTestClass /// - public partial class FileSchemaTestClass : IValidatableObject + public partial class FileSchemaTestClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -93,6 +93,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs index b8128f4c3e45..611a9d8fd062 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Foo /// - public partial class Foo : IValidatableObject + public partial class Foo : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index f4e54444c7ee..b606c1e42169 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// FooGetDefaultResponse /// - public partial class FooGetDefaultResponse : IValidatableObject + public partial class FooGetDefaultResponse : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs index a5dae71ad9d4..78cd0f9c68f2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// FormatTest /// - public partial class FormatTest : IValidatableObject + public partial class FormatTest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -448,6 +448,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs index eb12679ed27d..ab39f862a460 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Fruit /// - public partial class Fruit : IValidatableObject + public partial class Fruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -93,6 +93,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs index 357be4388447..7eb56f7214a9 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// FruitReq /// - public partial class FruitReq : IValidatableObject + public partial class FruitReq : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -75,6 +75,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs index 9be524db707f..6ab2f3f6b7c0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// GmFruit /// - public partial class GmFruit : IValidatableObject + public partial class GmFruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -97,6 +97,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index e8f6e0889167..6efc21ae76bf 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// GrandparentAnimal /// - public partial class GrandparentAnimal : IValidatableObject + public partial class GrandparentAnimal : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -69,6 +69,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 2a3a8e527f6e..76a45e126ff8 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -29,7 +29,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. @@ -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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 8aca45893e65..bca93fe11d67 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// IsoscelesTriangle /// - public partial class IsoscelesTriangle : IValidatableObject + public partial class IsoscelesTriangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs index ddf0d615fd3c..db0959784a62 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// List /// - public partial class List : IValidatableObject + public partial class List : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 5993dd82adc8..58181d48cc38 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// LiteralStringClass /// - public partial class LiteralStringClass : IValidatableObject + public partial class LiteralStringClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -93,6 +93,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs index 132f1e462ce0..dc7550a5dc95 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Mammal /// - public partial class Mammal : IValidatableObject + public partial class Mammal : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -97,6 +97,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs index 06668cf78934..e89a5f1552cb 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// MapTest /// - public partial class MapTest : IValidatableObject + public partial class MapTest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -191,6 +191,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 266cbf7f9d2e..5e5b40c72560 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// MixedAnyOf /// - public partial class MixedAnyOf : IValidatableObject + public partial class MixedAnyOf : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 05de563f77d7..8ad925425a50 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -29,7 +29,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. @@ -130,6 +130,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs index 4d5b2c6d94cf..2d3d173cf8b1 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// MixedOneOf /// - public partial class MixedOneOf : IValidatableObject + public partial class MixedOneOf : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 15e011ce0918..22cf2c078620 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -29,7 +29,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. @@ -127,6 +127,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 968a64762901..1efa997496a7 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// MixedPropertiesAndAdditionalPropertiesClass /// - public partial class MixedPropertiesAndAdditionalPropertiesClass : IValidatableObject + public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -125,6 +125,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs index 6b56e6017b15..eb6113341ab0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// MixedSubId /// - public partial class MixedSubId : IValidatableObject + public partial class MixedSubId : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs index 76bffb1856bc..539dbb3b0084 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs @@ -29,7 +29,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. @@ -93,6 +93,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs index 7a982b8104d3..546782db9714 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ModelClient /// - public partial class ModelClient : IValidatableObject + public partial class ModelClient : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs index 100ccfa20e5b..61ef8f1592f5 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs @@ -147,6 +147,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index fdf9064400f4..ef3192f520d0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// NotificationtestGetElementsV1ResponseMPayload /// - public partial class NotificationtestGetElementsV1ResponseMPayload : IValidatableObject + public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs index db7eaa8f675c..03f96748c05f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// NullableClass /// - public partial class NullableClass : IValidatableObject + public partial class NullableClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -253,6 +253,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 47db90bf3525..06eeac874285 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// NullableGuidClass /// - public partial class NullableGuidClass : IValidatableObject + public partial class NullableGuidClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs index a06afa2a9be6..90e56bc7361b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs @@ -29,7 +29,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. @@ -82,6 +82,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs index f7ae912c05e6..58a704158b72 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// NumberOnly /// - public partial class NumberOnly : IValidatableObject + public partial class NumberOnly : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index fa4f88b3ecdd..8827984fec50 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ObjectWithDeprecatedFields /// - public partial class ObjectWithDeprecatedFields : IValidatableObject + public partial class ObjectWithDeprecatedFields : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -128,6 +128,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs index 5471f08f5194..4ae68250f376 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// OneOfString /// - public partial class OneOfString : IValidatableObject + public partial class OneOfString : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -67,6 +67,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs index c4c43309bec1..c0172262d705 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Order /// - public partial class Order : IValidatableObject + public partial class Order : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -240,6 +240,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs index 4428479e0485..6a43d36c074a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// OuterComposite /// - public partial class OuterComposite : IValidatableObject + public partial class OuterComposite : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs index 9f659ee86ae8..c7dfda2a53d6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs @@ -29,7 +29,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. @@ -54,6 +54,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 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(); + hashCode = (hashCode * 59) + PetType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs index 56b981a0e2ad..fbf879377872 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Pet /// - public partial class Pet : IValidatableObject + public partial class Pet : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -226,6 +226,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs index 2cd41f15027a..e501dfb6ab1a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Pig /// - public partial class Pig : IValidatableObject + public partial class Pig : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -82,6 +82,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 3c1b978da7f0..facaeced8360 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// PolymorphicProperty /// - public partial class PolymorphicProperty : IValidatableObject + public partial class PolymorphicProperty : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -112,6 +112,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs index 5c7aa541ffc5..f3e4e463eaa3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Quadrilateral /// - public partial class Quadrilateral : IValidatableObject + public partial class Quadrilateral : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -82,6 +82,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index c535142bde64..4e010bde4146 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// QuadrilateralInterface /// - public partial class QuadrilateralInterface : IValidatableObject + public partial class QuadrilateralInterface : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a48fcb21dbef..7bc7bc9013e6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -125,6 +125,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs index 0c7dc7eab56f..5d5991190982 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// RequiredClass /// - public partial class RequiredClass : IValidatableObject + public partial class RequiredClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -1693,6 +1693,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs index 6119748b2992..150f8ce93a15 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Result /// - public partial class Result : IValidatableObject + public partial class Result : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -112,6 +112,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs index 6276a3a8c8ae..5923abf4f3f1 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs @@ -29,7 +29,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. @@ -111,6 +111,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 245ea1053e5d..c7b4b92a41ea 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -29,7 +29,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. @@ -93,6 +93,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 684ca8e8b515..01c2b52ef153 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// RolesReportsHashRole /// - public partial class RolesReportsHashRole : IValidatableObject + public partial class RolesReportsHashRole : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 926b431dda32..e141861c51d2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ScaleneTriangle /// - public partial class ScaleneTriangle : IValidatableObject + public partial class ScaleneTriangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs index c608b7288d95..7e33ea03c160 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Shape /// - public partial class Shape : IValidatableObject + public partial class Shape : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -82,6 +82,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs index 15777abac01d..fa1d725f8f17 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ShapeInterface /// - public partial class ShapeInterface : IValidatableObject + public partial class ShapeInterface : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 3fc9f2735096..a068b48a3c4d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -29,7 +29,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. @@ -82,6 +82,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index bab36d28f5ef..b6dde11dee9c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// SimpleQuadrilateral /// - public partial class SimpleQuadrilateral : IValidatableObject + public partial class SimpleQuadrilateral : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs index 1fce10cd7823..ae0438d0e0cb 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// SpecialModelName /// - public partial class SpecialModelName : IValidatableObject + public partial class SpecialModelName : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -93,6 +93,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs index a6c404c940b8..5fcd99f88efb 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Tag /// - public partial class Tag : IValidatableObject + public partial class Tag : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -93,6 +93,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index f1a1940574ee..3fa949feba8c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// TestCollectionEndingWithWordList /// - public partial class TestCollectionEndingWithWordList : IValidatableObject + public partial class TestCollectionEndingWithWordList : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 5cbf9d28f57e..34d7fc759552 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// TestCollectionEndingWithWordListObject /// - public partial class TestCollectionEndingWithWordListObject : IValidatableObject + public partial class TestCollectionEndingWithWordListObject : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs index f1a80055f735..f9cd85896fc3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// TestDescendants /// - public partial class TestDescendants : IValidatableObject + public partial class TestDescendants : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -144,6 +144,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 102413449b18..a724ea7283cb 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// TestInlineFreeformAdditionalPropertiesRequest /// - public partial class TestInlineFreeformAdditionalPropertiesRequest : IValidatableObject + public partial class TestInlineFreeformAdditionalPropertiesRequest : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs index e7829b5974ee..8a9116cdb1ea 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// TestResult /// - public partial class TestResult : IValidatableObject + public partial class TestResult : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -111,6 +111,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs index f34f2cf60139..41a6b51123c8 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Triangle /// - public partial class Triangle : IValidatableObject + public partial class Triangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -97,6 +97,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs index 6ccbe196f3d4..8a82ce1e7e45 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// TriangleInterface /// - public partial class TriangleInterface : IValidatableObject + public partial class TriangleInterface : 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 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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs index d02f765752fd..5867420479ff 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// User /// - public partial class User : IValidatableObject + public partial class User : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -258,6 +258,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs index 3d5ad4a7d676..ae3d173cbcb1 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Whale /// - public partial class Whale : IValidatableObject + public partial class Whale : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -102,6 +102,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs index 4ca12a36d096..9166c180034e 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Zebra /// - public partial class Zebra : IValidatableObject + public partial class Zebra : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -166,6 +166,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/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index dfb395124397..bd222cadd856 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ZeroBasedEnumClass /// - public partial class ZeroBasedEnumClass : IValidatableObject + public partial class ZeroBasedEnumClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -143,6 +143,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/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..f755b0fb0e31 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Apple /// - public partial class Apple : IValidatableObject + public partial class Apple : 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 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/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 170ad4b54dac..8097bf8a1edb 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Banana /// - public partial class Banana : IValidatableObject + public partial class Banana : 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 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/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index d58b2b4db1dd..a086e39cd031 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Fruit /// - public partial class Fruit : IValidatableObject + public partial class Fruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -100,6 +100,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/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs index aabac63ce195..34d2eb29b90d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 1da19734a2d3..e40a8476b20b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 5fa49b8033da..0f3a343b0a64 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 5a0b22326df1..1f20a3cc1a80 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 78ce72e42861..36e37fb9d644 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..7bdae344040b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index f9d8cb0178a6..3d95cecbe093 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 6bd3d13aec0c..348d63795c7a 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c1fc28e5e87e..f3a2827b1ef7 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 24f40349480e..1a231f08c729 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index e0176c9c103d..dfcf64f8320f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index dd211ecc28ae..fc689bf8b989 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..1577fab0eaba 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..b4844e8dda3c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 6b4b1efcac37..f736dcbf126e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + if (Declawed != null) + hashCode = (hashCode * 59) + Declawed.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs index 406cff32fdf5..c72331678a2a 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index ff5df164f2c9..eb7a0d70e728 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..5c787690806a 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..fad0ea2936f8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 7a8ae9371f73..9710a8bfceb0 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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) + Schema.GetHashCode(); + hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..c3ade9d078db 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 921b10388991..140648613797 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..48ee40a87a58 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 78e8ee587c11..20acb495ce09 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + DescendantName.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index a9859338c4ba..e954ffe02305 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs index a4879a78dc05..36881b4fd45c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Breed != null) + hashCode = (hashCode * 59) + Breed.GetHashCode(); + + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 50db62858883..b050d1f5729c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs index 6ad9d8ea3a34..f4e520f072b1 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 2a7d6a8a5f4d..c1d725c44357 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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. @@ -223,6 +223,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/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index b44f96171f59..0efbbb1209f0 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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. @@ -680,6 +680,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/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..0c7823a35cdc 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..eb3d5a30c400 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 601c8e998661..5a8a3f9bd698 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..3cef58046513 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index db1b090fa3e9..d3222e5ee618 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 217cf10f2dda..bdfed8ade3e2 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..6ba30cd77087 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..899c5dd1c24c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index d5f9d222bc04..df31897b4769 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 78b741ac8c69..210daeb0c340 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..c922074ea2de 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..39c722d32440 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..69d337c567e7 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..b4d7c3db3d04 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..f8018a8357fe 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 796232e12c55..d4978ee3f66f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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. @@ -189,6 +189,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/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 88c96f83b3a1..a815d0a9fdaa 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 4d5b99d03e4c..3a7e9f68c8fb 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 6049305ccc01..03b929a3a2ca 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..39f75816b620 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 2b9dab1b761b..97d795a1dced 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..9103975d9cc9 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index d74cab9a645c..5e7bd8426e06 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..de22082821f6 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs index 1ced7be525f5..ea49bb6d691a 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 9da492190051..3ae2c1e54eae 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 47b7b40607a7..8da17807a27e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index bbc9459f436f..b846be3d71d3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..41b8669f492d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 55e6045dc21e..71a00c8bc2d3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index dc0e8da10833..35de804e4a98 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..9f7bc8d17301 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs index 094096b6350d..7ca33a968a1a 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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. @@ -238,6 +238,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/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index abcca493d7d2..8a2218e1bf9f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index e69a7e25caa5..55209e0f8878 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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,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 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(); + hashCode = (hashCode * 59) + PetType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 7e8a3d34957a..b931b1418926 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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. @@ -224,6 +224,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/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..4ca819c4d699 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..8473cacd0ff5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..e26a93281ae3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..3389630a55ab 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..e25c72f4861f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 6217ae6e6799..1d9e7053651c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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. @@ -1691,6 +1691,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/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..e9d67f2c07f0 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs index fcf8e483d79e..cf59122f76ef 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index b9a4a5f9c95c..8de4c33187a6 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..2b1295f54f62 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..e6e7ba44c94d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..28f687694345 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..226c2b95f32d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..aa5ab3585b45 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..fb1f60c70f36 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 25d27479cb9b..b60354c08ac0 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 3ebb619596ee..97feac9982f9 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..5b2ab5542d25 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 54cbe89d95af..057b73593669 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs index 36c7ef1ca217..869402c5aaf4 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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. @@ -142,6 +142,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/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..146af3e7994d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 508d19f2807e..f10ef0d9b4d8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..5aace5b51f1d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..d2cdf13edc72 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs index 62f5b0736d68..64ce734a146c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 012c650e4f1c..38c27c18ff77 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 0efe7f985a3a..e5ebffbead8c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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. @@ -164,6 +164,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/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 9722305fcb2a..0efd178d5f61 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/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. @@ -141,6 +141,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs index 65645b2e4829..c1248aaae26d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs @@ -30,7 +30,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. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 728bbb0c349e..5b1c2b5378c7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ActivityOutputElementRepresentation /// - public partial class ActivityOutputElementRepresentation : IValidatableObject + public partial class ActivityOutputElementRepresentation : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -94,6 +94,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 9fa35476f70c..b5199b794ea0 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// AdditionalPropertiesClass /// - public partial class AdditionalPropertiesClass : IValidatableObject + public partial class AdditionalPropertiesClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -191,6 +191,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs index 37a0519bbd6b..4f656bf9a0f9 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Animal /// - public partial class Animal : IValidatableObject + public partial class Animal : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -86,6 +86,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs index bf92565f9a2e..f8ecf2332104 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ApiResponse /// - public partial class ApiResponse : IValidatableObject + public partial class ApiResponse : 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 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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs index 3dab90bbeb36..3fba35594963 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Apple /// - public partial class Apple : IValidatableObject + public partial class Apple : 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 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/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs index cbb5ea8f0849..280dfe5bd8ad 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// AppleReq /// - public partial class AppleReq : IValidatableObject + public partial class AppleReq : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cd3309a5900e..88a8a2185ef7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ArrayOfArrayOfNumberOnly /// - public partial class ArrayOfArrayOfNumberOnly : IValidatableObject + public partial class ArrayOfArrayOfNumberOnly : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 90b6e4a8bd14..bf08e125d23c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ArrayOfNumberOnly /// - public partial class ArrayOfNumberOnly : IValidatableObject + public partial class ArrayOfNumberOnly : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs index 6be410aad46e..446eb7620890 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ArrayTest /// - public partial class ArrayTest : IValidatableObject + public partial class ArrayTest : 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 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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs index 1352e54c4091..5438d41b34ca 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Banana /// - public partial class Banana : IValidatableObject + public partial class Banana : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs index 584505890fdc..a9c25c8da2f2 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// BananaReq /// - public partial class BananaReq : IValidatableObject + public partial class BananaReq : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs index cdd31db8f50c..b7da9aa37d77 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// BasquePig /// - public partial class BasquePig : IValidatableObject + public partial class BasquePig : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs index e36a343dc5e2..739038933356 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Capitalization /// - public partial class Capitalization : IValidatableObject + public partial class Capitalization : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -159,6 +159,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs index 00b32d995aa3..24b8224f6e0f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs @@ -30,7 +30,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. @@ -72,6 +72,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + if (Declawed != null) + hashCode = (hashCode * 59) + Declawed.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs index 0369f8f37e97..8c0edef8913f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Category /// - public partial class Category : IValidatableObject + public partial class Category : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -87,6 +87,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs index 4131c59373af..02b9ae2d8db6 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs @@ -30,7 +30,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. @@ -131,6 +131,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs index e38fad89dbad..6e445f86b8ce 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs @@ -30,7 +30,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. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index acf1f351fe7a..1e9f8c76a39b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ComplexQuadrilateral /// - public partial class ComplexQuadrilateral : IValidatableObject + public partial class ComplexQuadrilateral : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs index a4a704b58170..b42180782c29 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -30,7 +30,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. @@ -124,6 +124,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) + Schema.GetHashCode(); + hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs index c54e2bd3ea87..29b14cf7ca36 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// DanishPig /// - public partial class DanishPig : IValidatableObject + public partial class DanishPig : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 8981331c9e19..b7833ecf6c15 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// DateOnlyClass /// - public partial class DateOnlyClass : IValidatableObject + public partial class DateOnlyClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 0b8716d11ff4..0a2cf22a4f16 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// DeprecatedObject /// - public partial class DeprecatedObject : IValidatableObject + public partial class DeprecatedObject : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs index 9af51efffe3c..93bc7111cb23 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs @@ -30,7 +30,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. @@ -65,6 +65,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + DescendantName.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs index 5e39d2322847..44f45692318a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs @@ -30,7 +30,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. @@ -65,6 +65,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs index 6129b69ce916..bb16c4b43a1a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs @@ -30,7 +30,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. @@ -72,6 +72,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Breed != null) + hashCode = (hashCode * 59) + Breed.GetHashCode(); + + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs index b6400a09e802..1eb507df9fe6 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Drawing /// - public partial class Drawing : IValidatableObject + public partial class Drawing : 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 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/net8/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs index 093b2012f441..1bb6b2c4bd0e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// EntityBase /// - public partial class EntityBase : IValidatableObject + public partial class EntityBase : 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 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/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs index 5c9774abc417..fb119b30f518 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// EnumArrays /// - public partial class EnumArrays : IValidatableObject + public partial class EnumArrays : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -226,6 +226,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs index 897a9bd24efe..77056288850c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// EnumTest /// - public partial class EnumTest : IValidatableObject + public partial class EnumTest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -683,6 +683,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index ca7a8101de84..27842a7b4edf 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// EquilateralTriangle /// - public partial class EquilateralTriangle : IValidatableObject + public partial class EquilateralTriangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs index bdc5c25e1329..82167ded1cfc 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs @@ -30,7 +30,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. @@ -79,6 +79,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index d7c977f2fe4f..8d1c2a30cb44 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// FileSchemaTestClass /// - public partial class FileSchemaTestClass : IValidatableObject + public partial class FileSchemaTestClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -94,6 +94,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs index ac4aeb49df5c..24c8bf3892bb 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Foo /// - public partial class Foo : IValidatableObject + public partial class Foo : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 9f57f4d6318a..c7cf5eddfb15 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// FooGetDefaultResponse /// - public partial class FooGetDefaultResponse : IValidatableObject + public partial class FooGetDefaultResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs index 894fa9a3fa82..8ad96efbbb9e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// FormatTest /// - public partial class FormatTest : IValidatableObject + public partial class FormatTest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -449,6 +449,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs index 6aa166222089..b7c0ca2fa9ec 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Fruit /// - public partial class Fruit : IValidatableObject + public partial class Fruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -94,6 +94,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs index 1f75be50f94b..15642175af7e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// FruitReq /// - public partial class FruitReq : IValidatableObject + public partial class FruitReq : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,6 +76,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs index e44c82f23506..759612a8c4a9 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// GmFruit /// - public partial class GmFruit : IValidatableObject + public partial class GmFruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -98,6 +98,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 2a787a59db6d..244e43f34091 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// GrandparentAnimal /// - public partial class GrandparentAnimal : IValidatableObject + public partial class GrandparentAnimal : 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 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/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 71f3c4dc4ec0..78a72b29b35c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -30,7 +30,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. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index df5fac5540b5..bfbb63ad11d1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// IsoscelesTriangle /// - public partial class IsoscelesTriangle : IValidatableObject + public partial class IsoscelesTriangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -73,6 +73,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs index 024998ed763a..67444fa862fe 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// List /// - public partial class List : IValidatableObject + public partial class List : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs index e54eebdaa1dc..21e8b56b43da 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// LiteralStringClass /// - public partial class LiteralStringClass : IValidatableObject + public partial class LiteralStringClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -94,6 +94,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs index fe273665e2c2..615570338f8d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Mammal /// - public partial class Mammal : IValidatableObject + public partial class Mammal : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -98,6 +98,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs index 40dee3f15569..b7bcb6774821 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// MapTest /// - public partial class MapTest : IValidatableObject + public partial class MapTest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -192,6 +192,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs index cdac03c3bcf4..33f479d44d60 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// MixedAnyOf /// - public partial class MixedAnyOf : IValidatableObject + public partial class MixedAnyOf : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 72287b1d1b45..285ff54620a3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -30,7 +30,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. @@ -131,6 +131,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs index e9f36662dd80..3e6f25a72e2c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// MixedOneOf /// - public partial class MixedOneOf : IValidatableObject + public partial class MixedOneOf : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 8ea30fde6f80..f9874ba1befa 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -30,7 +30,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. @@ -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 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/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3629d644571b..ae4c97d0d105 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// MixedPropertiesAndAdditionalPropertiesClass /// - public partial class MixedPropertiesAndAdditionalPropertiesClass : IValidatableObject + public partial class MixedPropertiesAndAdditionalPropertiesClass : 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 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/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs index 696681a920f3..1797660a5a2e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// MixedSubId /// - public partial class MixedSubId : IValidatableObject + public partial class MixedSubId : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs index 4b3f421263d4..dc90e540d2c6 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs @@ -30,7 +30,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. @@ -94,6 +94,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs index 49dcb68c571f..abfa2ac69bc6 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ModelClient /// - public partial class ModelClient : IValidatableObject + public partial class ModelClient : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs index 72938274943d..3327f0a61b5b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs @@ -148,6 +148,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 212b80559b9f..ae3fa92e2d51 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// NotificationtestGetElementsV1ResponseMPayload /// - public partial class NotificationtestGetElementsV1ResponseMPayload : IValidatableObject + public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs index aa2baca6ee31..0b79e822bc59 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// NullableClass /// - public partial class NullableClass : IValidatableObject + public partial class NullableClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -254,6 +254,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs index d0c107c1a216..091966bb3f5d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// NullableGuidClass /// - public partial class NullableGuidClass : IValidatableObject + public partial class NullableGuidClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs index 25248c75ffaf..0649dd573f4b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs @@ -30,7 +30,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. @@ -83,6 +83,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs index 3662647e6562..f81af98bd1c1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// NumberOnly /// - public partial class NumberOnly : IValidatableObject + public partial class NumberOnly : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index b2fced877576..a1490a170b53 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ObjectWithDeprecatedFields /// - public partial class ObjectWithDeprecatedFields : IValidatableObject + public partial class ObjectWithDeprecatedFields : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -129,6 +129,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs index 269f97ae4fd3..e592deb58020 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// OneOfString /// - public partial class OneOfString : IValidatableObject + public partial class OneOfString : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -68,6 +68,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs index fff55dc03b4b..eeab8750bc96 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Order /// - public partial class Order : IValidatableObject + public partial class Order : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -241,6 +241,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs index 834a7f3516f1..a9dec221be2e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// OuterComposite /// - public partial class OuterComposite : IValidatableObject + public partial class OuterComposite : 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 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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs index b7c98ce645cb..8c5da311e58c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs @@ -30,7 +30,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. @@ -55,6 +55,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 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(); + hashCode = (hashCode * 59) + PetType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs index fc68eb27a177..7da635a45531 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Pet /// - public partial class Pet : IValidatableObject + public partial class Pet : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -227,6 +227,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs index 57c4f9a91217..e273f5e47b9c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Pig /// - public partial class Pig : IValidatableObject + public partial class Pig : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -83,6 +83,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 9e1aaafe221e..30919171f4c2 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// PolymorphicProperty /// - public partial class PolymorphicProperty : IValidatableObject + public partial class PolymorphicProperty : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -113,6 +113,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs index 8e308392490d..4b26516e5b8a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Quadrilateral /// - public partial class Quadrilateral : IValidatableObject + public partial class Quadrilateral : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -83,6 +83,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 3d15636fda9a..433d53c956ad 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// QuadrilateralInterface /// - public partial class QuadrilateralInterface : IValidatableObject + public partial class QuadrilateralInterface : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 4d458434bb1c..c9629ecb456d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -126,6 +126,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs index 074d0e77ee37..6a9e34ce2fca 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// RequiredClass /// - public partial class RequiredClass : IValidatableObject + public partial class RequiredClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -1694,6 +1694,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs index 1c1f18fd1dec..c971ec6712c6 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Result /// - public partial class Result : IValidatableObject + public partial class Result : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -113,6 +113,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs index 1544a23710c1..d19c38051726 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs @@ -30,7 +30,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. @@ -112,6 +112,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 28b65b24ecf3..26ed03945cca 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -30,7 +30,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. @@ -94,6 +94,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index ba4ac84d8e20..e286af3d759d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// RolesReportsHashRole /// - public partial class RolesReportsHashRole : IValidatableObject + public partial class RolesReportsHashRole : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 6ce8c2b68a1b..66b3e482247f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ScaleneTriangle /// - public partial class ScaleneTriangle : IValidatableObject + public partial class ScaleneTriangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs index 71620d915bbb..a7ec2703d196 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Shape /// - public partial class Shape : IValidatableObject + public partial class Shape : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -83,6 +83,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs index 3070f52be3ac..de88fa3aa8f5 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ShapeInterface /// - public partial class ShapeInterface : IValidatableObject + public partial class ShapeInterface : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 37b5fddee5e3..ac33411f99a8 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -30,7 +30,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. @@ -83,6 +83,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 61ff978f3c24..d6805de69bab 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// SimpleQuadrilateral /// - public partial class SimpleQuadrilateral : IValidatableObject + public partial class SimpleQuadrilateral : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs index 0cf9332983fd..d648d5517b1b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// SpecialModelName /// - public partial class SpecialModelName : IValidatableObject + public partial class SpecialModelName : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -94,6 +94,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs index a350814f2c88..752d2c03575d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Tag /// - public partial class Tag : IValidatableObject + public partial class Tag : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -94,6 +94,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index b5f8d88ed68d..f2d7f31077b5 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// TestCollectionEndingWithWordList /// - public partial class TestCollectionEndingWithWordList : IValidatableObject + public partial class TestCollectionEndingWithWordList : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 37acae1c88df..03dd9a643dea 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// TestCollectionEndingWithWordListObject /// - public partial class TestCollectionEndingWithWordListObject : IValidatableObject + public partial class TestCollectionEndingWithWordListObject : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs index 538b8c90d98f..7b01074176f3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// TestDescendants /// - public partial class TestDescendants : IValidatableObject + public partial class TestDescendants : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -145,6 +145,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index de60d7c2281f..247ac05eebf5 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// TestInlineFreeformAdditionalPropertiesRequest /// - public partial class TestInlineFreeformAdditionalPropertiesRequest : IValidatableObject + public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs index df0deacac70e..ef7e6149751c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// TestResult /// - public partial class TestResult : IValidatableObject + public partial class TestResult : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -112,6 +112,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs index 5c2490410259..2731f4748060 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Triangle /// - public partial class Triangle : IValidatableObject + public partial class Triangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -98,6 +98,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs index a2ef4da28f5a..671aedec72fd 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// TriangleInterface /// - public partial class TriangleInterface : IValidatableObject + public partial class TriangleInterface : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs index 6af3ab9df35c..9838d96621c9 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// User /// - public partial class User : IValidatableObject + public partial class User : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -259,6 +259,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs index 080a4f804022..7a3c3b805f13 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Whale /// - public partial class Whale : IValidatableObject + public partial class Whale : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -103,6 +103,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs index 0d0e7222c42b..a5b4f97b10ea 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Zebra /// - public partial class Zebra : IValidatableObject + public partial class Zebra : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -167,6 +167,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/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 74792442fd0e..17107d052935 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ZeroBasedEnumClass /// - public partial class ZeroBasedEnumClass : IValidatableObject + public partial class ZeroBasedEnumClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -144,6 +144,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/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs index e5c016d2627d..0436e963b5bf 100644 --- a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -29,7 +29,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. @@ -72,6 +72,52 @@ 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(); + + if (FirstName != null) + hashCode = (hashCode * 59) + FirstName.GetHashCode(); + + if (LastName != null) + hashCode = (hashCode * 59) + LastName.GetHashCode(); + + if (Type != null) + hashCode = (hashCode * 59) + Type.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs index 25e989718a63..f95fe5811126 100644 --- a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -29,7 +29,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. @@ -88,6 +88,55 @@ 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 (FirstName != null) + hashCode = (hashCode * 59) + FirstName.GetHashCode(); + + if (LastName != null) + hashCode = (hashCode * 59) + LastName.GetHashCode(); + + if (Type != null) + hashCode = (hashCode * 59) + Type.GetHashCode(); + + if (BoosterSeat != null) + hashCode = (hashCode * 59) + BoosterSeat.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Person.cs index 6da989d4e3a7..a429944bcc28 100644 --- a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Person /// - public partial class Person : IValidatableObject + public partial class Person : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -101,6 +101,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/net9/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..f755b0fb0e31 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Apple /// - public partial class Apple : IValidatableObject + public partial class Apple : 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 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/net9/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 170ad4b54dac..8097bf8a1edb 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Banana /// - public partial class Banana : IValidatableObject + public partial class Banana : 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 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/net9/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index 64a206e3bd57..f253ae7407c8 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Fruit /// - public partial class Fruit : IValidatableObject + public partial class Fruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -104,6 +104,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/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 8531edebf731..9b2b855bc57d 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model /// /// Apple /// - public partial class Apple : IValidatableObject + public partial class Apple : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,6 +76,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 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 + ( + Kind == input.Kind || + (Kind != null && + Kind.Equals(input.Kind)) + ) + && (AdditionalProperties.Count == input.AdditionalProperties.Count && !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/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 93897bf0b56a..018396b1f229 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model /// /// Banana /// - public partial class Banana : IValidatableObject + public partial class Banana : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,6 +76,52 @@ 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 + ( + Count == input.Count || + Count.Equals(input.Count) + ) + && (AdditionalProperties.Count == input.AdditionalProperties.Count && !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/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index 73c92d0cded3..f4f73bf7c4ae 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model /// /// Fruit /// - public partial class Fruit : IValidatableObject + public partial class Fruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -103,6 +103,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 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 + ( + Color == input.Color || + (Color != null && + Color.Equals(input.Color)) + ) + && (AdditionalProperties.Count == input.AdditionalProperties.Count && !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/net9/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Activity.cs index aabac63ce195..34d2eb29b90d 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 1da19734a2d3..e40a8476b20b 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 5fa49b8033da..0f3a343b0a64 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Animal.cs index 5a0b22326df1..1f20a3cc1a80 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 78ce72e42861..36e37fb9d644 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..7bdae344040b 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index f9d8cb0178a6..3d95cecbe093 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 6bd3d13aec0c..348d63795c7a 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c1fc28e5e87e..f3a2827b1ef7 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 24f40349480e..1a231f08c729 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Banana.cs index e0176c9c103d..dfcf64f8320f 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index dd211ecc28ae..fc689bf8b989 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..1577fab0eaba 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..b4844e8dda3c 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 6b4b1efcac37..f736dcbf126e 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + if (Declawed != null) + hashCode = (hashCode * 59) + Declawed.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Category.cs index 406cff32fdf5..c72331678a2a 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 99c5b315aa00..c91e63fe1d4a 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..5c787690806a 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..fad0ea2936f8 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs index 7a8ae9371f73..9710a8bfceb0 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net9/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) + Schema.GetHashCode(); + hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..c3ade9d078db 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 921b10388991..140648613797 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..48ee40a87a58 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs index 1ed4938d5fa7..69c538fa0ab0 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net9/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + DescendantName.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs index fd2ec581e4df..3c138c2fe193 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net9/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs index a4879a78dc05..36881b4fd45c 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Breed != null) + hashCode = (hashCode * 59) + Breed.GetHashCode(); + + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index 50db62858883..b050d1f5729c 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs index 6ad9d8ea3a34..f4e520f072b1 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index afdb3342ce23..bbd2825b6702 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index 49ce4b0a6d6e..2fa9ec805ecf 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..0c7823a35cdc 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..eb3d5a30c400 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 601c8e998661..5a8a3f9bd698 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..3cef58046513 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index db1b090fa3e9..d3222e5ee618 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index 217cf10f2dda..bdfed8ade3e2 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..6ba30cd77087 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..899c5dd1c24c 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index d5f9d222bc04..df31897b4769 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 78b741ac8c69..210daeb0c340 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..c922074ea2de 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..39c722d32440 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..69d337c567e7 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..b4d7c3db3d04 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..f8018a8357fe 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index d2f562dc62c7..61ef74e8a446 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 88c96f83b3a1..a815d0a9fdaa 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 4d5b99d03e4c..3a7e9f68c8fb 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 6049305ccc01..03b929a3a2ca 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..39f75816b620 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 2b9dab1b761b..97d795a1dced 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..9103975d9cc9 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index d74cab9a645c..5e7bd8426e06 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..de22082821f6 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Name.cs index 1ced7be525f5..ea49bb6d691a 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 9da492190051..3ae2c1e54eae 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 47b7b40607a7..8da17807a27e 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index bbc9459f436f..b846be3d71d3 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..41b8669f492d 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 55e6045dc21e..71a00c8bc2d3 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index dc0e8da10833..35de804e4a98 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..9f7bc8d17301 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Order.cs index 0f70b6ee763d..c77acf6e6c00 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index abcca493d7d2..8a2218e1bf9f 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index e69a7e25caa5..55209e0f8878 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net9/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,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 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(); + hashCode = (hashCode * 59) + PetType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pet.cs index 294770c56dfb..758c3acb29cd 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..4ca819c4d699 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..8473cacd0ff5 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..e26a93281ae3 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..3389630a55ab 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..e25c72f4861f 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index 8a2fc39d76bf..51317c43c0c1 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..e9d67f2c07f0 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Return.cs index fcf8e483d79e..cf59122f76ef 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index b9a4a5f9c95c..8de4c33187a6 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..2b1295f54f62 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..e6e7ba44c94d 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..28f687694345 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..226c2b95f32d 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..aa5ab3585b45 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..fb1f60c70f36 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 25d27479cb9b..b60354c08ac0 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 3ebb619596ee..97feac9982f9 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..5b2ab5542d25 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 54cbe89d95af..057b73593669 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs index df5553038566..badbeff43421 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..146af3e7994d 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 508d19f2807e..f10ef0d9b4d8 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..5aace5b51f1d 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..d2cdf13edc72 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/User.cs index 62f5b0736d68..64ce734a146c 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 012c650e4f1c..38c27c18ff77 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index d3fbe37b12e5..b83fe9ed07ef 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 7373bc5873d5..abe1d7c579b4 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs index fd37515f54a2..ca56bdb25d75 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs @@ -29,7 +29,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. @@ -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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 80ab5ec04b8d..5d8b38829150 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ActivityOutputElementRepresentation /// - public partial class ActivityOutputElementRepresentation : IValidatableObject + public partial class ActivityOutputElementRepresentation : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -93,6 +93,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index de2cf7f84849..0c190a29b2ff 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// AdditionalPropertiesClass /// - public partial class AdditionalPropertiesClass : IValidatableObject + public partial class AdditionalPropertiesClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -190,6 +190,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs index 1e87e6de2950..ac211b1bbf35 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Animal /// - public partial class Animal : IValidatableObject + public partial class Animal : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -85,6 +85,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs index c7fa501c3c5d..83973945f1e8 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ApiResponse /// - public partial class ApiResponse : IValidatableObject + public partial class ApiResponse : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs index 601dae95aa1a..f812612fbaa9 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Apple /// - public partial class Apple : IValidatableObject + public partial class Apple : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs index fdef147cb388..72b00e5dac78 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// AppleReq /// - public partial class AppleReq : IValidatableObject + public partial class AppleReq : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index a09872cef811..1bfa4ec407ef 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ArrayOfArrayOfNumberOnly /// - public partial class ArrayOfArrayOfNumberOnly : IValidatableObject + public partial class ArrayOfArrayOfNumberOnly : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c338f29efc9d..0d008b8922b4 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ArrayOfNumberOnly /// - public partial class ArrayOfNumberOnly : IValidatableObject + public partial class ArrayOfNumberOnly : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs index 04609b245365..bee803e74802 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ArrayTest /// - public partial class ArrayTest : IValidatableObject + public partial class ArrayTest : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs index cf0ee9cdb1aa..8f75bb2c7e2d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Banana /// - public partial class Banana : IValidatableObject + public partial class Banana : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs index 10375771f80b..6f0d907260ab 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// BananaReq /// - public partial class BananaReq : IValidatableObject + public partial class BananaReq : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs index 7eaeac5cde68..77868532e498 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// BasquePig /// - public partial class BasquePig : IValidatableObject + public partial class BasquePig : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs index 133845a991f0..211036b77e52 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Capitalization /// - public partial class Capitalization : IValidatableObject + public partial class Capitalization : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -158,6 +158,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs index 4887c6c7aff7..fe9c1857fac3 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs @@ -29,7 +29,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. @@ -71,6 +71,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + if (Declawed != null) + hashCode = (hashCode * 59) + Declawed.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs index 936d8dc8b225..d49154f0dbf8 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Category /// - public partial class Category : IValidatableObject + public partial class Category : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -86,6 +86,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs index c37ba2ec211e..949d1718ed4a 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs @@ -29,7 +29,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. @@ -130,6 +130,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs index 5a199576ee29..9569e588dc0d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs @@ -29,7 +29,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. @@ -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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 018f49af861f..78c2fcee1cb0 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ComplexQuadrilateral /// - public partial class ComplexQuadrilateral : IValidatableObject + public partial class ComplexQuadrilateral : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs index d2cbf27feffc..b4a54944429e 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -29,7 +29,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. @@ -123,6 +123,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) + Schema.GetHashCode(); + hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs index c0042b4d8843..7022c8ddd29e 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// DanishPig /// - public partial class DanishPig : IValidatableObject + public partial class DanishPig : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs index d908fed19a3a..bc76d6808fc2 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// DateOnlyClass /// - public partial class DateOnlyClass : IValidatableObject + public partial class DateOnlyClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 68e0836b632f..85370d17716c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// DeprecatedObject /// - public partial class DeprecatedObject : IValidatableObject + public partial class DeprecatedObject : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs index d86b93b3ff02..54714665b44f 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs @@ -29,7 +29,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. @@ -64,6 +64,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + DescendantName.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs index 152103158d0a..fe46d36e9406 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs @@ -29,7 +29,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. @@ -64,6 +64,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs index 05eb0781cfe7..3dfcd6ce2ef3 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs @@ -29,7 +29,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. @@ -71,6 +71,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Breed != null) + hashCode = (hashCode * 59) + Breed.GetHashCode(); + + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs index 1668434a783f..3720ed9ed136 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Drawing /// - public partial class Drawing : IValidatableObject + public partial class Drawing : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -125,6 +125,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs index 17b8f812e777..26105bdeb486 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// EntityBase /// - public partial class EntityBase : IValidatableObject + public partial class EntityBase : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -69,6 +69,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs index 9a6f097e92c2..fa03d2df86d3 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// EnumArrays /// - public partial class EnumArrays : IValidatableObject + public partial class EnumArrays : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -225,6 +225,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs index ea7a5bd26988..985affa467da 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// EnumTest /// - public partial class EnumTest : IValidatableObject + public partial class EnumTest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -682,6 +682,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 12983d68a09f..cf2a25d681a2 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// EquilateralTriangle /// - public partial class EquilateralTriangle : IValidatableObject + public partial class EquilateralTriangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs index dab2e4e27b36..74d921d5fbe6 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs @@ -29,7 +29,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. @@ -78,6 +78,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 971a81e9c8c4..2b569cb4328c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// FileSchemaTestClass /// - public partial class FileSchemaTestClass : IValidatableObject + public partial class FileSchemaTestClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -93,6 +93,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs index b8128f4c3e45..611a9d8fd062 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Foo /// - public partial class Foo : IValidatableObject + public partial class Foo : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index f4e54444c7ee..b606c1e42169 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// FooGetDefaultResponse /// - public partial class FooGetDefaultResponse : IValidatableObject + public partial class FooGetDefaultResponse : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs index a5dae71ad9d4..78cd0f9c68f2 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// FormatTest /// - public partial class FormatTest : IValidatableObject + public partial class FormatTest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -448,6 +448,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs index eb12679ed27d..ab39f862a460 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Fruit /// - public partial class Fruit : IValidatableObject + public partial class Fruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -93,6 +93,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs index 357be4388447..7eb56f7214a9 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// FruitReq /// - public partial class FruitReq : IValidatableObject + public partial class FruitReq : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -75,6 +75,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs index 9be524db707f..6ab2f3f6b7c0 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// GmFruit /// - public partial class GmFruit : IValidatableObject + public partial class GmFruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -97,6 +97,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index e8f6e0889167..6efc21ae76bf 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// GrandparentAnimal /// - public partial class GrandparentAnimal : IValidatableObject + public partial class GrandparentAnimal : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -69,6 +69,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 2a3a8e527f6e..76a45e126ff8 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -29,7 +29,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. @@ -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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 8aca45893e65..bca93fe11d67 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// IsoscelesTriangle /// - public partial class IsoscelesTriangle : IValidatableObject + public partial class IsoscelesTriangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -72,6 +72,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs index ddf0d615fd3c..db0959784a62 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// List /// - public partial class List : IValidatableObject + public partial class List : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 5993dd82adc8..58181d48cc38 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// LiteralStringClass /// - public partial class LiteralStringClass : IValidatableObject + public partial class LiteralStringClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -93,6 +93,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs index 132f1e462ce0..dc7550a5dc95 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Mammal /// - public partial class Mammal : IValidatableObject + public partial class Mammal : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -97,6 +97,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs index 06668cf78934..e89a5f1552cb 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// MapTest /// - public partial class MapTest : IValidatableObject + public partial class MapTest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -191,6 +191,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 266cbf7f9d2e..5e5b40c72560 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// MixedAnyOf /// - public partial class MixedAnyOf : IValidatableObject + public partial class MixedAnyOf : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 05de563f77d7..8ad925425a50 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -29,7 +29,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. @@ -130,6 +130,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs index 4d5b2c6d94cf..2d3d173cf8b1 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// MixedOneOf /// - public partial class MixedOneOf : IValidatableObject + public partial class MixedOneOf : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 15e011ce0918..22cf2c078620 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -29,7 +29,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. @@ -127,6 +127,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 968a64762901..1efa997496a7 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// MixedPropertiesAndAdditionalPropertiesClass /// - public partial class MixedPropertiesAndAdditionalPropertiesClass : IValidatableObject + public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -125,6 +125,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs index 6b56e6017b15..eb6113341ab0 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// MixedSubId /// - public partial class MixedSubId : IValidatableObject + public partial class MixedSubId : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs index 76bffb1856bc..539dbb3b0084 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs @@ -29,7 +29,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. @@ -93,6 +93,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs index 7a982b8104d3..546782db9714 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ModelClient /// - public partial class ModelClient : IValidatableObject + public partial class ModelClient : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs index 100ccfa20e5b..61ef8f1592f5 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs @@ -147,6 +147,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index fdf9064400f4..ef3192f520d0 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// NotificationtestGetElementsV1ResponseMPayload /// - public partial class NotificationtestGetElementsV1ResponseMPayload : IValidatableObject + public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs index db7eaa8f675c..03f96748c05f 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// NullableClass /// - public partial class NullableClass : IValidatableObject + public partial class NullableClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -253,6 +253,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 47db90bf3525..06eeac874285 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// NullableGuidClass /// - public partial class NullableGuidClass : IValidatableObject + public partial class NullableGuidClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs index a06afa2a9be6..90e56bc7361b 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs @@ -29,7 +29,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. @@ -82,6 +82,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs index f7ae912c05e6..58a704158b72 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// NumberOnly /// - public partial class NumberOnly : IValidatableObject + public partial class NumberOnly : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index fa4f88b3ecdd..8827984fec50 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ObjectWithDeprecatedFields /// - public partial class ObjectWithDeprecatedFields : IValidatableObject + public partial class ObjectWithDeprecatedFields : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -128,6 +128,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs index 5471f08f5194..4ae68250f376 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// OneOfString /// - public partial class OneOfString : IValidatableObject + public partial class OneOfString : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -67,6 +67,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs index c4c43309bec1..c0172262d705 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Order /// - public partial class Order : IValidatableObject + public partial class Order : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -240,6 +240,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs index 4428479e0485..6a43d36c074a 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// OuterComposite /// - public partial class OuterComposite : IValidatableObject + public partial class OuterComposite : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs index 9f659ee86ae8..c7dfda2a53d6 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs @@ -29,7 +29,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. @@ -54,6 +54,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 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(); + hashCode = (hashCode * 59) + PetType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs index 56b981a0e2ad..fbf879377872 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Pet /// - public partial class Pet : IValidatableObject + public partial class Pet : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -226,6 +226,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs index 2cd41f15027a..e501dfb6ab1a 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Pig /// - public partial class Pig : IValidatableObject + public partial class Pig : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -82,6 +82,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 3c1b978da7f0..facaeced8360 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// PolymorphicProperty /// - public partial class PolymorphicProperty : IValidatableObject + public partial class PolymorphicProperty : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -112,6 +112,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs index 5c7aa541ffc5..f3e4e463eaa3 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Quadrilateral /// - public partial class Quadrilateral : IValidatableObject + public partial class Quadrilateral : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -82,6 +82,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index c535142bde64..4e010bde4146 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// QuadrilateralInterface /// - public partial class QuadrilateralInterface : IValidatableObject + public partial class QuadrilateralInterface : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a48fcb21dbef..7bc7bc9013e6 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -125,6 +125,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs index 0c7dc7eab56f..5d5991190982 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// RequiredClass /// - public partial class RequiredClass : IValidatableObject + public partial class RequiredClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -1693,6 +1693,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs index 6119748b2992..150f8ce93a15 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Result /// - public partial class Result : IValidatableObject + public partial class Result : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -112,6 +112,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs index 6276a3a8c8ae..5923abf4f3f1 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs @@ -29,7 +29,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. @@ -111,6 +111,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 245ea1053e5d..c7b4b92a41ea 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -29,7 +29,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. @@ -93,6 +93,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 684ca8e8b515..01c2b52ef153 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// RolesReportsHashRole /// - public partial class RolesReportsHashRole : IValidatableObject + public partial class RolesReportsHashRole : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 926b431dda32..e141861c51d2 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ScaleneTriangle /// - public partial class ScaleneTriangle : IValidatableObject + public partial class ScaleneTriangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs index c608b7288d95..7e33ea03c160 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Shape /// - public partial class Shape : IValidatableObject + public partial class Shape : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -82,6 +82,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs index 15777abac01d..fa1d725f8f17 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ShapeInterface /// - public partial class ShapeInterface : IValidatableObject + public partial class ShapeInterface : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 3fc9f2735096..a068b48a3c4d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -29,7 +29,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. @@ -82,6 +82,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index bab36d28f5ef..b6dde11dee9c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// SimpleQuadrilateral /// - public partial class SimpleQuadrilateral : IValidatableObject + public partial class SimpleQuadrilateral : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs index 1fce10cd7823..ae0438d0e0cb 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// SpecialModelName /// - public partial class SpecialModelName : IValidatableObject + public partial class SpecialModelName : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -93,6 +93,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs index a6c404c940b8..5fcd99f88efb 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Tag /// - public partial class Tag : IValidatableObject + public partial class Tag : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -93,6 +93,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index f1a1940574ee..3fa949feba8c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// TestCollectionEndingWithWordList /// - public partial class TestCollectionEndingWithWordList : IValidatableObject + public partial class TestCollectionEndingWithWordList : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 5cbf9d28f57e..34d7fc759552 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// TestCollectionEndingWithWordListObject /// - public partial class TestCollectionEndingWithWordListObject : IValidatableObject + public partial class TestCollectionEndingWithWordListObject : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs index f1a80055f735..f9cd85896fc3 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// TestDescendants /// - public partial class TestDescendants : IValidatableObject + public partial class TestDescendants : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -144,6 +144,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 102413449b18..a724ea7283cb 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// TestInlineFreeformAdditionalPropertiesRequest /// - public partial class TestInlineFreeformAdditionalPropertiesRequest : IValidatableObject + public partial class TestInlineFreeformAdditionalPropertiesRequest : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs index e7829b5974ee..8a9116cdb1ea 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// TestResult /// - public partial class TestResult : IValidatableObject + public partial class TestResult : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -111,6 +111,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs index f34f2cf60139..41a6b51123c8 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Triangle /// - public partial class Triangle : IValidatableObject + public partial class Triangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -97,6 +97,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs index 6ccbe196f3d4..8a82ce1e7e45 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// TriangleInterface /// - public partial class TriangleInterface : IValidatableObject + public partial class TriangleInterface : 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 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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs index d02f765752fd..5867420479ff 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// User /// - public partial class User : IValidatableObject + public partial class User : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -258,6 +258,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs index 3d5ad4a7d676..ae3d173cbcb1 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Whale /// - public partial class Whale : IValidatableObject + public partial class Whale : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -102,6 +102,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs index 4ca12a36d096..9166c180034e 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Zebra /// - public partial class Zebra : IValidatableObject + public partial class Zebra : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -166,6 +166,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/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index dfb395124397..bd222cadd856 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// ZeroBasedEnumClass /// - public partial class ZeroBasedEnumClass : IValidatableObject + public partial class ZeroBasedEnumClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -143,6 +143,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/net9/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..f755b0fb0e31 100644 --- a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Apple /// - public partial class Apple : IValidatableObject + public partial class Apple : 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 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/net9/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 170ad4b54dac..8097bf8a1edb 100644 --- a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Banana /// - public partial class Banana : IValidatableObject + public partial class Banana : 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 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/net9/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index d58b2b4db1dd..a086e39cd031 100644 --- a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// /// Fruit /// - public partial class Fruit : IValidatableObject + public partial class Fruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -100,6 +100,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/net9/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Activity.cs index aabac63ce195..34d2eb29b90d 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 1da19734a2d3..e40a8476b20b 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 5fa49b8033da..0f3a343b0a64 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 5a0b22326df1..1f20a3cc1a80 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 78ce72e42861..36e37fb9d644 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..7bdae344040b 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index f9d8cb0178a6..3d95cecbe093 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 6bd3d13aec0c..348d63795c7a 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c1fc28e5e87e..f3a2827b1ef7 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 24f40349480e..1a231f08c729 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs index e0176c9c103d..dfcf64f8320f 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index dd211ecc28ae..fc689bf8b989 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..1577fab0eaba 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..b4844e8dda3c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 6b4b1efcac37..f736dcbf126e 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + if (Declawed != null) + hashCode = (hashCode * 59) + Declawed.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs index 406cff32fdf5..c72331678a2a 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index ff5df164f2c9..eb7a0d70e728 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..5c787690806a 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..fad0ea2936f8 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 7a8ae9371f73..9710a8bfceb0 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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) + Schema.GetHashCode(); + hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..c3ade9d078db 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 921b10388991..140648613797 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..48ee40a87a58 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 78e8ee587c11..20acb495ce09 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + DescendantName.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index a9859338c4ba..e954ffe02305 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs index a4879a78dc05..36881b4fd45c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Breed != null) + hashCode = (hashCode * 59) + Breed.GetHashCode(); + + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 50db62858883..b050d1f5729c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs index 6ad9d8ea3a34..f4e520f072b1 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 2a7d6a8a5f4d..c1d725c44357 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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. @@ -223,6 +223,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/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index b44f96171f59..0efbbb1209f0 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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. @@ -680,6 +680,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/net9/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..0c7823a35cdc 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..eb3d5a30c400 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 601c8e998661..5a8a3f9bd698 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..3cef58046513 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index db1b090fa3e9..d3222e5ee618 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 217cf10f2dda..bdfed8ade3e2 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..6ba30cd77087 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..899c5dd1c24c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index d5f9d222bc04..df31897b4769 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 78b741ac8c69..210daeb0c340 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..c922074ea2de 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..39c722d32440 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..69d337c567e7 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..b4d7c3db3d04 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..f8018a8357fe 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 796232e12c55..d4978ee3f66f 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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. @@ -189,6 +189,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/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 88c96f83b3a1..a815d0a9fdaa 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 4d5b99d03e4c..3a7e9f68c8fb 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 6049305ccc01..03b929a3a2ca 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..39f75816b620 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 2b9dab1b761b..97d795a1dced 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..9103975d9cc9 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index d74cab9a645c..5e7bd8426e06 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..de22082821f6 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs index 1ced7be525f5..ea49bb6d691a 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 9da492190051..3ae2c1e54eae 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 47b7b40607a7..8da17807a27e 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index bbc9459f436f..b846be3d71d3 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..41b8669f492d 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 55e6045dc21e..71a00c8bc2d3 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index dc0e8da10833..35de804e4a98 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..9f7bc8d17301 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs index 094096b6350d..7ca33a968a1a 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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. @@ -238,6 +238,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/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index abcca493d7d2..8a2218e1bf9f 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index e69a7e25caa5..55209e0f8878 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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,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 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(); + hashCode = (hashCode * 59) + PetType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 7e8a3d34957a..b931b1418926 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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. @@ -224,6 +224,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/net9/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..4ca819c4d699 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..8473cacd0ff5 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..e26a93281ae3 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..3389630a55ab 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..e25c72f4861f 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 6217ae6e6799..1d9e7053651c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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. @@ -1691,6 +1691,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/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..e9d67f2c07f0 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs index fcf8e483d79e..cf59122f76ef 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index b9a4a5f9c95c..8de4c33187a6 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..2b1295f54f62 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..e6e7ba44c94d 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..28f687694345 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..226c2b95f32d 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..aa5ab3585b45 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..fb1f60c70f36 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 25d27479cb9b..b60354c08ac0 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 3ebb619596ee..97feac9982f9 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..5b2ab5542d25 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 54cbe89d95af..057b73593669 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs index 36c7ef1ca217..869402c5aaf4 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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. @@ -142,6 +142,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/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..146af3e7994d 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 508d19f2807e..f10ef0d9b4d8 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..5aace5b51f1d 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..d2cdf13edc72 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/User.cs index 62f5b0736d68..64ce734a146c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 012c650e4f1c..38c27c18ff77 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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/net9/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 0efe7f985a3a..e5ebffbead8c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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. @@ -164,6 +164,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/net9/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 9722305fcb2a..0efd178d5f61 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/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. @@ -141,6 +141,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs index 65645b2e4829..c1248aaae26d 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs @@ -30,7 +30,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. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 728bbb0c349e..5b1c2b5378c7 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ActivityOutputElementRepresentation /// - public partial class ActivityOutputElementRepresentation : IValidatableObject + public partial class ActivityOutputElementRepresentation : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -94,6 +94,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 9fa35476f70c..b5199b794ea0 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// AdditionalPropertiesClass /// - public partial class AdditionalPropertiesClass : IValidatableObject + public partial class AdditionalPropertiesClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -191,6 +191,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs index 37a0519bbd6b..4f656bf9a0f9 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Animal /// - public partial class Animal : IValidatableObject + public partial class Animal : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -86,6 +86,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs index bf92565f9a2e..f8ecf2332104 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ApiResponse /// - public partial class ApiResponse : IValidatableObject + public partial class ApiResponse : 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 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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs index 3dab90bbeb36..3fba35594963 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Apple /// - public partial class Apple : IValidatableObject + public partial class Apple : 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 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/net9/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs index cbb5ea8f0849..280dfe5bd8ad 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// AppleReq /// - public partial class AppleReq : IValidatableObject + public partial class AppleReq : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cd3309a5900e..88a8a2185ef7 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ArrayOfArrayOfNumberOnly /// - public partial class ArrayOfArrayOfNumberOnly : IValidatableObject + public partial class ArrayOfArrayOfNumberOnly : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 90b6e4a8bd14..bf08e125d23c 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ArrayOfNumberOnly /// - public partial class ArrayOfNumberOnly : IValidatableObject + public partial class ArrayOfNumberOnly : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs index 6be410aad46e..446eb7620890 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ArrayTest /// - public partial class ArrayTest : IValidatableObject + public partial class ArrayTest : 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 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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs index 1352e54c4091..5438d41b34ca 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Banana /// - public partial class Banana : IValidatableObject + public partial class Banana : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs index 584505890fdc..a9c25c8da2f2 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// BananaReq /// - public partial class BananaReq : IValidatableObject + public partial class BananaReq : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs index cdd31db8f50c..b7da9aa37d77 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// BasquePig /// - public partial class BasquePig : IValidatableObject + public partial class BasquePig : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs index e36a343dc5e2..739038933356 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Capitalization /// - public partial class Capitalization : IValidatableObject + public partial class Capitalization : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -159,6 +159,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs index 00b32d995aa3..24b8224f6e0f 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs @@ -30,7 +30,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. @@ -72,6 +72,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + if (Declawed != null) + hashCode = (hashCode * 59) + Declawed.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs index 0369f8f37e97..8c0edef8913f 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Category /// - public partial class Category : IValidatableObject + public partial class Category : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -87,6 +87,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs index 4131c59373af..02b9ae2d8db6 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs @@ -30,7 +30,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. @@ -131,6 +131,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs index e38fad89dbad..6e445f86b8ce 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs @@ -30,7 +30,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. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index acf1f351fe7a..1e9f8c76a39b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ComplexQuadrilateral /// - public partial class ComplexQuadrilateral : IValidatableObject + public partial class ComplexQuadrilateral : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs index a4a704b58170..b42180782c29 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -30,7 +30,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. @@ -124,6 +124,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) + Schema.GetHashCode(); + hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs index c54e2bd3ea87..29b14cf7ca36 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// DanishPig /// - public partial class DanishPig : IValidatableObject + public partial class DanishPig : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 8981331c9e19..b7833ecf6c15 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// DateOnlyClass /// - public partial class DateOnlyClass : IValidatableObject + public partial class DateOnlyClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 0b8716d11ff4..0a2cf22a4f16 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// DeprecatedObject /// - public partial class DeprecatedObject : IValidatableObject + public partial class DeprecatedObject : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs index 9af51efffe3c..93bc7111cb23 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs @@ -30,7 +30,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. @@ -65,6 +65,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + DescendantName.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs index 5e39d2322847..44f45692318a 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs @@ -30,7 +30,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. @@ -65,6 +65,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs index 6129b69ce916..bb16c4b43a1a 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs @@ -30,7 +30,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. @@ -72,6 +72,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Breed != null) + hashCode = (hashCode * 59) + Breed.GetHashCode(); + + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs index b6400a09e802..1eb507df9fe6 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Drawing /// - public partial class Drawing : IValidatableObject + public partial class Drawing : 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 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/net9/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs index 093b2012f441..1bb6b2c4bd0e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// EntityBase /// - public partial class EntityBase : IValidatableObject + public partial class EntityBase : 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 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/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs index 5c9774abc417..fb119b30f518 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// EnumArrays /// - public partial class EnumArrays : IValidatableObject + public partial class EnumArrays : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -226,6 +226,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs index 897a9bd24efe..77056288850c 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// EnumTest /// - public partial class EnumTest : IValidatableObject + public partial class EnumTest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -683,6 +683,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index ca7a8101de84..27842a7b4edf 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// EquilateralTriangle /// - public partial class EquilateralTriangle : IValidatableObject + public partial class EquilateralTriangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/File.cs index bdc5c25e1329..82167ded1cfc 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/File.cs @@ -30,7 +30,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. @@ -79,6 +79,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index d7c977f2fe4f..8d1c2a30cb44 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// FileSchemaTestClass /// - public partial class FileSchemaTestClass : IValidatableObject + public partial class FileSchemaTestClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -94,6 +94,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs index ac4aeb49df5c..24c8bf3892bb 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Foo /// - public partial class Foo : IValidatableObject + public partial class Foo : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 9f57f4d6318a..c7cf5eddfb15 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// FooGetDefaultResponse /// - public partial class FooGetDefaultResponse : IValidatableObject + public partial class FooGetDefaultResponse : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs index 894fa9a3fa82..8ad96efbbb9e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// FormatTest /// - public partial class FormatTest : IValidatableObject + public partial class FormatTest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -449,6 +449,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs index 6aa166222089..b7c0ca2fa9ec 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Fruit /// - public partial class Fruit : IValidatableObject + public partial class Fruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -94,6 +94,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs index 1f75be50f94b..15642175af7e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// FruitReq /// - public partial class FruitReq : IValidatableObject + public partial class FruitReq : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -76,6 +76,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs index e44c82f23506..759612a8c4a9 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// GmFruit /// - public partial class GmFruit : IValidatableObject + public partial class GmFruit : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -98,6 +98,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 2a787a59db6d..244e43f34091 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// GrandparentAnimal /// - public partial class GrandparentAnimal : IValidatableObject + public partial class GrandparentAnimal : 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 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/net9/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 71f3c4dc4ec0..78a72b29b35c 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -30,7 +30,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. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index df5fac5540b5..bfbb63ad11d1 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// IsoscelesTriangle /// - public partial class IsoscelesTriangle : IValidatableObject + public partial class IsoscelesTriangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -73,6 +73,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/List.cs index 024998ed763a..67444fa862fe 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/List.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// List /// - public partial class List : IValidatableObject + public partial class List : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs index e54eebdaa1dc..21e8b56b43da 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// LiteralStringClass /// - public partial class LiteralStringClass : IValidatableObject + public partial class LiteralStringClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -94,6 +94,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs index fe273665e2c2..615570338f8d 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Mammal /// - public partial class Mammal : IValidatableObject + public partial class Mammal : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -98,6 +98,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs index 40dee3f15569..b7bcb6774821 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// MapTest /// - public partial class MapTest : IValidatableObject + public partial class MapTest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -192,6 +192,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs index cdac03c3bcf4..33f479d44d60 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// MixedAnyOf /// - public partial class MixedAnyOf : IValidatableObject + public partial class MixedAnyOf : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 72287b1d1b45..285ff54620a3 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -30,7 +30,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. @@ -131,6 +131,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs index e9f36662dd80..3e6f25a72e2c 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// MixedOneOf /// - public partial class MixedOneOf : IValidatableObject + public partial class MixedOneOf : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 8ea30fde6f80..f9874ba1befa 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -30,7 +30,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. @@ -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 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/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3629d644571b..ae4c97d0d105 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// MixedPropertiesAndAdditionalPropertiesClass /// - public partial class MixedPropertiesAndAdditionalPropertiesClass : IValidatableObject + public partial class MixedPropertiesAndAdditionalPropertiesClass : 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 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/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs index 696681a920f3..1797660a5a2e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// MixedSubId /// - public partial class MixedSubId : IValidatableObject + public partial class MixedSubId : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs index 4b3f421263d4..dc90e540d2c6 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs @@ -30,7 +30,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. @@ -94,6 +94,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs index 49dcb68c571f..abfa2ac69bc6 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ModelClient /// - public partial class ModelClient : IValidatableObject + public partial class ModelClient : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs index 72938274943d..3327f0a61b5b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs @@ -148,6 +148,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 212b80559b9f..ae3fa92e2d51 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// NotificationtestGetElementsV1ResponseMPayload /// - public partial class NotificationtestGetElementsV1ResponseMPayload : IValidatableObject + public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs index aa2baca6ee31..0b79e822bc59 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// NullableClass /// - public partial class NullableClass : IValidatableObject + public partial class NullableClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -254,6 +254,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs index d0c107c1a216..091966bb3f5d 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// NullableGuidClass /// - public partial class NullableGuidClass : IValidatableObject + public partial class NullableGuidClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -79,6 +79,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs index 25248c75ffaf..0649dd573f4b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs @@ -30,7 +30,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. @@ -83,6 +83,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs index 3662647e6562..f81af98bd1c1 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// NumberOnly /// - public partial class NumberOnly : IValidatableObject + public partial class NumberOnly : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index b2fced877576..a1490a170b53 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ObjectWithDeprecatedFields /// - public partial class ObjectWithDeprecatedFields : IValidatableObject + public partial class ObjectWithDeprecatedFields : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -129,6 +129,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs index 269f97ae4fd3..e592deb58020 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// OneOfString /// - public partial class OneOfString : IValidatableObject + public partial class OneOfString : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -68,6 +68,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs index fff55dc03b4b..eeab8750bc96 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Order /// - public partial class Order : IValidatableObject + public partial class Order : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -241,6 +241,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs index 834a7f3516f1..a9dec221be2e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// OuterComposite /// - public partial class OuterComposite : IValidatableObject + public partial class OuterComposite : 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 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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs index b7c98ce645cb..8c5da311e58c 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs @@ -30,7 +30,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. @@ -55,6 +55,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 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(); + hashCode = (hashCode * 59) + PetType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs index fc68eb27a177..7da635a45531 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Pet /// - public partial class Pet : IValidatableObject + public partial class Pet : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -227,6 +227,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs index 57c4f9a91217..e273f5e47b9c 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Pig /// - public partial class Pig : IValidatableObject + public partial class Pig : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -83,6 +83,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 9e1aaafe221e..30919171f4c2 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// PolymorphicProperty /// - public partial class PolymorphicProperty : IValidatableObject + public partial class PolymorphicProperty : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -113,6 +113,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs index 8e308392490d..4b26516e5b8a 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Quadrilateral /// - public partial class Quadrilateral : IValidatableObject + public partial class Quadrilateral : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -83,6 +83,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 3d15636fda9a..433d53c956ad 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// QuadrilateralInterface /// - public partial class QuadrilateralInterface : IValidatableObject + public partial class QuadrilateralInterface : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 4d458434bb1c..c9629ecb456d 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -126,6 +126,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs index 074d0e77ee37..6a9e34ce2fca 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// RequiredClass /// - public partial class RequiredClass : IValidatableObject + public partial class RequiredClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -1694,6 +1694,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs index 1c1f18fd1dec..c971ec6712c6 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Result /// - public partial class Result : IValidatableObject + public partial class Result : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -113,6 +113,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs index 1544a23710c1..d19c38051726 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs @@ -30,7 +30,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. @@ -112,6 +112,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 28b65b24ecf3..26ed03945cca 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -30,7 +30,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. @@ -94,6 +94,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index ba4ac84d8e20..e286af3d759d 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// RolesReportsHashRole /// - public partial class RolesReportsHashRole : IValidatableObject + public partial class RolesReportsHashRole : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 6ce8c2b68a1b..66b3e482247f 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ScaleneTriangle /// - public partial class ScaleneTriangle : IValidatableObject + public partial class ScaleneTriangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs index 71620d915bbb..a7ec2703d196 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Shape /// - public partial class Shape : IValidatableObject + public partial class Shape : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -83,6 +83,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs index 3070f52be3ac..de88fa3aa8f5 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ShapeInterface /// - public partial class ShapeInterface : IValidatableObject + public partial class ShapeInterface : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 37b5fddee5e3..ac33411f99a8 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -30,7 +30,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. @@ -83,6 +83,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 61ff978f3c24..d6805de69bab 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// SimpleQuadrilateral /// - public partial class SimpleQuadrilateral : IValidatableObject + public partial class SimpleQuadrilateral : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -80,6 +80,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs index 0cf9332983fd..d648d5517b1b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// SpecialModelName /// - public partial class SpecialModelName : IValidatableObject + public partial class SpecialModelName : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -94,6 +94,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs index a350814f2c88..752d2c03575d 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Tag /// - public partial class Tag : IValidatableObject + public partial class Tag : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -94,6 +94,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index b5f8d88ed68d..f2d7f31077b5 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// TestCollectionEndingWithWordList /// - public partial class TestCollectionEndingWithWordList : IValidatableObject + public partial class TestCollectionEndingWithWordList : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 37acae1c88df..03dd9a643dea 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// TestCollectionEndingWithWordListObject /// - public partial class TestCollectionEndingWithWordListObject : IValidatableObject + public partial class TestCollectionEndingWithWordListObject : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs index 538b8c90d98f..7b01074176f3 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// TestDescendants /// - public partial class TestDescendants : IValidatableObject + public partial class TestDescendants : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -145,6 +145,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index de60d7c2281f..247ac05eebf5 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// TestInlineFreeformAdditionalPropertiesRequest /// - public partial class TestInlineFreeformAdditionalPropertiesRequest : IValidatableObject + public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -78,6 +78,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs index df0deacac70e..ef7e6149751c 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// TestResult /// - public partial class TestResult : IValidatableObject + public partial class TestResult : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -112,6 +112,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs index 5c2490410259..2731f4748060 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Triangle /// - public partial class Triangle : IValidatableObject + public partial class Triangle : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -98,6 +98,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs index a2ef4da28f5a..671aedec72fd 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// TriangleInterface /// - public partial class TriangleInterface : IValidatableObject + public partial class TriangleInterface : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -71,6 +71,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/User.cs index 6af3ab9df35c..9838d96621c9 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/User.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// User /// - public partial class User : IValidatableObject + public partial class User : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -259,6 +259,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs index 080a4f804022..7a3c3b805f13 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Whale /// - public partial class Whale : IValidatableObject + public partial class Whale : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -103,6 +103,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs index 0d0e7222c42b..a5b4f97b10ea 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// Zebra /// - public partial class Zebra : IValidatableObject + public partial class Zebra : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -167,6 +167,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/net9/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 74792442fd0e..17107d052935 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model /// /// ZeroBasedEnumClass /// - public partial class ZeroBasedEnumClass : IValidatableObject + public partial class ZeroBasedEnumClass : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -144,6 +144,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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 4562d4ceb728..0ac5a7015a9f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index db832150ed96..9521ebe66825 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index f70c7a4c5fc3..616a0cabe479 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs index f172cd70bc53..7cedbffdbcf6 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 74dbae3c6ba3..176933bfd50d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..ca96c6586a85 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 1a839ecb01b6..ac0d7ce04ae9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cea3f5a4ba50..ceae5298ed9b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 47bac6ba97c6..8ce9459915ff 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 1992bf9e932d..ce5e03122363 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d7b7e8188f75..ac171273b5fc 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 8aa8da44caea..7d9cb85757a4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..1577fab0eaba 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..477cd5c1cb70 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 9ed61c34f667..f9001e9924ec 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + if (Declawed != null) + hashCode = (hashCode * 59) + Declawed.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs index 7db5ba3129ff..3315b089337d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index cce039237aea..5d3849406886 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..4fc40c3323c3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..fad0ea2936f8 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 7a8ae9371f73..9710a8bfceb0 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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) + Schema.GetHashCode(); + hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..c3ade9d078db 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 62ae935e4564..3811c02effd4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..35c0c6474f16 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 78e8ee587c11..20acb495ce09 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + DescendantName.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index a9859338c4ba..e954ffe02305 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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,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 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) + AlternativeName.GetHashCode(); + hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); + hashCode = (hashCode * 59) + ObjectType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 509278540c44..4f564028cfd3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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,47 @@ 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(); + hashCode = (hashCode * 59) + ClassName.GetHashCode(); + if (Breed != null) + hashCode = (hashCode * 59) + Breed.GetHashCode(); + + if (Color != null) + hashCode = (hashCode * 59) + Color.GetHashCode(); + + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index e83b95303760..9bf0a759348e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs index 6ad9d8ea3a34..f4e520f072b1 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index c107741e961d..00b30f415013 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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. @@ -223,6 +223,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/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 40d5e2753631..9d1b5c554957 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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. @@ -680,6 +680,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/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..0c7823a35cdc 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..9c5ae3ecb3c3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 76db6338890f..3458f9cfef70 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..5cbc2e7d9847 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 285e193a7e15..5fed92ae4324 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 1887346c88b6..d2cbf7c9e7b5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..1327c362aab6 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..899c5dd1c24c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..e5950e5799ea 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 78b741ac8c69..210daeb0c340 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..9bccf4cf1110 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..39c722d32440 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..9034be04da57 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..8873ba2f28d7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..f8018a8357fe 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 0af46ec34e41..096de54f8a98 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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. @@ -189,6 +189,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/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 3a559f831196..60ad1cc56304 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..9221d78c62e5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 5e238e0f7b30..53e9c518a45a 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..39f75816b620 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index e0462d7c8a25..ee5ce7a4ecec 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..61a7dc5f21a2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 882bf7ccda47..67fef894159e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..58e29caf89b2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs index dba5779e547d..082c57c305c6 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 9da492190051..3ae2c1e54eae 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 397f12bffbb0..415192871a7f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 6efbeef44dcd..73d065eb7b0f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..41b8669f492d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 55ab016ac3db..b5bbaa65e7f5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 541a621953aa..377db506794d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..9f7bc8d17301 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index ad31eb6ad143..a27142d80f1b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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. @@ -238,6 +238,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/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index d366c24ec24c..838de079def8 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index e69a7e25caa5..55209e0f8878 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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,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 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(); + hashCode = (hashCode * 59) + PetType.GetHashCode(); + + return hashCode; + } + } } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e8e661445a1c..1f5770feabe4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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. @@ -224,6 +224,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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..4ca819c4d699 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..8473cacd0ff5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..e26a93281ae3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..3389630a55ab 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..cbc9b21a9bc7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index fee9ba7f2965..c6bb1a54eaf3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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. @@ -1691,6 +1691,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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..b516f1e23a07 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs index 81211e0ce4ac..a6cec7f4ab13 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 5b7a88bd659a..a630e939dd9b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..96c1912c44e1 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..e6e7ba44c94d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..28f687694345 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..226c2b95f32d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..aa5ab3585b45 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..fb1f60c70f36 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index f30e2a11997b..59ac9471da5c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 6b9d5082405b..4229b0b75aa3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..57c30556c29c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 7328caf1ead5..46bd8cab9cb5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs index 36c7ef1ca217..869402c5aaf4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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. @@ -142,6 +142,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/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..bb83884c6e2e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index cfa1aee10f8d..f0fa0884d97d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..5aace5b51f1d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..d2cdf13edc72 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs index a85e556bb9e8..9d46caed8e10 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 56da6f6db3c6..fd4741ccf020 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index bdf489815279..04670ae44d5b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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. @@ -164,6 +164,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/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index a6d408aeecc1..f7e69ee99c30 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/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. @@ -141,6 +141,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 /// From b2ef45e11fcd9f46c353668dfcad65f864cdc97f Mon Sep 17 00:00:00 2001 From: Alec Petersen Date: Mon, 28 Jul 2025 14:28:38 -0600 Subject: [PATCH 5/7] Handle case with no non-inherited properties --- .../csharp/libraries/generichost/modelGeneric.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9180805b6aff..1fc3751ab03e 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 @@ -311,7 +311,7 @@ if (input == null) return false; - return {{#parent}}base.Equals(input) && {{/parent}}{{#allVars}}{{^isInherited}}{{^isContainer}} + return {{#parent}}base.Equals(input){{#allVars}}{{^isInherited}}{{#-first}} && {{/-first}}{{/isInherited}}{{/allVars}}{{/parent}}{{#allVars}}{{^isInherited}}{{^isContainer}} ( {{name}} == input.{{name}} || {{^vendorExtensions.x-is-value-type}} From 152ea63d1e7203b560c8ffc760dbbcdb370c4655 Mon Sep 17 00:00:00 2001 From: Alec Petersen Date: Mon, 28 Jul 2025 14:43:55 -0600 Subject: [PATCH 6/7] Reuse logic from working mustache file --- .../generichost/modelGeneric.mustache | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) 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 1fc3751ab03e..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 @@ -309,29 +309,28 @@ {{/useCompareNetObjects}} {{^useCompareNetObjects}} if (input == null) + { return false; - - return {{#parent}}base.Equals(input){{#allVars}}{{^isInherited}}{{#-first}} && {{/-first}}{{/isInherited}}{{/allVars}}{{/parent}}{{#allVars}}{{^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}}{{/allVars}}{{^allVars}}{{#parent}}base.Equals(input){{/parent}}{{^parent}}false{{/parent}}{{/allVars}}{{^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}} } @@ -350,14 +349,14 @@ {{^parent}} int hashCode = 41; {{/parent}} - {{#allVars}} + {{#vars}} {{#required}} {{^isNullable}} hashCode = (hashCode * 59) + {{name}}.GetHashCode(); {{/isNullable}} {{/required}} - {{/allVars}} - {{#allVars}} + {{/vars}} + {{#vars}} {{#lambda.copy}} if ({{name}} != null) hashCode = (hashCode * 59) + {{name}}.GetHashCode(); @@ -371,7 +370,7 @@ {{#lambda.pasteOnce}} {{/lambda.pasteOnce}} {{/required}} - {{/allVars}} + {{/vars}} {{#isAdditionalPropertiesTrue}} {{^parentModel}} hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode(); From b319c5bd8949ae0c474667ddd845762211bab393 Mon Sep 17 00:00:00 2001 From: Alec Petersen Date: Mon, 28 Jul 2025 14:46:22 -0600 Subject: [PATCH 7/7] Update Samples --- .../net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs | 9 --------- .../net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs | 9 --------- .../src/Org.OpenAPITools/Model/Apple.cs | 11 ++++++----- .../src/Org.OpenAPITools/Model/Banana.cs | 9 +++++---- .../src/Org.OpenAPITools/Model/Fruit.cs | 11 ++++++----- .../FormModels/src/Org.OpenAPITools/Model/Cat.cs | 4 ---- .../src/Org.OpenAPITools/Model/CopyActivity.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 2 -- .../src/Org.OpenAPITools/Model/Descendant2.cs | 2 -- .../FormModels/src/Org.OpenAPITools/Model/Dog.cs | 4 ---- .../src/Org.OpenAPITools/Model/ParentPet.cs | 1 - .../net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs | 4 ---- .../src/Org.OpenAPITools/Model/CopyActivity.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 2 -- .../src/Org.OpenAPITools/Model/Descendant2.cs | 2 -- .../net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs | 4 ---- .../Petstore/src/Org.OpenAPITools/Model/ParentPet.cs | 1 - .../net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs | 9 --------- .../net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs | 9 --------- .../src/Org.OpenAPITools/Model/Apple.cs | 11 ++++++----- .../src/Org.OpenAPITools/Model/Banana.cs | 9 +++++---- .../src/Org.OpenAPITools/Model/Fruit.cs | 11 ++++++----- .../FormModels/src/Org.OpenAPITools/Model/Cat.cs | 4 ---- .../src/Org.OpenAPITools/Model/CopyActivity.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 2 -- .../src/Org.OpenAPITools/Model/Descendant2.cs | 2 -- .../FormModels/src/Org.OpenAPITools/Model/Dog.cs | 4 ---- .../src/Org.OpenAPITools/Model/ParentPet.cs | 1 - .../net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs | 4 ---- .../src/Org.OpenAPITools/Model/CopyActivity.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 2 -- .../src/Org.OpenAPITools/Model/Descendant2.cs | 2 -- .../net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs | 4 ---- .../Petstore/src/Org.OpenAPITools/Model/ParentPet.cs | 1 - .../net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs | 9 --------- .../net8/AllOf/src/Org.OpenAPITools/Model/Child.cs | 9 --------- .../src/Org.OpenAPITools/Model/Apple.cs | 11 ++++++----- .../src/Org.OpenAPITools/Model/Banana.cs | 9 +++++---- .../src/Org.OpenAPITools/Model/Fruit.cs | 11 ++++++----- .../net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs | 4 ---- .../src/Org.OpenAPITools/Model/CopyActivity.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 2 -- .../src/Org.OpenAPITools/Model/Descendant2.cs | 2 -- .../net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs | 4 ---- .../src/Org.OpenAPITools/Model/ParentPet.cs | 1 - .../src/Org.OpenAPITools/Model/Cat.cs | 4 ---- .../src/Org.OpenAPITools/Model/CopyActivity.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 2 -- .../src/Org.OpenAPITools/Model/Descendant2.cs | 2 -- .../src/Org.OpenAPITools/Model/Dog.cs | 4 ---- .../src/Org.OpenAPITools/Model/ParentPet.cs | 1 - .../net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs | 4 ---- .../src/Org.OpenAPITools/Model/CopyActivity.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 2 -- .../src/Org.OpenAPITools/Model/Descendant2.cs | 2 -- .../net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs | 4 ---- .../Petstore/src/Org.OpenAPITools/Model/ParentPet.cs | 1 - .../src/Org.OpenAPITools/Model/Cat.cs | 4 ---- .../src/Org.OpenAPITools/Model/CopyActivity.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 2 -- .../src/Org.OpenAPITools/Model/Descendant2.cs | 2 -- .../src/Org.OpenAPITools/Model/Dog.cs | 4 ---- .../src/Org.OpenAPITools/Model/ParentPet.cs | 1 - .../net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs | 9 --------- .../net9/AllOf/src/Org.OpenAPITools/Model/Child.cs | 9 --------- .../src/Org.OpenAPITools/Model/Apple.cs | 11 ++++++----- .../src/Org.OpenAPITools/Model/Banana.cs | 9 +++++---- .../src/Org.OpenAPITools/Model/Fruit.cs | 11 ++++++----- .../net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs | 4 ---- .../src/Org.OpenAPITools/Model/CopyActivity.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 2 -- .../src/Org.OpenAPITools/Model/Descendant2.cs | 2 -- .../net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs | 4 ---- .../src/Org.OpenAPITools/Model/ParentPet.cs | 1 - .../src/Org.OpenAPITools/Model/Cat.cs | 4 ---- .../src/Org.OpenAPITools/Model/CopyActivity.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 2 -- .../src/Org.OpenAPITools/Model/Descendant2.cs | 2 -- .../src/Org.OpenAPITools/Model/Dog.cs | 4 ---- .../src/Org.OpenAPITools/Model/ParentPet.cs | 1 - .../net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs | 4 ---- .../src/Org.OpenAPITools/Model/CopyActivity.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 2 -- .../src/Org.OpenAPITools/Model/Descendant2.cs | 2 -- .../net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs | 4 ---- .../Petstore/src/Org.OpenAPITools/Model/ParentPet.cs | 1 - .../src/Org.OpenAPITools/Model/Cat.cs | 4 ---- .../src/Org.OpenAPITools/Model/CopyActivity.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 2 -- .../src/Org.OpenAPITools/Model/Descendant2.cs | 2 -- .../src/Org.OpenAPITools/Model/Dog.cs | 4 ---- .../src/Org.OpenAPITools/Model/ParentPet.cs | 1 - .../Petstore/src/Org.OpenAPITools/Model/Cat.cs | 4 ---- .../src/Org.OpenAPITools/Model/CopyActivity.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 2 -- .../src/Org.OpenAPITools/Model/Descendant2.cs | 2 -- .../Petstore/src/Org.OpenAPITools/Model/Dog.cs | 4 ---- .../Petstore/src/Org.OpenAPITools/Model/ParentPet.cs | 1 - 98 files changed, 81 insertions(+), 310 deletions(-) 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 e6b21e5672e8..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 @@ -103,15 +103,6 @@ public override int GetHashCode() if (Children != null) hashCode = (hashCode * 59) + Children.GetHashCode(); - if (FirstName != null) - hashCode = (hashCode * 59) + FirstName.GetHashCode(); - - if (LastName != null) - hashCode = (hashCode * 59) + LastName.GetHashCode(); - - if (Type != null) - hashCode = (hashCode * 59) + Type.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 5d423b55be2a..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 @@ -119,15 +119,6 @@ public override int GetHashCode() if (Age != null) hashCode = (hashCode * 59) + Age.GetHashCode(); - if (FirstName != null) - hashCode = (hashCode * 59) + FirstName.GetHashCode(); - - if (LastName != null) - hashCode = (hashCode * 59) + LastName.GetHashCode(); - - if (Type != null) - hashCode = (hashCode * 59) + Type.GetHashCode(); - if (BoosterSeat != null) hashCode = (hashCode * 59) + BoosterSeat.GetHashCode(); 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 ab22bf81304b..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 @@ -92,15 +92,16 @@ public override bool Equals(object input) public bool Equals(Apple input) { if (input == null) + { return false; - + } return ( - Kind == input.Kind || - (Kind != null && - Kind.Equals(input.Kind)) + this.Kind == input.Kind || + (this.Kind != null && + this.Kind.Equals(input.Kind)) ) - && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } /// 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 0773b3aca3bd..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 @@ -92,14 +92,15 @@ public override bool Equals(object input) public bool Equals(Banana input) { if (input == null) + { return false; - + } return ( - Count == input.Count || - Count.Equals(input.Count) + this.Count == input.Count || + this.Count.Equals(input.Count) ) - && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } /// 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 421804aef05a..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 @@ -119,15 +119,16 @@ public override bool Equals(object input) public bool Equals(Fruit input) { if (input == null) + { return false; - + } return ( - Color == input.Color || - (Color != null && - Color.Equals(input.Color)) + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) ) - && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } /// 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 f9001e9924ec..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 @@ -99,10 +99,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - if (Declawed != null) hashCode = (hashCode * 59) + Declawed.GetHashCode(); 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 9710a8bfceb0..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 @@ -151,8 +151,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + Schema.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/Descendant1.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs index 69c538fa0ab0..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 @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + DescendantName.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.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 3c138c2fe193..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 @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.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 4f564028cfd3..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 @@ -99,13 +99,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); if (Breed != null) hashCode = (hashCode * 59) + Breed.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - return hashCode; } 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 55209e0f8878..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 @@ -82,7 +82,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + PetType.GetHashCode(); return hashCode; } 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 f9001e9924ec..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 @@ -99,10 +99,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - if (Declawed != null) hashCode = (hashCode * 59) + Declawed.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 9710a8bfceb0..9ed938867edb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -151,8 +151,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + Schema.GetHashCode(); hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + hashCode = (hashCode * 59) + Schema.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 20acb495ce09..383767d9ba20 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + DescendantName.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index e954ffe02305..14bcaaec8881 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 4f564028cfd3..78058b51ec4c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -99,13 +99,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); if (Breed != null) hashCode = (hashCode * 59) + Breed.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 55209e0f8878..86983a5ae718 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -82,7 +82,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + PetType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs index e6b21e5672e8..4fa5c5218093 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -103,15 +103,6 @@ public override int GetHashCode() if (Children != null) hashCode = (hashCode * 59) + Children.GetHashCode(); - if (FirstName != null) - hashCode = (hashCode * 59) + FirstName.GetHashCode(); - - if (LastName != null) - hashCode = (hashCode * 59) + LastName.GetHashCode(); - - if (Type != null) - hashCode = (hashCode * 59) + Type.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs index 5d423b55be2a..96f67da0148d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -119,15 +119,6 @@ public override int GetHashCode() if (Age != null) hashCode = (hashCode * 59) + Age.GetHashCode(); - if (FirstName != null) - hashCode = (hashCode * 59) + FirstName.GetHashCode(); - - if (LastName != null) - hashCode = (hashCode * 59) + LastName.GetHashCode(); - - if (Type != null) - hashCode = (hashCode * 59) + Type.GetHashCode(); - if (BoosterSeat != null) hashCode = (hashCode * 59) + BoosterSeat.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index ab22bf81304b..3d05aa6c5aba 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -92,15 +92,16 @@ public override bool Equals(object input) public bool Equals(Apple input) { if (input == null) + { return false; - + } return ( - Kind == input.Kind || - (Kind != null && - Kind.Equals(input.Kind)) + this.Kind == input.Kind || + (this.Kind != null && + this.Kind.Equals(input.Kind)) ) - && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 0773b3aca3bd..ed4d18399b9f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -92,14 +92,15 @@ public override bool Equals(object input) public bool Equals(Banana input) { if (input == null) + { return false; - + } return ( - Count == input.Count || - Count.Equals(input.Count) + this.Count == input.Count || + this.Count.Equals(input.Count) ) - && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index 421804aef05a..1502f36a93f7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -119,15 +119,16 @@ public override bool Equals(object input) public bool Equals(Fruit input) { if (input == null) + { return false; - + } return ( - Color == input.Color || - (Color != null && - Color.Equals(input.Color)) + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) ) - && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs index f9001e9924ec..0e4dfd825ca3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -99,10 +99,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - if (Declawed != null) hashCode = (hashCode * 59) + Declawed.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs index 9710a8bfceb0..9ed938867edb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -151,8 +151,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + Schema.GetHashCode(); hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + hashCode = (hashCode * 59) + Schema.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs index 69c538fa0ab0..6430cf735f75 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + DescendantName.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs index 3c138c2fe193..11379a0c41ba 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 4f564028cfd3..78058b51ec4c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -99,13 +99,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); if (Breed != null) hashCode = (hashCode * 59) + Breed.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index 55209e0f8878..86983a5ae718 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -82,7 +82,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + PetType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index f9001e9924ec..0e4dfd825ca3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -99,10 +99,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - if (Declawed != null) hashCode = (hashCode * 59) + Declawed.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 9710a8bfceb0..9ed938867edb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -151,8 +151,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + Schema.GetHashCode(); hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + hashCode = (hashCode * 59) + Schema.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 20acb495ce09..383767d9ba20 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + DescendantName.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index e954ffe02305..14bcaaec8881 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 4f564028cfd3..78058b51ec4c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -99,13 +99,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); if (Breed != null) hashCode = (hashCode * 59) + Breed.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 55209e0f8878..86983a5ae718 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -82,7 +82,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + PetType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs index 0436e963b5bf..e2590798f93b 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -105,15 +105,6 @@ public override int GetHashCode() if (Children != null) hashCode = (hashCode * 59) + Children.GetHashCode(); - if (FirstName != null) - hashCode = (hashCode * 59) + FirstName.GetHashCode(); - - if (LastName != null) - hashCode = (hashCode * 59) + LastName.GetHashCode(); - - if (Type != null) - hashCode = (hashCode * 59) + Type.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs index f95fe5811126..181aa05fd409 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -121,15 +121,6 @@ public override int GetHashCode() if (Age != null) hashCode = (hashCode * 59) + Age.GetHashCode(); - if (FirstName != null) - hashCode = (hashCode * 59) + FirstName.GetHashCode(); - - if (LastName != null) - hashCode = (hashCode * 59) + LastName.GetHashCode(); - - if (Type != null) - hashCode = (hashCode * 59) + Type.GetHashCode(); - if (BoosterSeat != null) hashCode = (hashCode * 59) + BoosterSeat.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 9b2b855bc57d..e99a3e0a8049 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -94,15 +94,16 @@ public override bool Equals(object? input) public bool Equals(Apple? input) { if (input == null) + { return false; - + } return ( - Kind == input.Kind || - (Kind != null && - Kind.Equals(input.Kind)) + this.Kind == input.Kind || + (this.Kind != null && + this.Kind.Equals(input.Kind)) ) - && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 018396b1f229..86518c50660f 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -94,14 +94,15 @@ public override bool Equals(object? input) public bool Equals(Banana? input) { if (input == null) + { return false; - + } return ( - Count == input.Count || - Count.Equals(input.Count) + this.Count == input.Count || + this.Count.Equals(input.Count) ) - && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index f4f73bf7c4ae..babb3a4b01be 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -121,15 +121,16 @@ public override bool Equals(object? input) public bool Equals(Fruit? input) { if (input == null) + { return false; - + } return ( - Color == input.Color || - (Color != null && - Color.Equals(input.Color)) + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) ) - && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs index f736dcbf126e..d03c9719c20c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -99,10 +99,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - if (Declawed != null) hashCode = (hashCode * 59) + Declawed.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs index 9710a8bfceb0..9ed938867edb 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -151,8 +151,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + Schema.GetHashCode(); hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + hashCode = (hashCode * 59) + Schema.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs index 69c538fa0ab0..6430cf735f75 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + DescendantName.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs index 3c138c2fe193..11379a0c41ba 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 36881b4fd45c..1e8d51d9574f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -99,13 +99,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); if (Breed != null) hashCode = (hashCode * 59) + Breed.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index 55209e0f8878..86983a5ae718 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -82,7 +82,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + PetType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs index fe9c1857fac3..efe0cb0eb396 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs @@ -101,10 +101,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - if (Declawed != null) hashCode = (hashCode * 59) + Declawed.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs index b4a54944429e..b5ce93f698d0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -153,8 +153,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + Schema.GetHashCode(); hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + hashCode = (hashCode * 59) + Schema.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs index 54714665b44f..54840feb3885 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs @@ -94,9 +94,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + DescendantName.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs index fe46d36e9406..10b31f298a19 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs @@ -94,9 +94,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs index 3dfcd6ce2ef3..64a99f202363 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs @@ -101,13 +101,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); if (Breed != null) hashCode = (hashCode * 59) + Breed.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs index c7dfda2a53d6..3c98ff4c2bbb 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs @@ -84,7 +84,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + PetType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index f736dcbf126e..d03c9719c20c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -99,10 +99,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - if (Declawed != null) hashCode = (hashCode * 59) + Declawed.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 9710a8bfceb0..9ed938867edb 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -151,8 +151,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + Schema.GetHashCode(); hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + hashCode = (hashCode * 59) + Schema.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 20acb495ce09..383767d9ba20 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + DescendantName.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index e954ffe02305..14bcaaec8881 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 36881b4fd45c..1e8d51d9574f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -99,13 +99,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); if (Breed != null) hashCode = (hashCode * 59) + Breed.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 55209e0f8878..86983a5ae718 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -82,7 +82,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + PetType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs index 24b8224f6e0f..ecde1ca50b27 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs @@ -102,10 +102,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - if (Declawed != null) hashCode = (hashCode * 59) + Declawed.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs index b42180782c29..1b895c0be207 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -154,8 +154,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + Schema.GetHashCode(); hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + hashCode = (hashCode * 59) + Schema.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs index 93bc7111cb23..82a17de0846d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs @@ -95,9 +95,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + DescendantName.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs index 44f45692318a..90a318b2aa03 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs @@ -95,9 +95,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs index bb16c4b43a1a..4a8a605a4da5 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs @@ -102,13 +102,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); if (Breed != null) hashCode = (hashCode * 59) + Breed.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs index 8c5da311e58c..fc69b5f37d16 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs @@ -85,7 +85,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + PetType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs index 0436e963b5bf..e2590798f93b 100644 --- a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -105,15 +105,6 @@ public override int GetHashCode() if (Children != null) hashCode = (hashCode * 59) + Children.GetHashCode(); - if (FirstName != null) - hashCode = (hashCode * 59) + FirstName.GetHashCode(); - - if (LastName != null) - hashCode = (hashCode * 59) + LastName.GetHashCode(); - - if (Type != null) - hashCode = (hashCode * 59) + Type.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs index f95fe5811126..181aa05fd409 100644 --- a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -121,15 +121,6 @@ public override int GetHashCode() if (Age != null) hashCode = (hashCode * 59) + Age.GetHashCode(); - if (FirstName != null) - hashCode = (hashCode * 59) + FirstName.GetHashCode(); - - if (LastName != null) - hashCode = (hashCode * 59) + LastName.GetHashCode(); - - if (Type != null) - hashCode = (hashCode * 59) + Type.GetHashCode(); - if (BoosterSeat != null) hashCode = (hashCode * 59) + BoosterSeat.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 9b2b855bc57d..e99a3e0a8049 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -94,15 +94,16 @@ public override bool Equals(object? input) public bool Equals(Apple? input) { if (input == null) + { return false; - + } return ( - Kind == input.Kind || - (Kind != null && - Kind.Equals(input.Kind)) + this.Kind == input.Kind || + (this.Kind != null && + this.Kind.Equals(input.Kind)) ) - && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } /// diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 018396b1f229..86518c50660f 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -94,14 +94,15 @@ public override bool Equals(object? input) public bool Equals(Banana? input) { if (input == null) + { return false; - + } return ( - Count == input.Count || - Count.Equals(input.Count) + this.Count == input.Count || + this.Count.Equals(input.Count) ) - && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } /// diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index f4f73bf7c4ae..babb3a4b01be 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -121,15 +121,16 @@ public override bool Equals(object? input) public bool Equals(Fruit? input) { if (input == null) + { return false; - + } return ( - Color == input.Color || - (Color != null && - Color.Equals(input.Color)) + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) ) - && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } /// diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs index f736dcbf126e..d03c9719c20c 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -99,10 +99,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - if (Declawed != null) hashCode = (hashCode * 59) + Declawed.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs index 9710a8bfceb0..9ed938867edb 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -151,8 +151,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + Schema.GetHashCode(); hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + hashCode = (hashCode * 59) + Schema.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs index 69c538fa0ab0..6430cf735f75 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + DescendantName.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs index 3c138c2fe193..11379a0c41ba 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 36881b4fd45c..1e8d51d9574f 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -99,13 +99,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); if (Breed != null) hashCode = (hashCode * 59) + Breed.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index 55209e0f8878..86983a5ae718 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -82,7 +82,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + PetType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs index fe9c1857fac3..efe0cb0eb396 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs @@ -101,10 +101,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - if (Declawed != null) hashCode = (hashCode * 59) + Declawed.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs index b4a54944429e..b5ce93f698d0 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -153,8 +153,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + Schema.GetHashCode(); hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + hashCode = (hashCode * 59) + Schema.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs index 54714665b44f..54840feb3885 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs @@ -94,9 +94,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + DescendantName.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs index fe46d36e9406..10b31f298a19 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs @@ -94,9 +94,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs index 3dfcd6ce2ef3..64a99f202363 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs @@ -101,13 +101,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); if (Breed != null) hashCode = (hashCode * 59) + Breed.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs index c7dfda2a53d6..3c98ff4c2bbb 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs @@ -84,7 +84,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + PetType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs index f736dcbf126e..d03c9719c20c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -99,10 +99,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - if (Declawed != null) hashCode = (hashCode * 59) + Declawed.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 9710a8bfceb0..9ed938867edb 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -151,8 +151,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + Schema.GetHashCode(); hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + hashCode = (hashCode * 59) + Schema.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 20acb495ce09..383767d9ba20 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + DescendantName.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index e954ffe02305..14bcaaec8881 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 36881b4fd45c..1e8d51d9574f 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -99,13 +99,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); if (Breed != null) hashCode = (hashCode * 59) + Breed.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 55209e0f8878..86983a5ae718 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -82,7 +82,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + PetType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs index 24b8224f6e0f..ecde1ca50b27 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs @@ -102,10 +102,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - if (Declawed != null) hashCode = (hashCode * 59) + Declawed.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs index b42180782c29..1b895c0be207 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -154,8 +154,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + Schema.GetHashCode(); hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + hashCode = (hashCode * 59) + Schema.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs index 93bc7111cb23..82a17de0846d 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs @@ -95,9 +95,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + DescendantName.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs index 44f45692318a..90a318b2aa03 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs @@ -95,9 +95,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs index bb16c4b43a1a..4a8a605a4da5 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs @@ -102,13 +102,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); if (Breed != null) hashCode = (hashCode * 59) + Breed.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs index 8c5da311e58c..fc69b5f37d16 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs @@ -85,7 +85,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + PetType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index f9001e9924ec..0e4dfd825ca3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -99,10 +99,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - if (Declawed != null) hashCode = (hashCode * 59) + Declawed.GetHashCode(); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 9710a8bfceb0..9ed938867edb 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -151,8 +151,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + Schema.GetHashCode(); hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode(); + hashCode = (hashCode * 59) + Schema.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 20acb495ce09..383767d9ba20 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + DescendantName.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index e954ffe02305..14bcaaec8881 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs @@ -92,9 +92,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + AlternativeName.GetHashCode(); hashCode = (hashCode * 59) + Confidentiality.GetHashCode(); - hashCode = (hashCode * 59) + ObjectType.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 4f564028cfd3..78058b51ec4c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -99,13 +99,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + ClassName.GetHashCode(); if (Breed != null) hashCode = (hashCode * 59) + Breed.GetHashCode(); - if (Color != null) - hashCode = (hashCode * 59) + Color.GetHashCode(); - return hashCode; } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 55209e0f8878..86983a5ae718 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -82,7 +82,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + PetType.GetHashCode(); return hashCode; }