diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java index 02043c013d9a4..0f5562290a7a6 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java @@ -488,7 +488,7 @@ public void postProcessModelProperty(CodegenModel model, CodegenProperty propert } Double maximum = asDouble(property.maximum); - if (property.dataType.equals("int") && maximum != null) { + if (property.dataType.startsWith("int") && maximum != null) { if ((!property.exclusiveMaximum && asInteger(property.maximum) == null) || (property.exclusiveMaximum && asInteger((maximum + 1) + "") == null)) { property.dataType = "long"; property.datatypeWithEnum = "long"; @@ -496,7 +496,7 @@ public void postProcessModelProperty(CodegenModel model, CodegenProperty propert } Double minimum = asDouble(property.minimum); - if (property.dataType.equals("int") && minimum != null) { + if (property.dataType.startsWith("int") && minimum != null) { if ((!property.exclusiveMinimum && asInteger(property.minimum) == null) || (property.exclusiveMinimum && asInteger((minimum - 1) + "") == null)) { property.dataType = "long"; property.datatypeWithEnum = "long"; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java index f260a33dd32bc..d87c23ee33d0e 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java @@ -669,6 +669,10 @@ public void postProcessModelProperty(CodegenModel model, CodegenProperty propert postProcessEmitDefaultValue(property.vendorExtensions); super.postProcessModelProperty(model, property); + + if (!GENERICHOST.equals(getLibrary()) && !property.dataType.endsWith("?") && !property.required && property.defaultValue == null && (this.getValueTypes().contains(property.dataType) || (nullReferenceTypesFlag && !property.isArray && !property.isMap))) { + property.dataType = property.dataType + "?"; + } } @Override diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpClientCodegenTest.java index 4617ec5044ad1..69a50f9ca0e75 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpClientCodegenTest.java @@ -72,7 +72,7 @@ public void testUnsigned() { final CodegenProperty property1 = cm1.allVars.get(2); Assert.assertEquals(property1.baseName, "unsigned_integer"); - Assert.assertEquals(property1.dataType, "uint"); + Assert.assertEquals(property1.dataType, "uint?"); Assert.assertEquals(property1.vendorExtensions.get("x-unsigned"), Boolean.TRUE); Assert.assertTrue(property1.isPrimitiveType); Assert.assertTrue(property1.isInteger); @@ -82,7 +82,7 @@ public void testUnsigned() { final CodegenProperty property2 = cm1.allVars.get(4); Assert.assertEquals(property2.baseName, "unsigned_long"); - Assert.assertEquals(property2.dataType, "ulong"); + Assert.assertEquals(property2.dataType, "ulong?"); Assert.assertEquals(property2.vendorExtensions.get("x-unsigned"), Boolean.TRUE); Assert.assertTrue(property2.isPrimitiveType); Assert.assertTrue(property2.isLong); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpModelTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpModelTest.java index c16b194e79577..bc52e1ec15bcc 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpModelTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpModelTest.java @@ -194,7 +194,7 @@ public void simpleModelTest() { final CodegenProperty property3 = cm.vars.get(2); Assert.assertEquals(property3.baseName, "createdAt"); - Assert.assertEquals(property3.dataType, "DateTime"); + Assert.assertEquals(property3.dataType, "DateTime?"); Assert.assertEquals(property3.name, "CreatedAt"); Assert.assertNull(property3.defaultValue); Assert.assertEquals(property3.baseType, "DateTime"); @@ -243,7 +243,7 @@ public void nonNullablePropertyTest() { final CodegenProperty property3 = cm.vars.get(2); Assert.assertEquals(property3.baseName, "name"); - Assert.assertEquals(property3.dataType, "string"); + Assert.assertEquals(property3.dataType, "string?"); Assert.assertEquals(property3.name, "Name"); Assert.assertNull(property3.defaultValue); Assert.assertEquals(property3.baseType, "string"); @@ -293,7 +293,7 @@ public void nullablePropertyTest() { final CodegenProperty property3 = cm.vars.get(2); Assert.assertEquals(property3.baseName, "name"); - Assert.assertEquals(property3.dataType, "string"); + Assert.assertEquals(property3.dataType, "string?"); Assert.assertEquals(property3.name, "Name"); Assert.assertNull(property3.defaultValue); Assert.assertEquals(property3.baseType, "string"); @@ -510,7 +510,7 @@ public void complexPropertyTest() { final CodegenProperty property1 = cm.vars.get(0); Assert.assertEquals(property1.baseName, "children"); - Assert.assertEquals(property1.dataType, "Children"); + Assert.assertEquals(property1.dataType, "Children?"); Assert.assertEquals(property1.name, "Children"); Assert.assertEquals(property1.baseType, "Children"); Assert.assertFalse(property1.required); diff --git a/samples/client/echo_api/csharp-restsharp/docs/Bird.md b/samples/client/echo_api/csharp-restsharp/docs/Bird.md index ad2a13da18902..92c9d1de56b07 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/Bird.md +++ b/samples/client/echo_api/csharp-restsharp/docs/Bird.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Size** | **string** | | [optional] -**Color** | **string** | | [optional] +**Size** | **string?** | | [optional] +**Color** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/Category.md b/samples/client/echo_api/csharp-restsharp/docs/Category.md index fd3c5e2b257a3..be23d2cc17238 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/Category.md +++ b/samples/client/echo_api/csharp-restsharp/docs/Category.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Name** | **string** | | [optional] +**Id** | **long?** | | [optional] +**Name** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/DataQuery.md b/samples/client/echo_api/csharp-restsharp/docs/DataQuery.md index 0f1f76302ef0d..1effe6f9e3d33 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/DataQuery.md +++ b/samples/client/echo_api/csharp-restsharp/docs/DataQuery.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | Query | [optional] +**Id** | **long?** | Query | [optional] **Outcomes** | **List<Query.OutcomesEnum>** | | [optional] -**Suffix** | **string** | test suffix | [optional] -**Text** | **string** | Some text containing white spaces | [optional] -**Date** | **DateTime** | A date | [optional] +**Suffix** | **string?** | test suffix | [optional] +**Text** | **string?** | Some text containing white spaces | [optional] +**Date** | **DateTime?** | A date | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/DefaultValue.md b/samples/client/echo_api/csharp-restsharp/docs/DefaultValue.md index 981eda3340e04..f6a68f4745b49 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/DefaultValue.md +++ b/samples/client/echo_api/csharp-restsharp/docs/DefaultValue.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **ArrayString** | **List<string>** | | [optional] **ArrayStringNullable** | **List<string>** | | [optional] **ArrayStringExtensionNullable** | **List<string>** | | [optional] -**StringNullable** | **string** | | [optional] +**StringNullable** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/NumberPropertiesOnly.md b/samples/client/echo_api/csharp-restsharp/docs/NumberPropertiesOnly.md index f9c523da92ebe..c894c70075246 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/NumberPropertiesOnly.md +++ b/samples/client/echo_api/csharp-restsharp/docs/NumberPropertiesOnly.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | **decimal** | | [optional] -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] +**Number** | **decimal?** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/Pet.md b/samples/client/echo_api/csharp-restsharp/docs/Pet.md index ff2f348d392b9..b8c7d51638c21 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/Pet.md +++ b/samples/client/echo_api/csharp-restsharp/docs/Pet.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | -**Category** | [**Category**](Category.md) | | [optional] +**Category** | [**Category?**](Category.md) | | [optional] **PhotoUrls** | **List<string>** | | **Tags** | [**List<Tag>**](Tag.md) | | [optional] -**Status** | **string** | pet status in the store | [optional] +**Status** | **string?** | pet status in the store | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/Query.md b/samples/client/echo_api/csharp-restsharp/docs/Query.md index c79503ef2a649..6e786b359f125 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/Query.md +++ b/samples/client/echo_api/csharp-restsharp/docs/Query.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | Query | [optional] +**Id** | **long?** | Query | [optional] **Outcomes** | **List<Query.OutcomesEnum>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/Tag.md b/samples/client/echo_api/csharp-restsharp/docs/Tag.md index fdd22eb31fdd1..1f6ddf2cdbe59 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/Tag.md +++ b/samples/client/echo_api/csharp-restsharp/docs/Tag.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Name** | **string** | | [optional] +**Id** | **long?** | | [optional] +**Name** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/TestFormObjectMultipartRequestMarker.md b/samples/client/echo_api/csharp-restsharp/docs/TestFormObjectMultipartRequestMarker.md index 6de6ca6f5f0d5..6f32348802c6b 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/TestFormObjectMultipartRequestMarker.md +++ b/samples/client/echo_api/csharp-restsharp/docs/TestFormObjectMultipartRequestMarker.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] +**Name** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md b/samples/client/echo_api/csharp-restsharp/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md index dec380556c830..9dfdd639c8ea0 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md +++ b/samples/client/echo_api/csharp-restsharp/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Size** | **string** | | [optional] -**Color** | **string** | | [optional] -**Id** | **long** | | [optional] -**Name** | **string** | | [optional] +**Size** | **string?** | | [optional] +**Color** | **string?** | | [optional] +**Id** | **long?** | | [optional] +**Name** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Bird.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Bird.cs index e87aec99cc660..f44b1b5d1a075 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Bird.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Bird.cs @@ -47,13 +47,13 @@ public partial class Bird : IEquatable, IValidatableObject /// Gets or Sets Size /// [DataMember(Name = "size", EmitDefaultValue = false)] - public string Size { get; set; } + public string? Size { get; set; } /// /// Gets or Sets Color /// [DataMember(Name = "color", EmitDefaultValue = false)] - public string Color { get; set; } + public string? Color { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Category.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Category.cs index ae30da28141ee..046e20a318df8 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Category.cs @@ -50,7 +50,7 @@ public partial class Category : IEquatable, IValidatableObject 1 */ [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -59,7 +59,7 @@ public partial class Category : IEquatable, IValidatableObject Dogs */ [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object @@ -108,7 +108,8 @@ public bool Equals(Category input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Name == input.Name || @@ -126,7 +127,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DataQuery.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DataQuery.cs index ee11b0f5c9b35..807b3354e9cd7 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DataQuery.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DataQuery.cs @@ -52,7 +52,7 @@ public partial class DataQuery : Query, IEquatable, IValidatableObjec /// /// test suffix [DataMember(Name = "suffix", EmitDefaultValue = false)] - public string Suffix { get; set; } + public string? Suffix { get; set; } /// /// Some text containing white spaces @@ -62,14 +62,14 @@ public partial class DataQuery : Query, IEquatable, IValidatableObjec Some text */ [DataMember(Name = "text", EmitDefaultValue = false)] - public string Text { get; set; } + public string? Text { get; set; } /// /// A date /// /// A date [DataMember(Name = "date", EmitDefaultValue = false)] - public DateTime Date { get; set; } + public DateTime? Date { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DefaultValue.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DefaultValue.cs index 3a0530813eadf..e0669a7cf25fb 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DefaultValue.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DefaultValue.cs @@ -126,7 +126,7 @@ public enum ArrayStringEnumDefaultEnum /// Gets or Sets StringNullable /// [DataMember(Name = "string_nullable", EmitDefaultValue = true)] - public string StringNullable { get; set; } + public string? StringNullable { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs index ccf8e681847c0..e3f821f540291 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs @@ -49,19 +49,19 @@ public partial class NumberPropertiesOnly : IEquatable, IV /// Gets or Sets Number /// [DataMember(Name = "number", EmitDefaultValue = false)] - public decimal Number { get; set; } + public decimal? Number { get; set; } /// /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Returns the string presentation of the object @@ -111,15 +111,18 @@ public bool Equals(NumberPropertiesOnly input) return ( this.Number == input.Number || - this.Number.Equals(input.Number) + (this.Number != null && + this.Number.Equals(input.Number)) ) && ( this.Float == input.Float || - this.Float.Equals(input.Float) + (this.Float != null && + this.Float.Equals(input.Float)) ) && ( this.Double == input.Double || - this.Double.Equals(input.Double) + (this.Double != null && + this.Double.Equals(input.Double)) ); } @@ -132,9 +135,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); + if (this.Number != null) + { + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + } + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } return hashCode; } } @@ -146,14 +158,14 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Double (double) maximum - if (this.Double > (double)50.2) + // Double (double?) maximum + if (this.Double > (double?)50.2) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 50.2.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)0.8) + // Double (double?) minimum + if (this.Double < (double?)0.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 0.8.", new [] { "Double" }); } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Pet.cs index f3b46cae49303..0162928887f2c 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Pet.cs @@ -106,7 +106,7 @@ protected Pet() { } 10 */ [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -121,7 +121,7 @@ protected Pet() { } /// Gets or Sets Category /// [DataMember(Name = "category", EmitDefaultValue = false)] - public Category Category { get; set; } + public Category? Category { get; set; } /// /// Gets or Sets PhotoUrls @@ -186,7 +186,8 @@ public bool Equals(Pet input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Name == input.Name || @@ -225,7 +226,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Query.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Query.cs index 0ff925611a5b0..2eb1ee2fedd70 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Query.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Query.cs @@ -73,7 +73,7 @@ public enum OutcomesEnum /// /// Query [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Outcomes @@ -128,7 +128,8 @@ public bool Equals(Query input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Outcomes == input.Outcomes || @@ -147,7 +148,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Outcomes != null) { hashCode = (hashCode * 59) + this.Outcomes.GetHashCode(); diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Tag.cs index 66eab762090b3..16a6ef59b1071 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Tag.cs @@ -47,13 +47,13 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object @@ -102,7 +102,8 @@ public bool Equals(Tag input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Name == input.Name || @@ -120,7 +121,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs index d38d85da52032..1f425f183c96f 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs @@ -45,7 +45,7 @@ public partial class TestFormObjectMultipartRequestMarker : IEquatable [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs index 124ef98ce3a92..c3c092dbbc5d1 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs @@ -51,13 +51,13 @@ public partial class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectPa /// Gets or Sets Size /// [DataMember(Name = "size", EmitDefaultValue = false)] - public string Size { get; set; } + public string? Size { get; set; } /// /// Gets or Sets Color /// [DataMember(Name = "color", EmitDefaultValue = false)] - public string Color { get; set; } + public string? Color { get; set; } /// /// Gets or Sets Id @@ -66,7 +66,7 @@ public partial class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectPa 1 */ [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -75,7 +75,7 @@ public partial class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectPa Dogs */ [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object @@ -136,7 +136,8 @@ public bool Equals(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectPara ) && ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Name == input.Name || @@ -162,7 +163,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Color.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp-functions/Org.OpenAPITools.sln b/samples/client/petstore/csharp-functions/Org.OpenAPITools.sln index 6f12b4fa17dee..bdfe4dc82eeb1 100644 --- a/samples/client/petstore/csharp-functions/Org.OpenAPITools.sln +++ b/samples/client/petstore/csharp-functions/Org.OpenAPITools.sln @@ -6,17 +6,17 @@ MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Org.OpenAPITools", "src\Org.OpenAPITools\Org.OpenAPITools.csproj", "{6C41B0FB-16DE-4E0C-9797-286D6A24F96F}" EndProject Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection EndGlobal diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ApiResponse.md index bb723d2baa13c..faacf536f1734 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/AppleReq.md index 005b8f8058a40..bb7b7576dc2ec 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/AppleReq.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Banana.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Banana.md index 226952d1cecb0..72cbdcf0af0b5 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Banana.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/BananaReq.md index f99aab99e387c..2bf39b773a66f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/BananaReq.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Cat.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Cat.md index aa1ac17604eb4..d41c6ec6eb65d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Cat.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Category.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Category.md index 032a1faeb3ffd..bdbe5ac5a4830 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Category.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/EnumTest.md index 5ce3c4addd9b7..66cc8c6d245ef 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/EnumTest.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FormatTest.md index c028ca739018a..0a5703ce8b05f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FormatTest.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FormatTest.md @@ -4,20 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**Int32Range** | **int** | | [optional] -**Int64Positive** | **long** | | [optional] -**Int64Negative** | **long** | | [optional] -**Int64PositiveExclusive** | **long** | | [optional] -**Int64NegativeExclusive** | **long** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**Int32Range** | **int?** | | [optional] +**Int64Positive** | **long?** | | [optional] +**Int64Negative** | **long?** | | [optional] +**Int64PositiveExclusive** | **long?** | | [optional] +**Int64NegativeExclusive** | **long?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | [**FileParameter**](FileParameter.md) | | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Fruit.md index 40df92d7c9b19..05aed3a2642ba 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Fruit.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FruitReq.md index 5db6b0e2d1d80..8f072a324cb06 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FruitReq.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/GmFruit.md index da7b3a6ccf9f0..265348eca479d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/GmFruit.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Mammal.md index aab8f4db9c75d..75172cd3d506b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Mammal.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixLog.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixLog.md index 1872e30daaa3f..ae8546abe1273 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixLog.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixLog.md @@ -35,7 +35,7 @@ Name | Type | Description | Notes **PrimerProductId** | **string** | | [optional] **ProductId** | **string** | ProductId is only required for color mixes | [optional] **ProductName** | **string** | ProductName is only required for color mixes | [optional] -**SelectedVersionIndex** | **int** | | [optional] +**SelectedVersionIndex** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Model200Response.md index 31f4d86fe43de..820f058bf221e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Model200Response.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Name.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Name.md index 3e19db154a805..e440a45f0ae18 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Name.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/NumberOnly.md index 14a7c0f1071b5..1af131f829ec8 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b8..20391539c912c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Order.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Order.md index 66c55c3b47379..c5d9f28ccc02f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Order.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Order.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/OuterComposite.md index eb42bcc1aaa46..71ca9b879223d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Pet.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Pet.md index c7224764e2d4f..a54829f9a8e22 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Pet.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/RequiredClass.md index 07b6f018f6c17..2ec1d6949ba0c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] @@ -27,11 +27,11 @@ Name | Type | Description | Notes **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Return.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Return.md index a10daf95cf1d0..d554c7612cbe6 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Return.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] **Lock** | **string** | | **Abstract** | **string** | | **Unsafe** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/SpecialModelName.md index 7f8ffca34fa1b..6d9805d03479c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Tag.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Tag.md index fdd22eb31fdd1..f86abfc26e025 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Tag.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/User.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/User.md index b0cd4dc042bfa..da9b34219d845 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/User.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Whale.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Whale.md index 5fc3dc7f85c23..a1512d751e8ee 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Whale.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 296753574edc1..f8f8c81d0beb0 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -51,7 +51,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -125,7 +125,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 85ba742ea8ed4..b04982aac15c7 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -64,7 +64,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -122,7 +122,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 55a7b982dfdf2..40f64d37475de 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -47,7 +47,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Gets or Sets additional properties @@ -107,7 +107,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 7afbe08ac1262..bd04bf414a551 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -59,7 +59,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -114,7 +114,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index d0656ca88eb3a..029b0b46fe408 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -58,7 +58,7 @@ protected Cat() /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Gets or Sets additional properties @@ -119,7 +119,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs index 0057441d88579..9057119477660 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -62,7 +62,7 @@ protected Category() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -129,7 +129,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 3309623635cac..ea65faac8b65e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -180,6 +180,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 81da66d122d56..db969ac2eb4fa 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -111,61 +111,61 @@ protected FormatTest() /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets Int32Range /// [DataMember(Name = "int32Range", EmitDefaultValue = false)] - public int Int32Range { get; set; } + public int? Int32Range { get; set; } /// /// Gets or Sets Int64Positive /// [DataMember(Name = "int64Positive", EmitDefaultValue = false)] - public long Int64Positive { get; set; } + public long? Int64Positive { get; set; } /// /// Gets or Sets Int64Negative /// [DataMember(Name = "int64Negative", EmitDefaultValue = false)] - public long Int64Negative { get; set; } + public long? Int64Negative { get; set; } /// /// Gets or Sets Int64PositiveExclusive /// [DataMember(Name = "int64PositiveExclusive", EmitDefaultValue = false)] - public long Int64PositiveExclusive { get; set; } + public long? Int64PositiveExclusive { get; set; } /// /// Gets or Sets Int64NegativeExclusive /// [DataMember(Name = "int64NegativeExclusive", EmitDefaultValue = false)] - public long Int64NegativeExclusive { get; set; } + public long? Int64NegativeExclusive { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -177,19 +177,19 @@ protected FormatTest() /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String @@ -345,20 +345,59 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.Int32Range != null) + { + hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); + } + if (this.Int64Positive != null) + { + hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); + } + if (this.Int64Negative != null) + { + hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); + } + if (this.Int64PositiveExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); + } + if (this.Int64NegativeExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -414,74 +453,74 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // Int32Range (int) maximum - if (this.Int32Range > (int)2147483647) + // Int32Range (int?) maximum + if (this.Int32Range > (int?)2147483647) { yield return new ValidationResult("Invalid value for Int32Range, must be a value less than or equal to 2147483647.", new [] { "Int32Range" }); } - // Int32Range (int) minimum - if (this.Int32Range < (int)-2147483648) + // Int32Range (int?) minimum + if (this.Int32Range < (int?)-2147483648) { yield return new ValidationResult("Invalid value for Int32Range, must be a value greater than or equal to -2147483648.", new [] { "Int32Range" }); } - // Int64Positive (long) minimum - if (this.Int64Positive < (long)2147483648) + // Int64Positive (long?) minimum + if (this.Int64Positive < (long?)2147483648) { yield return new ValidationResult("Invalid value for Int64Positive, must be a value greater than or equal to 2147483648.", new [] { "Int64Positive" }); } - // Int64Negative (long) maximum - if (this.Int64Negative > (long)-2147483649) + // Int64Negative (long?) maximum + if (this.Int64Negative > (long?)-2147483649) { yield return new ValidationResult("Invalid value for Int64Negative, must be a value less than or equal to -2147483649.", new [] { "Int64Negative" }); } - // Int64PositiveExclusive (long) minimum - if (this.Int64PositiveExclusive < (long)2147483647) + // Int64PositiveExclusive (long?) minimum + if (this.Int64PositiveExclusive < (long?)2147483647) { yield return new ValidationResult("Invalid value for Int64PositiveExclusive, must be a value greater than 2147483647.", new [] { "Int64PositiveExclusive" }); } - // Int64NegativeExclusive (long) maximum - if (this.Int64NegativeExclusive <= (long)-2147483648) + // Int64NegativeExclusive (long?) maximum + if (this.Int64NegativeExclusive <= (long?)-2147483648) { yield return new ValidationResult("Invalid value for Int64NegativeExclusive, must be a value less than -2147483648.", new [] { "Int64NegativeExclusive" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -498,26 +537,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index 31e0e4e46e3ac..3c264243ada89 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -317,7 +317,7 @@ protected MixLog() /// Gets or Sets SelectedVersionIndex /// [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)] - public int SelectedVersionIndex { get; set; } + public int? SelectedVersionIndex { get; set; } /// /// Gets or Sets additional properties @@ -520,7 +520,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ProductName.GetHashCode(); } - hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + if (this.SelectedVersionIndex != null) + { + hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 34aee45d4c8cc..812d18e07a008 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -49,7 +49,7 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class @@ -116,7 +116,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs index 47c0de878119b..6f1e77aaf97a7 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -63,7 +63,7 @@ protected Name() /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -83,7 +83,7 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -155,12 +155,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index a287358b015cd..6b820bf3c8280 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -50,7 +50,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Gets or Sets additional properties @@ -110,7 +110,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index db530572625a4..8207ae501a460 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -60,7 +60,7 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef @@ -141,7 +141,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index 3f9806f04db7c..462d74f8814fe 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -90,19 +90,19 @@ public enum StatusEnum /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate @@ -182,9 +182,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 91a61870eea70..b32804a332536 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -51,7 +51,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString @@ -63,7 +63,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Gets or Sets additional properties @@ -125,12 +125,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e35abdf6a86c3..a221acde9a504 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -108,7 +108,7 @@ protected Pet() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -200,7 +200,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index d8c4bd8a39942..1c79c9a8897ea 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -192,6 +192,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -650,7 +651,7 @@ protected RequiredClass() /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -698,7 +699,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -922,7 +923,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -948,7 +952,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs index 6a9590cc8f402..2a0dccf0b0d34 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -71,7 +71,7 @@ protected Return() /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets Lock @@ -152,7 +152,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.Lock != null) { hashCode = (hashCode * 59) + this.Lock.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index e1e27974a67b1..16fff45b5ce1f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -49,7 +49,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName @@ -116,7 +116,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs index ab8f5e0db099e..f89dfbdc03f33 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -49,7 +49,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -116,7 +116,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs index 2356f9020cc84..a4a52325ecdf3 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -69,7 +69,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -112,7 +112,7 @@ public partial class User : IEquatable, IValidatableObject /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. @@ -211,7 +211,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -236,7 +239,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 1a6e079fdab00..8541bd1cd6ad7 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -64,13 +64,13 @@ protected Whale() /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -138,8 +138,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/ApiResponse.md index 50869c0d913eb..6908a8d1779ba 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/ApiResponse.md @@ -5,7 +5,7 @@ Describes the result of uploading an image resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Category.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Category.md index 64e7948bbc7ca..37660cc4471e6 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Category.md @@ -5,7 +5,7 @@ A category for a pet Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Order.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Order.md index c28989a0b8cfd..bf087227320ac 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Order.md @@ -5,9 +5,9 @@ An order for a pets from the pet store Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Pet.md index 914a070b2200d..7c3f3099d352f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Pet.md @@ -5,7 +5,7 @@ A pet for sale in the pet store Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Tag.md index 14e602a9c11b7..91db2dd74ebfa 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Tag.md @@ -5,7 +5,7 @@ A tag for a pet Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/User.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/User.md index c9ee356c8fc4e..7be39bd559ce3 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/User.md @@ -5,14 +5,14 @@ A User who is purchasing from the pet store Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/ApiResponse.cs index ef964fd4e8708..fb5ac15b1037d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -49,7 +49,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -116,7 +116,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Category.cs index 663e49f1b1c1a..b6e898ae864e9 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Category.cs @@ -47,7 +47,7 @@ public partial class Category : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -107,7 +107,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Order.cs index 4c049227f8436..d400927d96cb4 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Order.cs @@ -88,19 +88,19 @@ public enum StatusEnum /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate @@ -170,9 +170,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Pet.cs index 08848e98cd42a..e9963bb4887b6 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Pet.cs @@ -104,7 +104,7 @@ protected Pet() { } /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -189,7 +189,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Tag.cs index 8ac7c07be0acd..72fa6d18ef09c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Tag.cs @@ -47,7 +47,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -107,7 +107,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/User.cs index 91ba71b2274cf..7178d3a4dde04 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/User.cs @@ -59,7 +59,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -102,7 +102,7 @@ public partial class User : IEquatable, IValidatableObject /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// Returns the string presentation of the object @@ -162,7 +162,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -187,7 +190,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ApiResponse.md index bb723d2baa13c..faacf536f1734 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/AppleReq.md index 005b8f8058a40..bb7b7576dc2ec 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/AppleReq.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Banana.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Banana.md index 226952d1cecb0..72cbdcf0af0b5 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Banana.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/BananaReq.md index f99aab99e387c..2bf39b773a66f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/BananaReq.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Cat.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Cat.md index aa1ac17604eb4..d41c6ec6eb65d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Cat.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Category.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Category.md index 032a1faeb3ffd..bdbe5ac5a4830 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/EnumTest.md index 5ce3c4addd9b7..66cc8c6d245ef 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FormatTest.md index c2144b5e3cf6b..9b6d809466c85 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FormatTest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Fruit.md index 40df92d7c9b19..05aed3a2642ba 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FruitReq.md index 5db6b0e2d1d80..8f072a324cb06 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FruitReq.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/GmFruit.md index da7b3a6ccf9f0..265348eca479d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Mammal.md index aab8f4db9c75d..75172cd3d506b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Model200Response.md index 31f4d86fe43de..820f058bf221e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Name.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Name.md index 3e19db154a805..e440a45f0ae18 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Name.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/NumberOnly.md index 14a7c0f1071b5..1af131f829ec8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b8..20391539c912c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Order.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Order.md index 66c55c3b47379..c5d9f28ccc02f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Order.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/OuterComposite.md index eb42bcc1aaa46..71ca9b879223d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Pet.md index c7224764e2d4f..a54829f9a8e22 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/RequiredClass.md index 07b6f018f6c17..2ec1d6949ba0c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] @@ -27,11 +27,11 @@ Name | Type | Description | Notes **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Return.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Return.md index 052ac91900689..8eec641779307 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Return.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/SpecialModelName.md index 7f8ffca34fa1b..6d9805d03479c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Tag.md index fdd22eb31fdd1..f86abfc26e025 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/User.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/User.md index b0cd4dc042bfa..da9b34219d845 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Whale.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Whale.md index 5fc3dc7f85c23..a1512d751e8ee 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Whale.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1fc..51772309eda82 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -50,7 +50,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -124,7 +124,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e30..67d2eecc4c26b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -63,7 +63,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -121,7 +121,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d0..64b9c31778d1e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -46,7 +46,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80a..551074881d17a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -58,7 +58,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -113,7 +113,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs index a52dd988da512..fc431e7b777dd 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -57,7 +57,7 @@ protected Cat() /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Gets or Sets additional properties @@ -118,7 +118,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs index 5edb4edfea4ad..6feda1e8c352e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -61,7 +61,7 @@ protected Category() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -128,7 +128,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 27d1193954eae..e7eef0d94a37b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -179,6 +179,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index a741277dd2738..a62831e607818 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -100,31 +100,31 @@ protected FormatTest() /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -136,19 +136,19 @@ protected FormatTest() /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String @@ -299,15 +299,39 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -363,38 +387,38 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -411,26 +435,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e7540..7b1c87bbe7da5 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -48,7 +48,7 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs index f34052aa706c6..69938e7b7c616 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -62,7 +62,7 @@ protected Name() /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -82,7 +82,7 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -154,12 +154,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 7218451d9fb06..ee2c09f6c83ea 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -49,7 +49,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Gets or Sets additional properties @@ -109,7 +109,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 76faa5154c86a..6c728b4770873 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -59,7 +59,7 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef @@ -140,7 +140,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs index 4b8b7068fe046..818eb45eb7ec8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -89,19 +89,19 @@ public enum StatusEnum /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate @@ -181,9 +181,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 47d598a27e6f5..2470c13fdb606 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -50,7 +50,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString @@ -62,7 +62,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Gets or Sets additional properties @@ -124,12 +124,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e036d66bc8894..37b02216fb02b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -107,7 +107,7 @@ protected Pet() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -199,7 +199,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 8160c859b76eb..2ead3095aaa17 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -649,7 +650,7 @@ protected RequiredClass() /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -697,7 +698,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -921,7 +922,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -947,7 +951,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs index fec56c44fa82e..ac44065ab1b03 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -46,7 +46,7 @@ public partial class Return : IEquatable, IValidatableObject /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f1..d31817992fe26 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -48,7 +48,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 58eb2c605d15f..b8f4e20ed848b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -48,7 +48,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs index b7911507a7047..3371b44e43c15 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -68,7 +68,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -111,7 +111,7 @@ public partial class User : IEquatable, IValidatableObject /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. @@ -210,7 +210,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -235,7 +238,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 50119ed39e769..d242dc782d156 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -63,13 +63,13 @@ protected Whale() /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -137,8 +137,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ApiResponse.md index bb723d2baa13c..faacf536f1734 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/AppleReq.md index 005b8f8058a40..bb7b7576dc2ec 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/AppleReq.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Banana.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Banana.md index 226952d1cecb0..72cbdcf0af0b5 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Banana.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/BananaReq.md index f99aab99e387c..2bf39b773a66f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/BananaReq.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Cat.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Cat.md index aa1ac17604eb4..d41c6ec6eb65d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Cat.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Category.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Category.md index 032a1faeb3ffd..bdbe5ac5a4830 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/EnumTest.md index 5ce3c4addd9b7..66cc8c6d245ef 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FormatTest.md index c2144b5e3cf6b..9b6d809466c85 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FormatTest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Fruit.md index 40df92d7c9b19..05aed3a2642ba 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FruitReq.md index 5db6b0e2d1d80..8f072a324cb06 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FruitReq.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/GmFruit.md index da7b3a6ccf9f0..265348eca479d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Mammal.md index aab8f4db9c75d..75172cd3d506b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Model200Response.md index 31f4d86fe43de..820f058bf221e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Name.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Name.md index 3e19db154a805..e440a45f0ae18 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Name.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/NumberOnly.md index 14a7c0f1071b5..1af131f829ec8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b8..20391539c912c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Order.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Order.md index 66c55c3b47379..c5d9f28ccc02f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Order.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/OuterComposite.md index eb42bcc1aaa46..71ca9b879223d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Pet.md index c7224764e2d4f..a54829f9a8e22 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/RequiredClass.md index 07b6f018f6c17..2ec1d6949ba0c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] @@ -27,11 +27,11 @@ Name | Type | Description | Notes **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Return.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Return.md index 052ac91900689..8eec641779307 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Return.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/SpecialModelName.md index 7f8ffca34fa1b..6d9805d03479c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Tag.md index fdd22eb31fdd1..f86abfc26e025 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/User.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/User.md index b0cd4dc042bfa..da9b34219d845 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Whale.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Whale.md index 5fc3dc7f85c23..a1512d751e8ee 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Whale.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1fc..51772309eda82 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -50,7 +50,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -124,7 +124,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e30..67d2eecc4c26b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -63,7 +63,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -121,7 +121,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d0..64b9c31778d1e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -46,7 +46,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80a..551074881d17a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -58,7 +58,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -113,7 +113,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index a52dd988da512..fc431e7b777dd 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -57,7 +57,7 @@ protected Cat() /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Gets or Sets additional properties @@ -118,7 +118,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs index 5edb4edfea4ad..6feda1e8c352e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -61,7 +61,7 @@ protected Category() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -128,7 +128,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 27d1193954eae..e7eef0d94a37b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -179,6 +179,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index a741277dd2738..a62831e607818 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -100,31 +100,31 @@ protected FormatTest() /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -136,19 +136,19 @@ protected FormatTest() /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String @@ -299,15 +299,39 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -363,38 +387,38 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -411,26 +435,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e7540..7b1c87bbe7da5 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -48,7 +48,7 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs index f34052aa706c6..69938e7b7c616 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -62,7 +62,7 @@ protected Name() /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -82,7 +82,7 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -154,12 +154,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 7218451d9fb06..ee2c09f6c83ea 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -49,7 +49,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Gets or Sets additional properties @@ -109,7 +109,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 76faa5154c86a..6c728b4770873 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -59,7 +59,7 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef @@ -140,7 +140,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs index 4b8b7068fe046..818eb45eb7ec8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -89,19 +89,19 @@ public enum StatusEnum /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate @@ -181,9 +181,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 47d598a27e6f5..2470c13fdb606 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -50,7 +50,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString @@ -62,7 +62,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Gets or Sets additional properties @@ -124,12 +124,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e036d66bc8894..37b02216fb02b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -107,7 +107,7 @@ protected Pet() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -199,7 +199,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 8160c859b76eb..2ead3095aaa17 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -649,7 +650,7 @@ protected RequiredClass() /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -697,7 +698,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -921,7 +922,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -947,7 +951,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs index fec56c44fa82e..ac44065ab1b03 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -46,7 +46,7 @@ public partial class Return : IEquatable, IValidatableObject /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f1..d31817992fe26 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -48,7 +48,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 58eb2c605d15f..b8f4e20ed848b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -48,7 +48,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs index b7911507a7047..3371b44e43c15 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -68,7 +68,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -111,7 +111,7 @@ public partial class User : IEquatable, IValidatableObject /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. @@ -210,7 +210,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -235,7 +238,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 50119ed39e769..d242dc782d156 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -63,13 +63,13 @@ protected Whale() /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -137,8 +137,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/Env.md b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/Env.md index c9c69c0f23a28..4cfa41b011950 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/Env.md +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/Env.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Dummy** | **string** | | [optional] +**Dummy** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/PropertyNameMapping.md b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/PropertyNameMapping.md index cef568d4db6af..e4ec109b00c75 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/PropertyNameMapping.md +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/PropertyNameMapping.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HttpDebugOperation** | **string** | | [optional] -**UnderscoreType** | **string** | | [optional] -**Type** | **string** | | [optional] -**TypeWithUnderscore** | **string** | | [optional] +**HttpDebugOperation** | **string?** | | [optional] +**UnderscoreType** | **string?** | | [optional] +**Type** | **string?** | | [optional] +**TypeWithUnderscore** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs index ea3d938c159ad..beac89d0ac89f 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs @@ -44,7 +44,7 @@ public partial class Env : IEquatable, IValidatableObject /// Gets or Sets Dummy /// [DataMember(Name = "dummy", EmitDefaultValue = false)] - public string Dummy { get; set; } + public string? Dummy { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs index 597e015588f87..ca79fda72079c 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs @@ -50,25 +50,25 @@ public partial class PropertyNameMapping : IEquatable, IVal /// Gets or Sets HttpDebugOperation /// [DataMember(Name = "http_debug_operation", EmitDefaultValue = false)] - public string HttpDebugOperation { get; set; } + public string? HttpDebugOperation { get; set; } /// /// Gets or Sets UnderscoreType /// [DataMember(Name = "_type", EmitDefaultValue = false)] - public string UnderscoreType { get; set; } + public string? UnderscoreType { get; set; } /// /// Gets or Sets Type /// [DataMember(Name = "type", EmitDefaultValue = false)] - public string Type { get; set; } + public string? Type { get; set; } /// /// Gets or Sets TypeWithUnderscore /// [DataMember(Name = "type_", EmitDefaultValue = false)] - public string TypeWithUnderscore { get; set; } + public string? TypeWithUnderscore { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ActivityOutputElementRepresentation.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ActivityOutputElementRepresentation.md index 21f226b39525a..7f37e8a701aae 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ActivityOutputElementRepresentation.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ActivityOutputElementRepresentation.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Prop1** | **string** | | [optional] -**Prop2** | **Object** | | [optional] +**Prop1** | **string?** | | [optional] +**Prop2** | **Object?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AdditionalPropertiesClass.md index c40cd0f8accb5..e9b9f2256d9fd 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AdditionalPropertiesClass.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MapProperty** | **Dictionary<string, string>** | | [optional] **MapOfMapProperty** | **Dictionary<string, Dictionary<string, string>>** | | [optional] -**Anytype1** | **Object** | | [optional] -**MapWithUndeclaredPropertiesAnytype1** | **Object** | | [optional] -**MapWithUndeclaredPropertiesAnytype2** | **Object** | | [optional] +**Anytype1** | **Object?** | | [optional] +**MapWithUndeclaredPropertiesAnytype1** | **Object?** | | [optional] +**MapWithUndeclaredPropertiesAnytype2** | **Object?** | | [optional] **MapWithUndeclaredPropertiesAnytype3** | **Dictionary<string, Object>** | | [optional] -**EmptyMap** | **Object** | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional] +**EmptyMap** | **Object?** | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional] **MapWithUndeclaredPropertiesString** | **Dictionary<string, string>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ApiResponse.md index bb723d2baa13c..7bae51a82b75c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ApiResponse.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] -**Type** | **string** | | [optional] -**Message** | **string** | | [optional] +**Code** | **int?** | | [optional] +**Type** | **string?** | | [optional] +**Message** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Apple.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Apple.md index 6261194e4800c..7711490a679bb 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Apple.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Apple.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Cultivar** | **string** | | [optional] -**Origin** | **string** | | [optional] -**ColorCode** | **string** | | [optional] +**Cultivar** | **string?** | | [optional] +**Origin** | **string?** | | [optional] +**ColorCode** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AppleReq.md index 005b8f8058a40..bb7b7576dc2ec 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AppleReq.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Banana.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Banana.md index 226952d1cecb0..72cbdcf0af0b5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Banana.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/BananaReq.md index f99aab99e387c..2bf39b773a66f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/BananaReq.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Capitalization.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Capitalization.md index 1b1352d918f4c..e9b31d33a6412 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Capitalization.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Capitalization.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SmallCamel** | **string** | | [optional] -**CapitalCamel** | **string** | | [optional] -**SmallSnake** | **string** | | [optional] -**CapitalSnake** | **string** | | [optional] -**SCAETHFlowPoints** | **string** | | [optional] -**ATT_NAME** | **string** | Name of the pet | [optional] +**SmallCamel** | **string?** | | [optional] +**CapitalCamel** | **string?** | | [optional] +**SmallSnake** | **string?** | | [optional] +**CapitalSnake** | **string?** | | [optional] +**SCAETHFlowPoints** | **string?** | | [optional] +**ATT_NAME** | **string?** | Name of the pet | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Cat.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Cat.md index aa1ac17604eb4..d41c6ec6eb65d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Cat.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Category.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Category.md index 032a1faeb3ffd..bdbe5ac5a4830 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ChildCat.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ChildCat.md index 8ce6449e5f224..3d0a819274cf7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ChildCat.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ChildCat.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] +**Name** | **string?** | | [optional] **PetType** | **string** | | [default to PetTypeEnum.ChildCat] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ClassModel.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ClassModel.md index f39982657c894..9bd76dc855f84 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ClassModel.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Class** | **string** | | [optional] +**Class** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DateOnlyClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DateOnlyClass.md index 8291b9cb6d787..e56ad3ae3df7f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DateOnlyClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DateOnlyClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DateOnlyProperty** | **DateOnly** | | [optional] +**DateOnlyProperty** | **DateOnly?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DeprecatedObject.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DeprecatedObject.md index bb7824a3d6401..3b5eacc8e0751 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DeprecatedObject.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DeprecatedObject.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] +**Name** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Dog.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Dog.md index 3aa00144e9aae..721425ea1e138 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Dog.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Dog.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Breed** | **string** | | [optional] +**Breed** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Drawing.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Drawing.md index 6b7122940afa9..50b962c62e8f1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Drawing.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Drawing.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MainShape** | [**Shape**](Shape.md) | | [optional] -**ShapeOrNull** | [**ShapeOrNull**](ShapeOrNull.md) | | [optional] -**NullableShape** | [**NullableShape**](NullableShape.md) | | [optional] +**MainShape** | [**Shape?**](Shape.md) | | [optional] +**ShapeOrNull** | [**ShapeOrNull?**](ShapeOrNull.md) | | [optional] +**NullableShape** | [**NullableShape?**](NullableShape.md) | | [optional] **Shapes** | [**List<Shape>**](Shape.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumArrays.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumArrays.md index 62e34f03dbc31..1691ef8adb0ad 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumArrays.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumArrays.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustSymbol** | **string** | | [optional] +**JustSymbol** | **string?** | | [optional] **ArrayEnum** | **List<EnumArrays.ArrayEnumEnum>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumTest.md index 5ce3c4addd9b7..720f9ae54ace2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumTest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EnumString** | **string** | | [optional] +**EnumString** | **string?** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] -**OuterEnum** | **OuterEnum** | | [optional] -**OuterEnumInteger** | **OuterEnumInteger** | | [optional] -**OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] -**OuterEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] +**OuterEnum** | [**OuterEnum?**](OuterEnum.md) | | [optional] +**OuterEnumInteger** | [**OuterEnumInteger?**](OuterEnumInteger.md) | | [optional] +**OuterEnumDefaultValue** | [**OuterEnumDefaultValue?**](OuterEnumDefaultValue.md) | | [optional] +**OuterEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue?**](OuterEnumIntegerDefaultValue.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/File.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/File.md index 28959feda088f..e67cd955342fc 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/File.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/File.md @@ -5,7 +5,7 @@ Must be named `File` for test. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SourceURI** | **string** | Test capitalization | [optional] +**SourceURI** | **string?** | Test capitalization | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FileSchemaTestClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FileSchemaTestClass.md index 0ce4be56cc723..ccb2d082f662e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FileSchemaTestClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**File** | [**File**](File.md) | | [optional] +**File** | [**File?**](File.md) | | [optional] **Files** | [**List<File>**](File.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FooGetDefaultResponse.md index dde9b9729b933..28fc2f659f082 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] +**String** | [**Foo?**](Foo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FormatTest.md index 14efa7b0f63e3..4b1c2a4194d63 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FormatTest.md @@ -4,25 +4,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] -**String** | **string** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] +**String** | **string?** | | [optional] **Byte** | **byte[]** | | -**Binary** | **System.IO.Stream** | | [optional] +**Binary** | **System.IO.Stream?** | | [optional] **Date** | **DateOnly** | | -**DateTime** | **DateTime** | | [optional] -**Uuid** | **Guid** | | [optional] +**DateTime** | **DateTime?** | | [optional] +**Uuid** | **Guid?** | | [optional] **Password** | **string** | | -**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional] -**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] -**PatternWithBackslash** | **string** | None | [optional] +**PatternWithDigits** | **string?** | A string that is a 10 digit number. Can have leading zeros. | [optional] +**PatternWithDigitsAndDelimiter** | **string?** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] +**PatternWithBackslash** | **string?** | None | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Fruit.md index 40df92d7c9b19..c446aa06b20bf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Fruit.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Color** | **string** | | [optional] -**Cultivar** | **string** | | [optional] -**Origin** | **string** | | [optional] -**ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**Color** | **string?** | | [optional] +**Cultivar** | **string?** | | [optional] +**Origin** | **string?** | | [optional] +**ColorCode** | **string?** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FruitReq.md index 5db6b0e2d1d80..8f072a324cb06 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FruitReq.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/GmFruit.md index da7b3a6ccf9f0..3ef7829029398 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/GmFruit.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Color** | **string** | | [optional] -**Cultivar** | **string** | | [optional] -**Origin** | **string** | | [optional] -**ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**Color** | **string?** | | [optional] +**Cultivar** | **string?** | | [optional] +**Origin** | **string?** | | [optional] +**ColorCode** | **string?** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HasOnlyReadOnly.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HasOnlyReadOnly.md index 64549c18b0a1b..b4d3bd8c6d578 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HasOnlyReadOnly.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Bar** | **string** | | [optional] [readonly] -**Foo** | **string** | | [optional] [readonly] +**Bar** | **string?** | | [optional] [readonly] +**Foo** | **string?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HealthCheckResult.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HealthCheckResult.md index f7d1a7eb68861..154fd14dcc7de 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HealthCheckResult.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HealthCheckResult.md @@ -5,7 +5,7 @@ Just a string to inform instance is up and running. Make it nullable in hope to Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NullableMessage** | **string** | | [optional] +**NullableMessage** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/List.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/List.md index c00ef31e6e251..65dd7bf072a29 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/List.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Var123List** | **string** | | [optional] +**Var123List** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Mammal.md index aab8f4db9c75d..e82462c4bbaae 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Mammal.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | -**Type** | **string** | | [optional] +**Type** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOf.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOf.md index 6a6aa093bebec..1cee08f2a5dc5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOf.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOf.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Content** | [**MixedAnyOfContent**](MixedAnyOfContent.md) | | [optional] +**Content** | [**MixedAnyOfContent?**](MixedAnyOfContent.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOfContent.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOfContent.md index 9af972f3219f8..deb8047505e8d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOfContent.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOfContent.md @@ -5,7 +5,7 @@ Mixed anyOf types for testing Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Id** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOf.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOf.md index dc9650a8e3a0b..0c5625d3f74c8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOf.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOf.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Content** | [**MixedOneOfContent**](MixedOneOfContent.md) | | [optional] +**Content** | [**MixedOneOfContent?**](MixedOneOfContent.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOfContent.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOfContent.md index 8468f9024f73d..4629cf4461509 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOfContent.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOfContent.md @@ -5,7 +5,7 @@ Mixed oneOf types for testing Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Id** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md index 050210a3e3719..81d4a847dbe25 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UuidWithPattern** | **Guid** | | [optional] -**Uuid** | **Guid** | | [optional] -**DateTime** | **DateTime** | | [optional] +**UuidWithPattern** | **Guid?** | | [optional] +**Uuid** | **Guid?** | | [optional] +**DateTime** | **DateTime?** | | [optional] **Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedSubId.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedSubId.md index b9268e37cba6a..c5989c5922d93 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedSubId.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedSubId.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Id** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Model200Response.md index 31f4d86fe43de..c719083851e4a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Model200Response.md @@ -5,8 +5,8 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] -**Class** | **string** | | [optional] +**Name** | **int?** | | [optional] +**Class** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ModelClient.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ModelClient.md index 1d8afe3e1a7ae..d525ccdaa521b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ModelClient.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarClient** | **string** | | [optional] +**VarClient** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Name.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Name.md index 3e19db154a805..a89e8d24d4a71 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Name.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] -**Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] +**Property** | **string?** | | [optional] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NullableClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NullableClass.md index 2d238d6a80cb3..64578b092a031 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NullableClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NullableClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **IntegerProp** | **int?** | | [optional] **NumberProp** | **decimal?** | | [optional] **BooleanProp** | **bool?** | | [optional] -**StringProp** | **string** | | [optional] +**StringProp** | **string?** | | [optional] **DateProp** | **DateOnly?** | | [optional] **DatetimeProp** | **DateTime?** | | [optional] **ArrayNullableProp** | **List<Object>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NumberOnly.md index 14a7c0f1071b5..1af131f829ec8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b8..a36d8ca84a70d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ObjectWithDeprecatedFields.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] -**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] +**Uuid** | **string?** | | [optional] +**Id** | **decimal?** | | [optional] +**DeprecatedRef** | [**DeprecatedObject?**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Order.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Order.md index 66c55c3b47379..72f9aefc42390 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Order.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] -**Status** | **string** | Order Status | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] +**ShipDate** | **DateTime?** | | [optional] +**Status** | **string?** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/OuterComposite.md index eb42bcc1aaa46..e1a61b97a536c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] -**MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyNumber** | **decimal?** | | [optional] +**MyString** | **string?** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Pet.md index c7224764e2d4f..503652fad78fc 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Pet.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Category** | [**Category**](Category.md) | | [optional] +**Id** | **long?** | | [optional] +**Category** | [**Category?**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | **Tags** | [**List<Tag>**](Tag.md) | | [optional] -**Status** | **string** | pet status in the store | [optional] +**Status** | **string?** | pet status in the store | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ReadOnlyFirst.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ReadOnlyFirst.md index b3f4a17ea34ee..c3d41e7f8f46c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ReadOnlyFirst.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Bar** | **string** | | [optional] [readonly] -**Baz** | **string** | | [optional] +**Bar** | **string?** | | [optional] [readonly] +**Baz** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RequiredClass.md index 7f734db8a6183..2c00b36dce184 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RequiredClass.md @@ -7,43 +7,43 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | -**NotrequiredNullableStringProp** | **string** | | [optional] -**NotrequiredNotnullableStringProp** | **string** | | [optional] +**NotrequiredNullableStringProp** | **string?** | | [optional] +**NotrequiredNotnullableStringProp** | **string?** | | [optional] **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateOnly?** | | **RequiredNotNullableDateProp** | **DateOnly** | | **NotRequiredNullableDateProp** | **DateOnly?** | | [optional] -**NotRequiredNotnullableDateProp** | **DateOnly** | | [optional] +**NotRequiredNotnullableDateProp** | **DateOnly?** | | [optional] **RequiredNotnullableDatetimeProp** | **DateTime** | | **RequiredNullableDatetimeProp** | **DateTime?** | | **NotrequiredNullableDatetimeProp** | **DateTime?** | | [optional] -**NotrequiredNotnullableDatetimeProp** | **DateTime** | | [optional] +**NotrequiredNotnullableDatetimeProp** | **DateTime?** | | [optional] **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | -**NotrequiredNullableEnumString** | **string** | | [optional] -**NotrequiredNotnullableEnumString** | **string** | | [optional] +**NotrequiredNullableEnumString** | **string?** | | [optional] +**NotrequiredNotnullableEnumString** | **string?** | | [optional] **RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | **RequiredNotnullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | -**NotrequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] -**NotrequiredNotnullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] +**NotrequiredNullableOuterEnumDefaultValue** | [**OuterEnumDefaultValue?**](OuterEnumDefaultValue.md) | | [optional] +**NotrequiredNotnullableOuterEnumDefaultValue** | [**OuterEnumDefaultValue?**](OuterEnumDefaultValue.md) | | [optional] **RequiredNullableUuid** | **Guid?** | | **RequiredNotnullableUuid** | **Guid** | | **NotrequiredNullableUuid** | **Guid?** | | [optional] -**NotrequiredNotnullableUuid** | **Guid** | | [optional] +**NotrequiredNotnullableUuid** | **Guid?** | | [optional] **RequiredNullableArrayOfString** | **List<string>** | | **RequiredNotnullableArrayOfString** | **List<string>** | | **NotrequiredNullableArrayOfString** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Return.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Return.md index 052ac91900689..8eec641779307 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Return.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHash.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHash.md index 309b0c02615c6..e73788a32fb39 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHash.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHash.md @@ -5,8 +5,8 @@ Role report Hash Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RoleUuid** | **Guid** | | [optional] -**Role** | [**RolesReportsHashRole**](RolesReportsHashRole.md) | | [optional] +**RoleUuid** | **Guid?** | | [optional] +**Role** | [**RolesReportsHashRole?**](RolesReportsHashRole.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHashRole.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHashRole.md index 6f9affc24032a..8b9da914ec6c3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHashRole.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHashRole.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] +**Name** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/SpecialModelName.md index 7f8ffca34fa1b..50b87d981d57d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/SpecialModelName.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] -**VarSpecialModelName** | **string** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] +**VarSpecialModelName** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Tag.md index fdd22eb31fdd1..1f6ddf2cdbe59 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Tag.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Name** | **string** | | [optional] +**Id** | **long?** | | [optional] +**Name** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestCollectionEndingWithWordList.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestCollectionEndingWithWordList.md index 0e5568637b894..3e90bb8a3d6ca 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestCollectionEndingWithWordList.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestCollectionEndingWithWordList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Value** | **string** | | [optional] +**Value** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestInlineFreeformAdditionalPropertiesRequest.md index c1cf9ce2f812e..a2ebd09f076ba 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestInlineFreeformAdditionalPropertiesRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SomeProperty** | **string** | | [optional] +**SomeProperty** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/User.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/User.md index b0cd4dc042bfa..38d3987d7fc64 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/User.md @@ -4,18 +4,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Username** | **string** | | [optional] -**FirstName** | **string** | | [optional] -**LastName** | **string** | | [optional] -**Email** | **string** | | [optional] -**Password** | **string** | | [optional] -**Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] -**ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] -**ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] -**AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] -**AnyTypePropNullable** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional] +**Id** | **long?** | | [optional] +**Username** | **string?** | | [optional] +**FirstName** | **string?** | | [optional] +**LastName** | **string?** | | [optional] +**Email** | **string?** | | [optional] +**Password** | **string?** | | [optional] +**Phone** | **string?** | | [optional] +**UserStatus** | **int?** | User Status | [optional] +**ObjectWithNoDeclaredProps** | **Object?** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] +**ObjectWithNoDeclaredPropsNullable** | **Object?** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] +**AnyTypeProp** | **Object?** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] +**AnyTypePropNullable** | **Object?** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Whale.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Whale.md index 5fc3dc7f85c23..a1512d751e8ee 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Whale.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Zebra.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Zebra.md index 31e686adf0e74..4b4313ba5038c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Zebra.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Zebra.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | | [optional] +**Type** | **string?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ZeroBasedEnumClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ZeroBasedEnumClass.md index b804bc0d7fb4e..46002998b553d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ZeroBasedEnumClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ZeroBasedEnumClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ZeroBasedEnum** | **string** | | [optional] +**ZeroBasedEnum** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index dce3f9134dbbe..a17d3d7d8e1ff 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -48,13 +48,13 @@ public partial class ActivityOutputElementRepresentation : IEquatable [DataMember(Name = "prop1", EmitDefaultValue = false)] - public string Prop1 { get; set; } + public string? Prop1 { get; set; } /// /// Gets or Sets Prop2 /// [DataMember(Name = "prop2", EmitDefaultValue = false)] - public Object Prop2 { get; set; } + public Object? Prop2 { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index c83597fc607ee..671a639bc53b6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -72,19 +72,19 @@ public partial class AdditionalPropertiesClass : IEquatable [DataMember(Name = "anytype_1", EmitDefaultValue = true)] - public Object Anytype1 { get; set; } + public Object? Anytype1 { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesAnytype1 /// [DataMember(Name = "map_with_undeclared_properties_anytype_1", EmitDefaultValue = false)] - public Object MapWithUndeclaredPropertiesAnytype1 { get; set; } + public Object? MapWithUndeclaredPropertiesAnytype1 { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesAnytype2 /// [DataMember(Name = "map_with_undeclared_properties_anytype_2", EmitDefaultValue = false)] - public Object MapWithUndeclaredPropertiesAnytype2 { get; set; } + public Object? MapWithUndeclaredPropertiesAnytype2 { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesAnytype3 @@ -97,7 +97,7 @@ public partial class AdditionalPropertiesClass : IEquatable /// an object with no declared properties and no undeclared properties, hence it's an empty map. [DataMember(Name = "empty_map", EmitDefaultValue = false)] - public Object EmptyMap { get; set; } + public Object? EmptyMap { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesString diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1fc..c0f08ba338c3c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -50,19 +50,19 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type /// [DataMember(Name = "type", EmitDefaultValue = false)] - public string Type { get; set; } + public string? Type { get; set; } /// /// Gets or Sets Message /// [DataMember(Name = "message", EmitDefaultValue = false)] - public string Message { get; set; } + public string? Message { get; set; } /// /// Gets or Sets additional properties @@ -124,7 +124,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs index 8d3f9af56df62..0ea98c67d9dcf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs @@ -50,19 +50,19 @@ public partial class Apple : IEquatable, IValidatableObject /// Gets or Sets Cultivar /// [DataMember(Name = "cultivar", EmitDefaultValue = false)] - public string Cultivar { get; set; } + public string? Cultivar { get; set; } /// /// Gets or Sets Origin /// [DataMember(Name = "origin", EmitDefaultValue = false)] - public string Origin { get; set; } + public string? Origin { get; set; } /// /// Gets or Sets ColorCode /// [DataMember(Name = "color_code", EmitDefaultValue = false)] - public string ColorCode { get; set; } + public string? ColorCode { get; set; } /// /// Gets or Sets additional properties @@ -152,7 +152,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { if (this.Cultivar != null) { - // Cultivar (string) pattern + // Cultivar (string?) pattern Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); if (!regexCultivar.Match(this.Cultivar).Success) { @@ -161,7 +161,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.Origin != null) { - // Origin (string) pattern + // Origin (string?) pattern Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); if (!regexOrigin.Match(this.Origin).Success) { @@ -170,7 +170,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.ColorCode != null) { - // ColorCode (string) pattern + // ColorCode (string?) pattern Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); if (!regexColorCode.Match(this.ColorCode).Success) { diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e30..67d2eecc4c26b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs @@ -63,7 +63,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -121,7 +121,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d0..64b9c31778d1e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs @@ -46,7 +46,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80a..551074881d17a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs @@ -58,7 +58,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -113,7 +113,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs index f46fffa0ad6c4..17ac7f915b56f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs @@ -56,38 +56,38 @@ public partial class Capitalization : IEquatable, IValidatableOb /// Gets or Sets SmallCamel /// [DataMember(Name = "smallCamel", EmitDefaultValue = false)] - public string SmallCamel { get; set; } + public string? SmallCamel { get; set; } /// /// Gets or Sets CapitalCamel /// [DataMember(Name = "CapitalCamel", EmitDefaultValue = false)] - public string CapitalCamel { get; set; } + public string? CapitalCamel { get; set; } /// /// Gets or Sets SmallSnake /// [DataMember(Name = "small_Snake", EmitDefaultValue = false)] - public string SmallSnake { get; set; } + public string? SmallSnake { get; set; } /// /// Gets or Sets CapitalSnake /// [DataMember(Name = "Capital_Snake", EmitDefaultValue = false)] - public string CapitalSnake { get; set; } + public string? CapitalSnake { get; set; } /// /// Gets or Sets SCAETHFlowPoints /// [DataMember(Name = "SCA_ETH_Flow_Points", EmitDefaultValue = false)] - public string SCAETHFlowPoints { get; set; } + public string? SCAETHFlowPoints { get; set; } /// /// Name of the pet /// /// Name of the pet [DataMember(Name = "ATT_NAME", EmitDefaultValue = false)] - public string ATT_NAME { get; set; } + public string? ATT_NAME { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs index a52dd988da512..fc431e7b777dd 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs @@ -57,7 +57,7 @@ protected Cat() /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Gets or Sets additional properties @@ -118,7 +118,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Category.cs index 5edb4edfea4ad..6feda1e8c352e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Category.cs @@ -61,7 +61,7 @@ protected Category() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -128,7 +128,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs index f546083c72f54..d85993746d906 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs @@ -76,7 +76,7 @@ protected ChildCat() /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs index 7a0846aec4e10..e5c5deb9958ec 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs @@ -46,7 +46,7 @@ public partial class ClassModel : IEquatable, IValidatableObject /// Gets or Sets Class /// [DataMember(Name = "_class", EmitDefaultValue = false)] - public string Class { get; set; } + public string? Class { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs index b260c723ba6b2..954f75a6779c1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -49,7 +49,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje Fri Jul 21 00:00:00 UTC 2017 */ [DataMember(Name = "dateOnlyProperty", EmitDefaultValue = false)] - public DateOnly DateOnlyProperty { get; set; } + public DateOnly? DateOnlyProperty { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 2895d518a81f1..916002e1213e3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -46,7 +46,7 @@ public partial class DeprecatedObject : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs index 7437cf68475a6..67051676a8b38 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs @@ -57,7 +57,7 @@ protected Dog() /// Gets or Sets Breed /// [DataMember(Name = "breed", EmitDefaultValue = false)] - public string Breed { get; set; } + public string? Breed { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs index 98c683539e6f0..03ade818aa1ad 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs @@ -52,19 +52,19 @@ public partial class Drawing : IEquatable, IValidatableObject /// Gets or Sets MainShape /// [DataMember(Name = "mainShape", EmitDefaultValue = false)] - public Shape MainShape { get; set; } + public Shape? MainShape { get; set; } /// /// Gets or Sets ShapeOrNull /// [DataMember(Name = "shapeOrNull", EmitDefaultValue = true)] - public ShapeOrNull ShapeOrNull { get; set; } + public ShapeOrNull? ShapeOrNull { get; set; } /// /// Gets or Sets NullableShape /// [DataMember(Name = "nullableShape", EmitDefaultValue = true)] - public NullableShape NullableShape { get; set; } + public NullableShape? NullableShape { get; set; } /// /// Gets or Sets Shapes diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs index 27d1193954eae..8c6366ac82fea 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs @@ -179,6 +179,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// @@ -223,30 +224,6 @@ public enum EnumNumberEnum /// [DataMember(Name = "enum_number", EmitDefaultValue = false)] public EnumNumberEnum? EnumNumber { get; set; } - - /// - /// Gets or Sets OuterEnum - /// - [DataMember(Name = "outerEnum", EmitDefaultValue = true)] - public OuterEnum? OuterEnum { get; set; } - - /// - /// Gets or Sets OuterEnumInteger - /// - [DataMember(Name = "outerEnumInteger", EmitDefaultValue = false)] - public OuterEnumInteger? OuterEnumInteger { get; set; } - - /// - /// Gets or Sets OuterEnumDefaultValue - /// - [DataMember(Name = "outerEnumDefaultValue", EmitDefaultValue = false)] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get; set; } - - /// - /// Gets or Sets OuterEnumIntegerDefaultValue - /// - [DataMember(Name = "outerEnumIntegerDefaultValue", EmitDefaultValue = false)] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get; set; } /// /// Initializes a new instance of the class. /// @@ -281,6 +258,30 @@ protected EnumTest() this.AdditionalProperties = new Dictionary(); } + /// + /// Gets or Sets OuterEnum + /// + [DataMember(Name = "outerEnum", EmitDefaultValue = true)] + public OuterEnum? OuterEnum { get; set; } + + /// + /// Gets or Sets OuterEnumInteger + /// + [DataMember(Name = "outerEnumInteger", EmitDefaultValue = false)] + public OuterEnumInteger? OuterEnumInteger { get; set; } + + /// + /// Gets or Sets OuterEnumDefaultValue + /// + [DataMember(Name = "outerEnumDefaultValue", EmitDefaultValue = false)] + public OuterEnumDefaultValue? OuterEnumDefaultValue { get; set; } + + /// + /// Gets or Sets OuterEnumIntegerDefaultValue + /// + [DataMember(Name = "outerEnumIntegerDefaultValue", EmitDefaultValue = false)] + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get; set; } + /// /// Gets or Sets additional properties /// @@ -352,10 +353,22 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.EnumInteger.GetHashCode(); hashCode = (hashCode * 59) + this.EnumIntegerOnly.GetHashCode(); hashCode = (hashCode * 59) + this.EnumNumber.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnum.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnumInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnumDefaultValue.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnumIntegerDefaultValue.GetHashCode(); + if (this.OuterEnum != null) + { + hashCode = (hashCode * 59) + this.OuterEnum.GetHashCode(); + } + if (this.OuterEnumInteger != null) + { + hashCode = (hashCode * 59) + this.OuterEnumInteger.GetHashCode(); + } + if (this.OuterEnumDefaultValue != null) + { + hashCode = (hashCode * 59) + this.OuterEnumDefaultValue.GetHashCode(); + } + if (this.OuterEnumIntegerDefaultValue != null) + { + hashCode = (hashCode * 59) + this.OuterEnumIntegerDefaultValue.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/File.cs index 72b34e4926266..b6a92c42e6010 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/File.cs @@ -47,7 +47,7 @@ public partial class File : IEquatable, IValidatableObject /// /// Test capitalization [DataMember(Name = "sourceURI", EmitDefaultValue = false)] - public string SourceURI { get; set; } + public string? SourceURI { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index cd75dba4a9255..a969139850d09 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -48,7 +48,7 @@ public partial class FileSchemaTestClass : IEquatable, IVal /// Gets or Sets File /// [DataMember(Name = "file", EmitDefaultValue = false)] - public File File { get; set; } + public File? File { get; set; } /// /// Gets or Sets Files diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 1ce81eece3ee2..3b26cdae0ef67 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -46,7 +46,7 @@ public partial class FooGetDefaultResponse : IEquatable, /// Gets or Sets String /// [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } + public Foo? String { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs index 59c8975b92957..07a71a8e09c69 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs @@ -100,31 +100,31 @@ protected FormatTest() /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -136,25 +136,25 @@ protected FormatTest() /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String /// [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } + public string? String { get; set; } /// /// Gets or Sets Byte @@ -166,7 +166,7 @@ protected FormatTest() /// Gets or Sets Binary /// [DataMember(Name = "binary", EmitDefaultValue = false)] - public System.IO.Stream Binary { get; set; } + public System.IO.Stream? Binary { get; set; } /// /// Gets or Sets Date @@ -184,7 +184,7 @@ protected FormatTest() 2007-12-03T10:15:30+01:00 */ [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Uuid @@ -193,7 +193,7 @@ protected FormatTest() 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets Password @@ -206,21 +206,21 @@ protected FormatTest() /// /// A string that is a 10 digit number. Can have leading zeros. [DataMember(Name = "pattern_with_digits", EmitDefaultValue = false)] - public string PatternWithDigits { get; set; } + public string? PatternWithDigits { get; set; } /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [DataMember(Name = "pattern_with_digits_and_delimiter", EmitDefaultValue = false)] - public string PatternWithDigitsAndDelimiter { get; set; } + public string? PatternWithDigitsAndDelimiter { get; set; } /// /// None /// /// None [DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)] - public string PatternWithBackslash { get; set; } + public string? PatternWithBackslash { get; set; } /// /// Gets or Sets additional properties @@ -298,15 +298,39 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -362,38 +386,38 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -410,32 +434,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } if (this.String != null) { - // String (string) pattern + // String (string?) pattern Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); if (!regexString.Match(this.String).Success) { @@ -456,7 +480,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.PatternWithDigits != null) { - // PatternWithDigits (string) pattern + // PatternWithDigits (string?) pattern Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) { @@ -465,7 +489,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.PatternWithDigitsAndDelimiter != null) { - // PatternWithDigitsAndDelimiter (string) pattern + // PatternWithDigitsAndDelimiter (string?) pattern Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) { @@ -474,7 +498,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.PatternWithBackslash != null) { - // PatternWithBackslash (string) pattern + // PatternWithBackslash (string?) pattern Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) { diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 3c6298d7d8d2c..c1f73df75345d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -45,7 +45,7 @@ public HasOnlyReadOnly() /// Gets or Sets Bar /// [DataMember(Name = "bar", EmitDefaultValue = false)] - public string Bar { get; private set; } + public string? Bar { get; private set; } /// /// Returns false as Bar should not be serialized given that it's read-only. @@ -59,7 +59,7 @@ public bool ShouldSerializeBar() /// Gets or Sets Foo /// [DataMember(Name = "foo", EmitDefaultValue = false)] - public string Foo { get; private set; } + public string? Foo { get; private set; } /// /// Returns false as Foo should not be serialized given that it's read-only. diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 6fe0749077627..ede1eddafbd9f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -46,7 +46,7 @@ public partial class HealthCheckResult : IEquatable, IValidat /// Gets or Sets NullableMessage /// [DataMember(Name = "NullableMessage", EmitDefaultValue = true)] - public string NullableMessage { get; set; } + public string? NullableMessage { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/List.cs index e06a3f381f127..0a72274a601af 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/List.cs @@ -46,7 +46,7 @@ public partial class List : IEquatable, IValidatableObject /// Gets or Sets Var123List /// [DataMember(Name = "123-list", EmitDefaultValue = false)] - public string Var123List { get; set; } + public string? Var123List { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 2b62d59754783..b38843c051832 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -46,7 +46,7 @@ public partial class MixedAnyOf : IEquatable, IValidatableObject /// Gets or Sets Content /// [DataMember(Name = "content", EmitDefaultValue = false)] - public MixedAnyOfContent Content { get; set; } + public MixedAnyOfContent? Content { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs index bd0255888b866..847ba54fba764 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -46,7 +46,7 @@ public partial class MixedOneOf : IEquatable, IValidatableObject /// Gets or Sets Content /// [DataMember(Name = "content", EmitDefaultValue = false)] - public MixedOneOfContent Content { get; set; } + public MixedOneOfContent? Content { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 5f51e31aa0348..9963b806cbaa3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -52,19 +52,19 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable [DataMember(Name = "uuid_with_pattern", EmitDefaultValue = false)] - public Guid UuidWithPattern { get; set; } + public Guid? UuidWithPattern { get; set; } /// /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets DateTime /// [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Map @@ -165,7 +165,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { if (this.UuidWithPattern != null) { - // UuidWithPattern (Guid) pattern + // UuidWithPattern (Guid?) pattern Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) { diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs index 1906ce0b27099..2955fbf641e6f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -46,7 +46,7 @@ public partial class MixedSubId : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + public string? Id { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e7540..aabfa2cb3032a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs @@ -48,13 +48,13 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class /// [DataMember(Name = "class", EmitDefaultValue = false)] - public string Class { get; set; } + public string? Class { get; set; } /// /// Gets or Sets additional properties @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs index 6908949949478..d29bc1c834580 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs @@ -46,7 +46,7 @@ public partial class ModelClient : IEquatable, IValidatableObject /// Gets or Sets VarClient /// [DataMember(Name = "client", EmitDefaultValue = false)] - public string VarClient { get; set; } + public string? VarClient { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Name.cs index f34052aa706c6..24f6da7f12f70 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Name.cs @@ -62,7 +62,7 @@ protected Name() /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -76,13 +76,13 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Property /// [DataMember(Name = "property", EmitDefaultValue = false)] - public string Property { get; set; } + public string? Property { get; set; } /// /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -154,12 +154,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs index c8fda56e43036..abd9d32c2b269 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs @@ -86,7 +86,7 @@ public partial class NullableClass : IEquatable, IValidatableObje /// Gets or Sets StringProp /// [DataMember(Name = "string_prop", EmitDefaultValue = true)] - public string StringProp { get; set; } + public string? StringProp { get; set; } /// /// Gets or Sets DateProp diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs index 7218451d9fb06..ee2c09f6c83ea 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -49,7 +49,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Gets or Sets additional properties @@ -109,7 +109,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 76faa5154c86a..43c34a011993b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -52,21 +52,21 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "uuid", EmitDefaultValue = false)] - public string Uuid { get; set; } + public string? Uuid { get; set; } /// /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef /// [DataMember(Name = "deprecatedRef", EmitDefaultValue = false)] [Obsolete] - public DeprecatedObject DeprecatedRef { get; set; } + public DeprecatedObject? DeprecatedRef { get; set; } /// /// Gets or Sets Bars @@ -140,7 +140,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Order.cs index cc1ac17c18359..d3ac14c40d3ac 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Order.cs @@ -89,19 +89,19 @@ public enum StatusEnum /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate @@ -110,7 +110,7 @@ public enum StatusEnum 2020-02-02T20:20:20.000222Z */ [DataMember(Name = "shipDate", EmitDefaultValue = false)] - public DateTime ShipDate { get; set; } + public DateTime? ShipDate { get; set; } /// /// Gets or Sets Complete @@ -181,9 +181,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs index 47d598a27e6f5..0141d3d587b43 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -50,19 +50,19 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString /// [DataMember(Name = "my_string", EmitDefaultValue = false)] - public string MyString { get; set; } + public string? MyString { get; set; } /// /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Gets or Sets additional properties @@ -124,12 +124,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs index e036d66bc8894..95a72ecc587e4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs @@ -107,13 +107,13 @@ protected Pet() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category /// [DataMember(Name = "category", EmitDefaultValue = false)] - public Category Category { get; set; } + public Category? Category { get; set; } /// /// Gets or Sets Name @@ -199,7 +199,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 46ed3b3948c0e..be5591e483a4c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -46,7 +46,7 @@ public partial class ReadOnlyFirst : IEquatable, IValidatableObje /// Gets or Sets Bar /// [DataMember(Name = "bar", EmitDefaultValue = false)] - public string Bar { get; private set; } + public string? Bar { get; private set; } /// /// Returns false as Bar should not be serialized given that it's read-only. @@ -60,7 +60,7 @@ public bool ShouldSerializeBar() /// Gets or Sets Baz /// [DataMember(Name = "baz", EmitDefaultValue = false)] - public string Baz { get; set; } + public string? Baz { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs index 76ce29ff67e17..5e4cc386daf53 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -466,18 +467,6 @@ public enum NotrequiredNotnullableEnumStringEnum /// [DataMember(Name = "required_notnullable_outerEnumDefaultValue", IsRequired = true, EmitDefaultValue = true)] public OuterEnumDefaultValue RequiredNotnullableOuterEnumDefaultValue { get; set; } - - /// - /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue - /// - [DataMember(Name = "notrequired_nullable_outerEnumDefaultValue", EmitDefaultValue = true)] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get; set; } - - /// - /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue - /// - [DataMember(Name = "notrequired_notnullable_outerEnumDefaultValue", EmitDefaultValue = false)] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get; set; } /// /// Initializes a new instance of the class. /// @@ -649,7 +638,7 @@ protected RequiredClass() /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -667,13 +656,13 @@ protected RequiredClass() /// Gets or Sets NotrequiredNullableStringProp /// [DataMember(Name = "notrequired_nullable_string_prop", EmitDefaultValue = true)] - public string NotrequiredNullableStringProp { get; set; } + public string? NotrequiredNullableStringProp { get; set; } /// /// Gets or Sets NotrequiredNotnullableStringProp /// [DataMember(Name = "notrequired_notnullable_string_prop", EmitDefaultValue = false)] - public string NotrequiredNotnullableStringProp { get; set; } + public string? NotrequiredNotnullableStringProp { get; set; } /// /// Gets or Sets RequiredNullableBooleanProp @@ -697,7 +686,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -721,7 +710,7 @@ protected RequiredClass() /// Gets or Sets NotRequiredNotnullableDateProp /// [DataMember(Name = "not_required_notnullable_date_prop", EmitDefaultValue = false)] - public DateOnly NotRequiredNotnullableDateProp { get; set; } + public DateOnly? NotRequiredNotnullableDateProp { get; set; } /// /// Gets or Sets RequiredNotnullableDatetimeProp @@ -745,7 +734,19 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [DataMember(Name = "notrequired_notnullable_datetime_prop", EmitDefaultValue = false)] - public DateTime NotrequiredNotnullableDatetimeProp { get; set; } + public DateTime? NotrequiredNotnullableDatetimeProp { get; set; } + + /// + /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue + /// + [DataMember(Name = "notrequired_nullable_outerEnumDefaultValue", EmitDefaultValue = true)] + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get; set; } + + /// + /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue + /// + [DataMember(Name = "notrequired_notnullable_outerEnumDefaultValue", EmitDefaultValue = false)] + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get; set; } /// /// Gets or Sets RequiredNullableUuid @@ -781,7 +782,7 @@ protected RequiredClass() 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [DataMember(Name = "notrequired_notnullable_uuid", EmitDefaultValue = false)] - public Guid NotrequiredNotnullableUuid { get; set; } + public Guid? NotrequiredNotnullableUuid { get; set; } /// /// Gets or Sets RequiredNullableArrayOfString @@ -917,7 +918,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -943,7 +947,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); @@ -990,8 +997,14 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.NotrequiredNotnullableEnumString.GetHashCode(); hashCode = (hashCode * 59) + this.RequiredNullableOuterEnumDefaultValue.GetHashCode(); hashCode = (hashCode * 59) + this.RequiredNotnullableOuterEnumDefaultValue.GetHashCode(); - hashCode = (hashCode * 59) + this.NotrequiredNullableOuterEnumDefaultValue.GetHashCode(); - hashCode = (hashCode * 59) + this.NotrequiredNotnullableOuterEnumDefaultValue.GetHashCode(); + if (this.NotrequiredNullableOuterEnumDefaultValue != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNullableOuterEnumDefaultValue.GetHashCode(); + } + if (this.NotrequiredNotnullableOuterEnumDefaultValue != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableOuterEnumDefaultValue.GetHashCode(); + } if (this.RequiredNullableUuid != null) { hashCode = (hashCode * 59) + this.RequiredNullableUuid.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Return.cs index fec56c44fa82e..ac44065ab1b03 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Return.cs @@ -46,7 +46,7 @@ public partial class Return : IEquatable, IValidatableObject /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 4523238ad3857..ce546ac216744 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -48,13 +48,13 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// Gets or Sets RoleUuid /// [DataMember(Name = "role_uuid", EmitDefaultValue = false)] - public Guid RoleUuid { get; set; } + public Guid? RoleUuid { get; set; } /// /// Gets or Sets Role /// [DataMember(Name = "role", EmitDefaultValue = false)] - public RolesReportsHashRole Role { get; set; } + public RolesReportsHashRole? Role { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index ef21c6091f380..328b8e00dd8d5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -46,7 +46,7 @@ public partial class RolesReportsHashRole : IEquatable, IV /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f1..a0576690b4464 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -48,13 +48,13 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName /// [DataMember(Name = "_special_model.name_", EmitDefaultValue = false)] - public string VarSpecialModelName { get; set; } + public string? VarSpecialModelName { get; set; } /// /// Gets or Sets additional properties @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs index 58eb2c605d15f..e0aaa0f4a2a89 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs @@ -48,13 +48,13 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Gets or Sets additional properties @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index f7782b6fd5a7e..47d4e41351443 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -46,7 +46,7 @@ public partial class TestCollectionEndingWithWordList : IEquatable [DataMember(Name = "value", EmitDefaultValue = false)] - public string Value { get; set; } + public string? Value { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 457b88ac9c744..d43a9a31babb5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -46,7 +46,7 @@ public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable< /// Gets or Sets SomeProperty /// [DataMember(Name = "someProperty", EmitDefaultValue = false)] - public string SomeProperty { get; set; } + public string? SomeProperty { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/User.cs index b7911507a7047..b0c865a28ecf3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/User.cs @@ -68,78 +68,78 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username /// [DataMember(Name = "username", EmitDefaultValue = false)] - public string Username { get; set; } + public string? Username { get; set; } /// /// Gets or Sets FirstName /// [DataMember(Name = "firstName", EmitDefaultValue = false)] - public string FirstName { get; set; } + public string? FirstName { get; set; } /// /// Gets or Sets LastName /// [DataMember(Name = "lastName", EmitDefaultValue = false)] - public string LastName { get; set; } + public string? LastName { get; set; } /// /// Gets or Sets Email /// [DataMember(Name = "email", EmitDefaultValue = false)] - public string Email { get; set; } + public string? Email { get; set; } /// /// Gets or Sets Password /// [DataMember(Name = "password", EmitDefaultValue = false)] - public string Password { get; set; } + public string? Password { get; set; } /// /// Gets or Sets Phone /// [DataMember(Name = "phone", EmitDefaultValue = false)] - public string Phone { get; set; } + public string? Phone { get; set; } /// /// User Status /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [DataMember(Name = "objectWithNoDeclaredProps", EmitDefaultValue = false)] - public Object ObjectWithNoDeclaredProps { get; set; } + public Object? ObjectWithNoDeclaredProps { get; set; } /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [DataMember(Name = "objectWithNoDeclaredPropsNullable", EmitDefaultValue = true)] - public Object ObjectWithNoDeclaredPropsNullable { get; set; } + public Object? ObjectWithNoDeclaredPropsNullable { get; set; } /// /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 /// /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 [DataMember(Name = "anyTypeProp", EmitDefaultValue = true)] - public Object AnyTypeProp { get; set; } + public Object? AnyTypeProp { get; set; } /// /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. /// /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. [DataMember(Name = "anyTypePropNullable", EmitDefaultValue = true)] - public Object AnyTypePropNullable { get; set; } + public Object? AnyTypePropNullable { get; set; } /// /// Gets or Sets additional properties @@ -210,7 +210,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -235,7 +238,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs index 50119ed39e769..d242dc782d156 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs @@ -63,13 +63,13 @@ protected Whale() /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -137,8 +137,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ActivityOutputElementRepresentation.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ActivityOutputElementRepresentation.md index 21f226b39525a..7f37e8a701aae 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ActivityOutputElementRepresentation.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ActivityOutputElementRepresentation.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Prop1** | **string** | | [optional] -**Prop2** | **Object** | | [optional] +**Prop1** | **string?** | | [optional] +**Prop2** | **Object?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AdditionalPropertiesClass.md index c40cd0f8accb5..e9b9f2256d9fd 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AdditionalPropertiesClass.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MapProperty** | **Dictionary<string, string>** | | [optional] **MapOfMapProperty** | **Dictionary<string, Dictionary<string, string>>** | | [optional] -**Anytype1** | **Object** | | [optional] -**MapWithUndeclaredPropertiesAnytype1** | **Object** | | [optional] -**MapWithUndeclaredPropertiesAnytype2** | **Object** | | [optional] +**Anytype1** | **Object?** | | [optional] +**MapWithUndeclaredPropertiesAnytype1** | **Object?** | | [optional] +**MapWithUndeclaredPropertiesAnytype2** | **Object?** | | [optional] **MapWithUndeclaredPropertiesAnytype3** | **Dictionary<string, Object>** | | [optional] -**EmptyMap** | **Object** | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional] +**EmptyMap** | **Object?** | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional] **MapWithUndeclaredPropertiesString** | **Dictionary<string, string>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ApiResponse.md index bb723d2baa13c..7bae51a82b75c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ApiResponse.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] -**Type** | **string** | | [optional] -**Message** | **string** | | [optional] +**Code** | **int?** | | [optional] +**Type** | **string?** | | [optional] +**Message** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Apple.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Apple.md index 6261194e4800c..7711490a679bb 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Apple.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Apple.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Cultivar** | **string** | | [optional] -**Origin** | **string** | | [optional] -**ColorCode** | **string** | | [optional] +**Cultivar** | **string?** | | [optional] +**Origin** | **string?** | | [optional] +**ColorCode** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AppleReq.md index 005b8f8058a40..bb7b7576dc2ec 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AppleReq.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Banana.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Banana.md index 226952d1cecb0..72cbdcf0af0b5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Banana.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/BananaReq.md index f99aab99e387c..2bf39b773a66f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/BananaReq.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Capitalization.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Capitalization.md index 1b1352d918f4c..e9b31d33a6412 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Capitalization.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Capitalization.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SmallCamel** | **string** | | [optional] -**CapitalCamel** | **string** | | [optional] -**SmallSnake** | **string** | | [optional] -**CapitalSnake** | **string** | | [optional] -**SCAETHFlowPoints** | **string** | | [optional] -**ATT_NAME** | **string** | Name of the pet | [optional] +**SmallCamel** | **string?** | | [optional] +**CapitalCamel** | **string?** | | [optional] +**SmallSnake** | **string?** | | [optional] +**CapitalSnake** | **string?** | | [optional] +**SCAETHFlowPoints** | **string?** | | [optional] +**ATT_NAME** | **string?** | Name of the pet | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Cat.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Cat.md index aa1ac17604eb4..d41c6ec6eb65d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Cat.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Category.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Category.md index 032a1faeb3ffd..bdbe5ac5a4830 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ChildCat.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ChildCat.md index 8ce6449e5f224..3d0a819274cf7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ChildCat.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ChildCat.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] +**Name** | **string?** | | [optional] **PetType** | **string** | | [default to PetTypeEnum.ChildCat] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ClassModel.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ClassModel.md index f39982657c894..9bd76dc855f84 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ClassModel.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Class** | **string** | | [optional] +**Class** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DateOnlyClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DateOnlyClass.md index 8291b9cb6d787..e56ad3ae3df7f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DateOnlyClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DateOnlyClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DateOnlyProperty** | **DateOnly** | | [optional] +**DateOnlyProperty** | **DateOnly?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DeprecatedObject.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DeprecatedObject.md index bb7824a3d6401..3b5eacc8e0751 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DeprecatedObject.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DeprecatedObject.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] +**Name** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Dog.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Dog.md index 3aa00144e9aae..721425ea1e138 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Dog.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Dog.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Breed** | **string** | | [optional] +**Breed** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Drawing.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Drawing.md index 6b7122940afa9..50b962c62e8f1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Drawing.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Drawing.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MainShape** | [**Shape**](Shape.md) | | [optional] -**ShapeOrNull** | [**ShapeOrNull**](ShapeOrNull.md) | | [optional] -**NullableShape** | [**NullableShape**](NullableShape.md) | | [optional] +**MainShape** | [**Shape?**](Shape.md) | | [optional] +**ShapeOrNull** | [**ShapeOrNull?**](ShapeOrNull.md) | | [optional] +**NullableShape** | [**NullableShape?**](NullableShape.md) | | [optional] **Shapes** | [**List<Shape>**](Shape.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumArrays.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumArrays.md index 62e34f03dbc31..1691ef8adb0ad 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumArrays.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumArrays.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustSymbol** | **string** | | [optional] +**JustSymbol** | **string?** | | [optional] **ArrayEnum** | **List<EnumArrays.ArrayEnumEnum>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumTest.md index 5ce3c4addd9b7..720f9ae54ace2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumTest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EnumString** | **string** | | [optional] +**EnumString** | **string?** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] -**OuterEnum** | **OuterEnum** | | [optional] -**OuterEnumInteger** | **OuterEnumInteger** | | [optional] -**OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] -**OuterEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] +**OuterEnum** | [**OuterEnum?**](OuterEnum.md) | | [optional] +**OuterEnumInteger** | [**OuterEnumInteger?**](OuterEnumInteger.md) | | [optional] +**OuterEnumDefaultValue** | [**OuterEnumDefaultValue?**](OuterEnumDefaultValue.md) | | [optional] +**OuterEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue?**](OuterEnumIntegerDefaultValue.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/File.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/File.md index 28959feda088f..e67cd955342fc 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/File.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/File.md @@ -5,7 +5,7 @@ Must be named `File` for test. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SourceURI** | **string** | Test capitalization | [optional] +**SourceURI** | **string?** | Test capitalization | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FileSchemaTestClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FileSchemaTestClass.md index 0ce4be56cc723..ccb2d082f662e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FileSchemaTestClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**File** | [**File**](File.md) | | [optional] +**File** | [**File?**](File.md) | | [optional] **Files** | [**List<File>**](File.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FooGetDefaultResponse.md index dde9b9729b933..28fc2f659f082 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] +**String** | [**Foo?**](Foo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FormatTest.md index 2fe92b2cac89a..4ba8e119c02a3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FormatTest.md @@ -4,30 +4,30 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**Int32Range** | **int** | | [optional] -**Int64Positive** | **long** | | [optional] -**Int64Negative** | **long** | | [optional] -**Int64PositiveExclusive** | **long** | | [optional] -**Int64NegativeExclusive** | **long** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**Int32Range** | **int?** | | [optional] +**Int64Positive** | **long?** | | [optional] +**Int64Negative** | **long?** | | [optional] +**Int64PositiveExclusive** | **long?** | | [optional] +**Int64NegativeExclusive** | **long?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] -**String** | **string** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] +**String** | **string?** | | [optional] **Byte** | **byte[]** | | -**Binary** | **System.IO.Stream** | | [optional] +**Binary** | **System.IO.Stream?** | | [optional] **Date** | **DateOnly** | | -**DateTime** | **DateTime** | | [optional] -**Uuid** | **Guid** | | [optional] +**DateTime** | **DateTime?** | | [optional] +**Uuid** | **Guid?** | | [optional] **Password** | **string** | | -**PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional] -**PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] -**PatternWithBackslash** | **string** | None | [optional] +**PatternWithDigits** | **string?** | A string that is a 10 digit number. Can have leading zeros. | [optional] +**PatternWithDigitsAndDelimiter** | **string?** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] +**PatternWithBackslash** | **string?** | None | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Fruit.md index 40df92d7c9b19..c446aa06b20bf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Fruit.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Color** | **string** | | [optional] -**Cultivar** | **string** | | [optional] -**Origin** | **string** | | [optional] -**ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**Color** | **string?** | | [optional] +**Cultivar** | **string?** | | [optional] +**Origin** | **string?** | | [optional] +**ColorCode** | **string?** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FruitReq.md index 5db6b0e2d1d80..8f072a324cb06 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FruitReq.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/GmFruit.md index da7b3a6ccf9f0..3ef7829029398 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/GmFruit.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Color** | **string** | | [optional] -**Cultivar** | **string** | | [optional] -**Origin** | **string** | | [optional] -**ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**Color** | **string?** | | [optional] +**Cultivar** | **string?** | | [optional] +**Origin** | **string?** | | [optional] +**ColorCode** | **string?** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HasOnlyReadOnly.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HasOnlyReadOnly.md index 64549c18b0a1b..b4d3bd8c6d578 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HasOnlyReadOnly.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Bar** | **string** | | [optional] [readonly] -**Foo** | **string** | | [optional] [readonly] +**Bar** | **string?** | | [optional] [readonly] +**Foo** | **string?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HealthCheckResult.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HealthCheckResult.md index f7d1a7eb68861..154fd14dcc7de 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HealthCheckResult.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HealthCheckResult.md @@ -5,7 +5,7 @@ Just a string to inform instance is up and running. Make it nullable in hope to Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NullableMessage** | **string** | | [optional] +**NullableMessage** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/List.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/List.md index c00ef31e6e251..65dd7bf072a29 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/List.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Var123List** | **string** | | [optional] +**Var123List** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Mammal.md index aab8f4db9c75d..e82462c4bbaae 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Mammal.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | -**Type** | **string** | | [optional] +**Type** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixLog.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixLog.md index 1872e30daaa3f..2bd04a68fda47 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixLog.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixLog.md @@ -7,35 +7,35 @@ Name | Type | Description | Notes **Id** | **Guid** | | **Description** | **string** | | **MixDate** | **DateTime** | | -**ShopId** | **Guid** | | [optional] +**ShopId** | **Guid?** | | [optional] **TotalPrice** | **float?** | | [optional] **TotalRecalculations** | **int** | | **TotalOverPoors** | **int** | | **TotalSkips** | **int** | | **TotalUnderPours** | **int** | | **FormulaVersionDate** | **DateTime** | | -**SomeCode** | **string** | SomeCode is only required for color mixes | [optional] -**BatchNumber** | **string** | | [optional] -**BrandCode** | **string** | BrandCode is only required for non-color mixes | [optional] -**BrandId** | **string** | BrandId is only required for color mixes | [optional] -**BrandName** | **string** | BrandName is only required for color mixes | [optional] -**CategoryCode** | **string** | CategoryCode is not used anymore | [optional] -**Color** | **string** | Color is only required for color mixes | [optional] -**ColorDescription** | **string** | | [optional] -**Comment** | **string** | | [optional] -**CommercialProductCode** | **string** | | [optional] -**ProductLineCode** | **string** | ProductLineCode is only required for color mixes | [optional] -**Country** | **string** | | [optional] -**CreatedBy** | **string** | | [optional] -**CreatedByFirstName** | **string** | | [optional] -**CreatedByLastName** | **string** | | [optional] -**DeltaECalculationRepaired** | **string** | | [optional] -**DeltaECalculationSprayout** | **string** | | [optional] +**SomeCode** | **string?** | SomeCode is only required for color mixes | [optional] +**BatchNumber** | **string?** | | [optional] +**BrandCode** | **string?** | BrandCode is only required for non-color mixes | [optional] +**BrandId** | **string?** | BrandId is only required for color mixes | [optional] +**BrandName** | **string?** | BrandName is only required for color mixes | [optional] +**CategoryCode** | **string?** | CategoryCode is not used anymore | [optional] +**Color** | **string?** | Color is only required for color mixes | [optional] +**ColorDescription** | **string?** | | [optional] +**Comment** | **string?** | | [optional] +**CommercialProductCode** | **string?** | | [optional] +**ProductLineCode** | **string?** | ProductLineCode is only required for color mixes | [optional] +**Country** | **string?** | | [optional] +**CreatedBy** | **string?** | | [optional] +**CreatedByFirstName** | **string?** | | [optional] +**CreatedByLastName** | **string?** | | [optional] +**DeltaECalculationRepaired** | **string?** | | [optional] +**DeltaECalculationSprayout** | **string?** | | [optional] **OwnColorVariantNumber** | **int?** | | [optional] -**PrimerProductId** | **string** | | [optional] -**ProductId** | **string** | ProductId is only required for color mixes | [optional] -**ProductName** | **string** | ProductName is only required for color mixes | [optional] -**SelectedVersionIndex** | **int** | | [optional] +**PrimerProductId** | **string?** | | [optional] +**ProductId** | **string?** | ProductId is only required for color mixes | [optional] +**ProductName** | **string?** | ProductName is only required for color mixes | [optional] +**SelectedVersionIndex** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOf.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOf.md index 6a6aa093bebec..1cee08f2a5dc5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOf.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOf.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Content** | [**MixedAnyOfContent**](MixedAnyOfContent.md) | | [optional] +**Content** | [**MixedAnyOfContent?**](MixedAnyOfContent.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOfContent.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOfContent.md index 9af972f3219f8..deb8047505e8d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOfContent.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOfContent.md @@ -5,7 +5,7 @@ Mixed anyOf types for testing Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Id** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOf.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOf.md index dc9650a8e3a0b..0c5625d3f74c8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOf.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOf.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Content** | [**MixedOneOfContent**](MixedOneOfContent.md) | | [optional] +**Content** | [**MixedOneOfContent?**](MixedOneOfContent.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOfContent.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOfContent.md index 8468f9024f73d..4629cf4461509 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOfContent.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOfContent.md @@ -5,7 +5,7 @@ Mixed oneOf types for testing Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Id** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md index 050210a3e3719..81d4a847dbe25 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UuidWithPattern** | **Guid** | | [optional] -**Uuid** | **Guid** | | [optional] -**DateTime** | **DateTime** | | [optional] +**UuidWithPattern** | **Guid?** | | [optional] +**Uuid** | **Guid?** | | [optional] +**DateTime** | **DateTime?** | | [optional] **Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedSubId.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedSubId.md index b9268e37cba6a..c5989c5922d93 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedSubId.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedSubId.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Id** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Model200Response.md index 31f4d86fe43de..c719083851e4a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Model200Response.md @@ -5,8 +5,8 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] -**Class** | **string** | | [optional] +**Name** | **int?** | | [optional] +**Class** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ModelClient.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ModelClient.md index 1d8afe3e1a7ae..d525ccdaa521b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ModelClient.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarClient** | **string** | | [optional] +**VarClient** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Name.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Name.md index 3e19db154a805..a89e8d24d4a71 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Name.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] -**Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] +**Property** | **string?** | | [optional] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NullableClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NullableClass.md index 2d238d6a80cb3..64578b092a031 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NullableClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NullableClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **IntegerProp** | **int?** | | [optional] **NumberProp** | **decimal?** | | [optional] **BooleanProp** | **bool?** | | [optional] -**StringProp** | **string** | | [optional] +**StringProp** | **string?** | | [optional] **DateProp** | **DateOnly?** | | [optional] **DatetimeProp** | **DateTime?** | | [optional] **ArrayNullableProp** | **List<Object>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NumberOnly.md index 14a7c0f1071b5..1af131f829ec8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b8..a36d8ca84a70d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ObjectWithDeprecatedFields.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] -**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] +**Uuid** | **string?** | | [optional] +**Id** | **decimal?** | | [optional] +**DeprecatedRef** | [**DeprecatedObject?**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Order.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Order.md index 66c55c3b47379..72f9aefc42390 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Order.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] -**Status** | **string** | Order Status | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] +**ShipDate** | **DateTime?** | | [optional] +**Status** | **string?** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/OuterComposite.md index eb42bcc1aaa46..e1a61b97a536c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] -**MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyNumber** | **decimal?** | | [optional] +**MyString** | **string?** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Pet.md index c7224764e2d4f..503652fad78fc 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Pet.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Category** | [**Category**](Category.md) | | [optional] +**Id** | **long?** | | [optional] +**Category** | [**Category?**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | **Tags** | [**List<Tag>**](Tag.md) | | [optional] -**Status** | **string** | pet status in the store | [optional] +**Status** | **string?** | pet status in the store | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ReadOnlyFirst.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ReadOnlyFirst.md index b3f4a17ea34ee..c3d41e7f8f46c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ReadOnlyFirst.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Bar** | **string** | | [optional] [readonly] -**Baz** | **string** | | [optional] +**Bar** | **string?** | | [optional] [readonly] +**Baz** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RequiredClass.md index 7f734db8a6183..2c00b36dce184 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RequiredClass.md @@ -7,43 +7,43 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | -**NotrequiredNullableStringProp** | **string** | | [optional] -**NotrequiredNotnullableStringProp** | **string** | | [optional] +**NotrequiredNullableStringProp** | **string?** | | [optional] +**NotrequiredNotnullableStringProp** | **string?** | | [optional] **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateOnly?** | | **RequiredNotNullableDateProp** | **DateOnly** | | **NotRequiredNullableDateProp** | **DateOnly?** | | [optional] -**NotRequiredNotnullableDateProp** | **DateOnly** | | [optional] +**NotRequiredNotnullableDateProp** | **DateOnly?** | | [optional] **RequiredNotnullableDatetimeProp** | **DateTime** | | **RequiredNullableDatetimeProp** | **DateTime?** | | **NotrequiredNullableDatetimeProp** | **DateTime?** | | [optional] -**NotrequiredNotnullableDatetimeProp** | **DateTime** | | [optional] +**NotrequiredNotnullableDatetimeProp** | **DateTime?** | | [optional] **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | -**NotrequiredNullableEnumString** | **string** | | [optional] -**NotrequiredNotnullableEnumString** | **string** | | [optional] +**NotrequiredNullableEnumString** | **string?** | | [optional] +**NotrequiredNotnullableEnumString** | **string?** | | [optional] **RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | **RequiredNotnullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | -**NotrequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] -**NotrequiredNotnullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] +**NotrequiredNullableOuterEnumDefaultValue** | [**OuterEnumDefaultValue?**](OuterEnumDefaultValue.md) | | [optional] +**NotrequiredNotnullableOuterEnumDefaultValue** | [**OuterEnumDefaultValue?**](OuterEnumDefaultValue.md) | | [optional] **RequiredNullableUuid** | **Guid?** | | **RequiredNotnullableUuid** | **Guid** | | **NotrequiredNullableUuid** | **Guid?** | | [optional] -**NotrequiredNotnullableUuid** | **Guid** | | [optional] +**NotrequiredNotnullableUuid** | **Guid?** | | [optional] **RequiredNullableArrayOfString** | **List<string>** | | **RequiredNotnullableArrayOfString** | **List<string>** | | **NotrequiredNullableArrayOfString** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Return.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Return.md index a10daf95cf1d0..3cc33993a8da8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Return.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Return.md @@ -5,10 +5,10 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] **Lock** | **string** | | **Abstract** | **string** | | -**Unsafe** | **string** | | [optional] +**Unsafe** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHash.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHash.md index 309b0c02615c6..e73788a32fb39 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHash.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHash.md @@ -5,8 +5,8 @@ Role report Hash Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RoleUuid** | **Guid** | | [optional] -**Role** | [**RolesReportsHashRole**](RolesReportsHashRole.md) | | [optional] +**RoleUuid** | **Guid?** | | [optional] +**Role** | [**RolesReportsHashRole?**](RolesReportsHashRole.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHashRole.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHashRole.md index 6f9affc24032a..8b9da914ec6c3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHashRole.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHashRole.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] +**Name** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/SpecialModelName.md index 7f8ffca34fa1b..50b87d981d57d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/SpecialModelName.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] -**VarSpecialModelName** | **string** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] +**VarSpecialModelName** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Tag.md index fdd22eb31fdd1..1f6ddf2cdbe59 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Tag.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Name** | **string** | | [optional] +**Id** | **long?** | | [optional] +**Name** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestCollectionEndingWithWordList.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestCollectionEndingWithWordList.md index 0e5568637b894..3e90bb8a3d6ca 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestCollectionEndingWithWordList.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestCollectionEndingWithWordList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Value** | **string** | | [optional] +**Value** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md index c1cf9ce2f812e..a2ebd09f076ba 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SomeProperty** | **string** | | [optional] +**SomeProperty** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/User.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/User.md index b0cd4dc042bfa..38d3987d7fc64 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/User.md @@ -4,18 +4,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Username** | **string** | | [optional] -**FirstName** | **string** | | [optional] -**LastName** | **string** | | [optional] -**Email** | **string** | | [optional] -**Password** | **string** | | [optional] -**Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] -**ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] -**ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] -**AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] -**AnyTypePropNullable** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional] +**Id** | **long?** | | [optional] +**Username** | **string?** | | [optional] +**FirstName** | **string?** | | [optional] +**LastName** | **string?** | | [optional] +**Email** | **string?** | | [optional] +**Password** | **string?** | | [optional] +**Phone** | **string?** | | [optional] +**UserStatus** | **int?** | User Status | [optional] +**ObjectWithNoDeclaredProps** | **Object?** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] +**ObjectWithNoDeclaredPropsNullable** | **Object?** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] +**AnyTypeProp** | **Object?** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] +**AnyTypePropNullable** | **Object?** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Whale.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Whale.md index 5fc3dc7f85c23..a1512d751e8ee 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Whale.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Zebra.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Zebra.md index 31e686adf0e74..4b4313ba5038c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Zebra.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Zebra.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | | [optional] +**Type** | **string?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ZeroBasedEnumClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ZeroBasedEnumClass.md index b804bc0d7fb4e..46002998b553d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ZeroBasedEnumClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ZeroBasedEnumClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ZeroBasedEnum** | **string** | | [optional] +**ZeroBasedEnum** | **string?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 61656615b1372..397d4376436a6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -47,13 +47,13 @@ public partial class ActivityOutputElementRepresentation : IEquatable [DataMember(Name = "prop1", EmitDefaultValue = false)] - public string Prop1 { get; set; } + public string? Prop1 { get; set; } /// /// Gets or Sets Prop2 /// [DataMember(Name = "prop2", EmitDefaultValue = false)] - public Object Prop2 { get; set; } + public Object? Prop2 { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 6f73dd2a107e3..f824825b4bee5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -71,19 +71,19 @@ public partial class AdditionalPropertiesClass : IEquatable [DataMember(Name = "anytype_1", EmitDefaultValue = true)] - public Object Anytype1 { get; set; } + public Object? Anytype1 { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesAnytype1 /// [DataMember(Name = "map_with_undeclared_properties_anytype_1", EmitDefaultValue = false)] - public Object MapWithUndeclaredPropertiesAnytype1 { get; set; } + public Object? MapWithUndeclaredPropertiesAnytype1 { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesAnytype2 /// [DataMember(Name = "map_with_undeclared_properties_anytype_2", EmitDefaultValue = false)] - public Object MapWithUndeclaredPropertiesAnytype2 { get; set; } + public Object? MapWithUndeclaredPropertiesAnytype2 { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesAnytype3 @@ -96,7 +96,7 @@ public partial class AdditionalPropertiesClass : IEquatable /// an object with no declared properties and no undeclared properties, hence it's an empty map. [DataMember(Name = "empty_map", EmitDefaultValue = false)] - public Object EmptyMap { get; set; } + public Object? EmptyMap { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesString diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index b11aff203a77d..9e8e675b975d1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -49,19 +49,19 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type /// [DataMember(Name = "type", EmitDefaultValue = false)] - public string Type { get; set; } + public string? Type { get; set; } /// /// Gets or Sets Message /// [DataMember(Name = "message", EmitDefaultValue = false)] - public string Message { get; set; } + public string? Message { get; set; } /// /// Returns the string presentation of the object @@ -116,7 +116,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 5d0bdb98c302f..35e26453f6278 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -49,19 +49,19 @@ public partial class Apple : IEquatable, IValidatableObject /// Gets or Sets Cultivar /// [DataMember(Name = "cultivar", EmitDefaultValue = false)] - public string Cultivar { get; set; } + public string? Cultivar { get; set; } /// /// Gets or Sets Origin /// [DataMember(Name = "origin", EmitDefaultValue = false)] - public string Origin { get; set; } + public string? Origin { get; set; } /// /// Gets or Sets ColorCode /// [DataMember(Name = "color_code", EmitDefaultValue = false)] - public string ColorCode { get; set; } + public string? ColorCode { get; set; } /// /// Returns the string presentation of the object @@ -140,7 +140,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { if (this.Cultivar != null) { - // Cultivar (string) pattern + // Cultivar (string?) pattern Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); if (!regexCultivar.Match(this.Cultivar).Success) { @@ -149,7 +149,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.Origin != null) { - // Origin (string) pattern + // Origin (string?) pattern Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); if (!regexOrigin.Match(this.Origin).Success) { @@ -158,7 +158,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.ColorCode != null) { - // ColorCode (string) pattern + // ColorCode (string?) pattern Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); if (!regexColorCode.Match(this.ColorCode).Success) { diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e30..67d2eecc4c26b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -63,7 +63,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -121,7 +121,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Banana.cs index dffda1bedc289..745a0aa11bfe1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -45,7 +45,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Returns the string presentation of the object @@ -98,7 +98,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80a..551074881d17a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -58,7 +58,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -113,7 +113,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 78a9791fcd6fe..47cedcae2caf5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -55,38 +55,38 @@ public partial class Capitalization : IEquatable, IValidatableOb /// Gets or Sets SmallCamel /// [DataMember(Name = "smallCamel", EmitDefaultValue = false)] - public string SmallCamel { get; set; } + public string? SmallCamel { get; set; } /// /// Gets or Sets CapitalCamel /// [DataMember(Name = "CapitalCamel", EmitDefaultValue = false)] - public string CapitalCamel { get; set; } + public string? CapitalCamel { get; set; } /// /// Gets or Sets SmallSnake /// [DataMember(Name = "small_Snake", EmitDefaultValue = false)] - public string SmallSnake { get; set; } + public string? SmallSnake { get; set; } /// /// Gets or Sets CapitalSnake /// [DataMember(Name = "Capital_Snake", EmitDefaultValue = false)] - public string CapitalSnake { get; set; } + public string? CapitalSnake { get; set; } /// /// Gets or Sets SCAETHFlowPoints /// [DataMember(Name = "SCA_ETH_Flow_Points", EmitDefaultValue = false)] - public string SCAETHFlowPoints { get; set; } + public string? SCAETHFlowPoints { get; set; } /// /// Name of the pet /// /// Name of the pet [DataMember(Name = "ATT_NAME", EmitDefaultValue = false)] - public string ATT_NAME { get; set; } + public string? ATT_NAME { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Cat.cs index c3e81b768d437..990318fbae146 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -53,7 +53,7 @@ protected Cat() { } /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Returns the string presentation of the object @@ -107,7 +107,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Category.cs index 85ea41da1a6c7..6a0063088076c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -57,7 +57,7 @@ protected Category() { } /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -117,7 +117,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 92f35a336bad5..a4ee7666678c5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -72,7 +72,7 @@ protected ChildCat() { } /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index f8060109b1a75..d3a21750afc90 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -45,7 +45,7 @@ public partial class ClassModel : IEquatable, IValidatableObject /// Gets or Sets Class /// [DataMember(Name = "_class", EmitDefaultValue = false)] - public string Class { get; set; } + public string? Class { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index f66839f5b4f07..4772c8172603c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -48,7 +48,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje Fri Jul 21 00:00:00 UTC 2017 */ [DataMember(Name = "dateOnlyProperty", EmitDefaultValue = false)] - public DateOnly DateOnlyProperty { get; set; } + public DateOnly? DateOnlyProperty { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index a852e8c459a15..fd8e7e4f4e36d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -45,7 +45,7 @@ public partial class DeprecatedObject : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 343a162cbf1c6..092edfae0c51c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -53,7 +53,7 @@ protected Dog() { } /// Gets or Sets Breed /// [DataMember(Name = "breed", EmitDefaultValue = false)] - public string Breed { get; set; } + public string? Breed { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 98c683539e6f0..03ade818aa1ad 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -52,19 +52,19 @@ public partial class Drawing : IEquatable, IValidatableObject /// Gets or Sets MainShape /// [DataMember(Name = "mainShape", EmitDefaultValue = false)] - public Shape MainShape { get; set; } + public Shape? MainShape { get; set; } /// /// Gets or Sets ShapeOrNull /// [DataMember(Name = "shapeOrNull", EmitDefaultValue = true)] - public ShapeOrNull ShapeOrNull { get; set; } + public ShapeOrNull? ShapeOrNull { get; set; } /// /// Gets or Sets NullableShape /// [DataMember(Name = "nullableShape", EmitDefaultValue = true)] - public NullableShape NullableShape { get; set; } + public NullableShape? NullableShape { get; set; } /// /// Gets or Sets Shapes diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index bf17521990cdf..35cdb452cadad 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -179,6 +179,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// @@ -223,30 +224,6 @@ public enum EnumNumberEnum /// [DataMember(Name = "enum_number", EmitDefaultValue = false)] public EnumNumberEnum? EnumNumber { get; set; } - - /// - /// Gets or Sets OuterEnum - /// - [DataMember(Name = "outerEnum", EmitDefaultValue = true)] - public OuterEnum? OuterEnum { get; set; } - - /// - /// Gets or Sets OuterEnumInteger - /// - [DataMember(Name = "outerEnumInteger", EmitDefaultValue = false)] - public OuterEnumInteger? OuterEnumInteger { get; set; } - - /// - /// Gets or Sets OuterEnumDefaultValue - /// - [DataMember(Name = "outerEnumDefaultValue", EmitDefaultValue = false)] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get; set; } - - /// - /// Gets or Sets OuterEnumIntegerDefaultValue - /// - [DataMember(Name = "outerEnumIntegerDefaultValue", EmitDefaultValue = false)] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get; set; } /// /// Initializes a new instance of the class. /// @@ -277,6 +254,30 @@ protected EnumTest() { } this.OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } + /// + /// Gets or Sets OuterEnum + /// + [DataMember(Name = "outerEnum", EmitDefaultValue = true)] + public OuterEnum? OuterEnum { get; set; } + + /// + /// Gets or Sets OuterEnumInteger + /// + [DataMember(Name = "outerEnumInteger", EmitDefaultValue = false)] + public OuterEnumInteger? OuterEnumInteger { get; set; } + + /// + /// Gets or Sets OuterEnumDefaultValue + /// + [DataMember(Name = "outerEnumDefaultValue", EmitDefaultValue = false)] + public OuterEnumDefaultValue? OuterEnumDefaultValue { get; set; } + + /// + /// Gets or Sets OuterEnumIntegerDefaultValue + /// + [DataMember(Name = "outerEnumIntegerDefaultValue", EmitDefaultValue = false)] + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get; set; } + /// /// Returns the string presentation of the object /// @@ -341,10 +342,22 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.EnumInteger.GetHashCode(); hashCode = (hashCode * 59) + this.EnumIntegerOnly.GetHashCode(); hashCode = (hashCode * 59) + this.EnumNumber.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnum.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnumInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnumDefaultValue.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnumIntegerDefaultValue.GetHashCode(); + if (this.OuterEnum != null) + { + hashCode = (hashCode * 59) + this.OuterEnum.GetHashCode(); + } + if (this.OuterEnumInteger != null) + { + hashCode = (hashCode * 59) + this.OuterEnumInteger.GetHashCode(); + } + if (this.OuterEnumDefaultValue != null) + { + hashCode = (hashCode * 59) + this.OuterEnumDefaultValue.GetHashCode(); + } + if (this.OuterEnumIntegerDefaultValue != null) + { + hashCode = (hashCode * 59) + this.OuterEnumIntegerDefaultValue.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/File.cs index 328601f24b6c2..60d2e560ccd47 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -46,7 +46,7 @@ public partial class File : IEquatable, IValidatableObject /// /// Test capitalization [DataMember(Name = "sourceURI", EmitDefaultValue = false)] - public string SourceURI { get; set; } + public string? SourceURI { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index d3f9f7cba7742..334dddf0eba09 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -47,7 +47,7 @@ public partial class FileSchemaTestClass : IEquatable, IVal /// Gets or Sets File /// [DataMember(Name = "file", EmitDefaultValue = false)] - public File File { get; set; } + public File? File { get; set; } /// /// Gets or Sets Files diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 3069deb125e70..2375775c32398 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -45,7 +45,7 @@ public partial class FooGetDefaultResponse : IEquatable, /// Gets or Sets String /// [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } + public Foo? String { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index fc3472412e575..cc3161e4a3294 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -106,61 +106,61 @@ protected FormatTest() { } /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets Int32Range /// [DataMember(Name = "int32Range", EmitDefaultValue = false)] - public int Int32Range { get; set; } + public int? Int32Range { get; set; } /// /// Gets or Sets Int64Positive /// [DataMember(Name = "int64Positive", EmitDefaultValue = false)] - public long Int64Positive { get; set; } + public long? Int64Positive { get; set; } /// /// Gets or Sets Int64Negative /// [DataMember(Name = "int64Negative", EmitDefaultValue = false)] - public long Int64Negative { get; set; } + public long? Int64Negative { get; set; } /// /// Gets or Sets Int64PositiveExclusive /// [DataMember(Name = "int64PositiveExclusive", EmitDefaultValue = false)] - public long Int64PositiveExclusive { get; set; } + public long? Int64PositiveExclusive { get; set; } /// /// Gets or Sets Int64NegativeExclusive /// [DataMember(Name = "int64NegativeExclusive", EmitDefaultValue = false)] - public long Int64NegativeExclusive { get; set; } + public long? Int64NegativeExclusive { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -172,25 +172,25 @@ protected FormatTest() { } /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String /// [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } + public string? String { get; set; } /// /// Gets or Sets Byte @@ -202,7 +202,7 @@ protected FormatTest() { } /// Gets or Sets Binary /// [DataMember(Name = "binary", EmitDefaultValue = false)] - public System.IO.Stream Binary { get; set; } + public System.IO.Stream? Binary { get; set; } /// /// Gets or Sets Date @@ -220,7 +220,7 @@ protected FormatTest() { } 2007-12-03T10:15:30+01:00 */ [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Uuid @@ -229,7 +229,7 @@ protected FormatTest() { } 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets Password @@ -242,21 +242,21 @@ protected FormatTest() { } /// /// A string that is a 10 digit number. Can have leading zeros. [DataMember(Name = "pattern_with_digits", EmitDefaultValue = false)] - public string PatternWithDigits { get; set; } + public string? PatternWithDigits { get; set; } /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [DataMember(Name = "pattern_with_digits_and_delimiter", EmitDefaultValue = false)] - public string PatternWithDigitsAndDelimiter { get; set; } + public string? PatternWithDigitsAndDelimiter { get; set; } /// /// None /// /// None [DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)] - public string PatternWithBackslash { get; set; } + public string? PatternWithBackslash { get; set; } /// /// Returns the string presentation of the object @@ -332,20 +332,59 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.Int32Range != null) + { + hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); + } + if (this.Int64Positive != null) + { + hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); + } + if (this.Int64Negative != null) + { + hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); + } + if (this.Int64PositiveExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); + } + if (this.Int64NegativeExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -397,74 +436,74 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // Int32Range (int) maximum - if (this.Int32Range > (int)2147483647) + // Int32Range (int?) maximum + if (this.Int32Range > (int?)2147483647) { yield return new ValidationResult("Invalid value for Int32Range, must be a value less than or equal to 2147483647.", new [] { "Int32Range" }); } - // Int32Range (int) minimum - if (this.Int32Range < (int)-2147483648) + // Int32Range (int?) minimum + if (this.Int32Range < (int?)-2147483648) { yield return new ValidationResult("Invalid value for Int32Range, must be a value greater than or equal to -2147483648.", new [] { "Int32Range" }); } - // Int64Positive (long) minimum - if (this.Int64Positive < (long)2147483648) + // Int64Positive (long?) minimum + if (this.Int64Positive < (long?)2147483648) { yield return new ValidationResult("Invalid value for Int64Positive, must be a value greater than or equal to 2147483648.", new [] { "Int64Positive" }); } - // Int64Negative (long) maximum - if (this.Int64Negative > (long)-2147483649) + // Int64Negative (long?) maximum + if (this.Int64Negative > (long?)-2147483649) { yield return new ValidationResult("Invalid value for Int64Negative, must be a value less than or equal to -2147483649.", new [] { "Int64Negative" }); } - // Int64PositiveExclusive (long) minimum - if (this.Int64PositiveExclusive < (long)2147483647) + // Int64PositiveExclusive (long?) minimum + if (this.Int64PositiveExclusive < (long?)2147483647) { yield return new ValidationResult("Invalid value for Int64PositiveExclusive, must be a value greater than 2147483647.", new [] { "Int64PositiveExclusive" }); } - // Int64NegativeExclusive (long) maximum - if (this.Int64NegativeExclusive <= (long)-2147483648) + // Int64NegativeExclusive (long?) maximum + if (this.Int64NegativeExclusive <= (long?)-2147483648) { yield return new ValidationResult("Invalid value for Int64NegativeExclusive, must be a value less than -2147483648.", new [] { "Int64NegativeExclusive" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -481,32 +520,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } if (this.String != null) { - // String (string) pattern + // String (string?) pattern Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); if (!regexString.Match(this.String).Success) { @@ -527,7 +566,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.PatternWithDigits != null) { - // PatternWithDigits (string) pattern + // PatternWithDigits (string?) pattern Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) { @@ -536,7 +575,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.PatternWithDigitsAndDelimiter != null) { - // PatternWithDigitsAndDelimiter (string) pattern + // PatternWithDigitsAndDelimiter (string?) pattern Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) { @@ -545,7 +584,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.PatternWithBackslash != null) { - // PatternWithBackslash (string) pattern + // PatternWithBackslash (string?) pattern Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) { diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 712d33733e8d3..8bb9ed3e69a47 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -44,7 +44,7 @@ public HasOnlyReadOnly() /// Gets or Sets Bar /// [DataMember(Name = "bar", EmitDefaultValue = false)] - public string Bar { get; private set; } + public string? Bar { get; private set; } /// /// Returns false as Bar should not be serialized given that it's read-only. @@ -58,7 +58,7 @@ public bool ShouldSerializeBar() /// Gets or Sets Foo /// [DataMember(Name = "foo", EmitDefaultValue = false)] - public string Foo { get; private set; } + public string? Foo { get; private set; } /// /// Returns false as Foo should not be serialized given that it's read-only. diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index ec05e7c4c85a4..c372186ee8562 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -45,7 +45,7 @@ public partial class HealthCheckResult : IEquatable, IValidat /// Gets or Sets NullableMessage /// [DataMember(Name = "NullableMessage", EmitDefaultValue = true)] - public string NullableMessage { get; set; } + public string? NullableMessage { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/List.cs index 67e6c5a616a17..1ed3afd2a3dcb 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -45,7 +45,7 @@ public partial class List : IEquatable, IValidatableObject /// Gets or Sets Var123List /// [DataMember(Name = "123-list", EmitDefaultValue = false)] - public string Var123List { get; set; } + public string? Var123List { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index 6dbe8fdadda5d..75bb377db76c0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -135,7 +135,7 @@ protected MixLog() { } /// Gets or Sets ShopId /// [DataMember(Name = "shopId", EmitDefaultValue = false)] - public Guid ShopId { get; set; } + public Guid? ShopId { get; set; } /// /// Gets or Sets TotalPrice @@ -178,109 +178,109 @@ protected MixLog() { } /// /// SomeCode is only required for color mixes [DataMember(Name = "someCode", EmitDefaultValue = true)] - public string SomeCode { get; set; } + public string? SomeCode { get; set; } /// /// Gets or Sets BatchNumber /// [DataMember(Name = "batchNumber", EmitDefaultValue = false)] - public string BatchNumber { get; set; } + public string? BatchNumber { get; set; } /// /// BrandCode is only required for non-color mixes /// /// BrandCode is only required for non-color mixes [DataMember(Name = "brandCode", EmitDefaultValue = false)] - public string BrandCode { get; set; } + public string? BrandCode { get; set; } /// /// BrandId is only required for color mixes /// /// BrandId is only required for color mixes [DataMember(Name = "brandId", EmitDefaultValue = false)] - public string BrandId { get; set; } + public string? BrandId { get; set; } /// /// BrandName is only required for color mixes /// /// BrandName is only required for color mixes [DataMember(Name = "brandName", EmitDefaultValue = false)] - public string BrandName { get; set; } + public string? BrandName { get; set; } /// /// CategoryCode is not used anymore /// /// CategoryCode is not used anymore [DataMember(Name = "categoryCode", EmitDefaultValue = false)] - public string CategoryCode { get; set; } + public string? CategoryCode { get; set; } /// /// Color is only required for color mixes /// /// Color is only required for color mixes [DataMember(Name = "color", EmitDefaultValue = false)] - public string Color { get; set; } + public string? Color { get; set; } /// /// Gets or Sets ColorDescription /// [DataMember(Name = "colorDescription", EmitDefaultValue = false)] - public string ColorDescription { get; set; } + public string? ColorDescription { get; set; } /// /// Gets or Sets Comment /// [DataMember(Name = "comment", EmitDefaultValue = false)] - public string Comment { get; set; } + public string? Comment { get; set; } /// /// Gets or Sets CommercialProductCode /// [DataMember(Name = "commercialProductCode", EmitDefaultValue = false)] - public string CommercialProductCode { get; set; } + public string? CommercialProductCode { get; set; } /// /// ProductLineCode is only required for color mixes /// /// ProductLineCode is only required for color mixes [DataMember(Name = "productLineCode", EmitDefaultValue = false)] - public string ProductLineCode { get; set; } + public string? ProductLineCode { get; set; } /// /// Gets or Sets Country /// [DataMember(Name = "country", EmitDefaultValue = false)] - public string Country { get; set; } + public string? Country { get; set; } /// /// Gets or Sets CreatedBy /// [DataMember(Name = "createdBy", EmitDefaultValue = false)] - public string CreatedBy { get; set; } + public string? CreatedBy { get; set; } /// /// Gets or Sets CreatedByFirstName /// [DataMember(Name = "createdByFirstName", EmitDefaultValue = false)] - public string CreatedByFirstName { get; set; } + public string? CreatedByFirstName { get; set; } /// /// Gets or Sets CreatedByLastName /// [DataMember(Name = "createdByLastName", EmitDefaultValue = false)] - public string CreatedByLastName { get; set; } + public string? CreatedByLastName { get; set; } /// /// Gets or Sets DeltaECalculationRepaired /// [DataMember(Name = "deltaECalculationRepaired", EmitDefaultValue = false)] - public string DeltaECalculationRepaired { get; set; } + public string? DeltaECalculationRepaired { get; set; } /// /// Gets or Sets DeltaECalculationSprayout /// [DataMember(Name = "deltaECalculationSprayout", EmitDefaultValue = false)] - public string DeltaECalculationSprayout { get; set; } + public string? DeltaECalculationSprayout { get; set; } /// /// Gets or Sets OwnColorVariantNumber @@ -292,27 +292,27 @@ protected MixLog() { } /// Gets or Sets PrimerProductId /// [DataMember(Name = "primerProductId", EmitDefaultValue = false)] - public string PrimerProductId { get; set; } + public string? PrimerProductId { get; set; } /// /// ProductId is only required for color mixes /// /// ProductId is only required for color mixes [DataMember(Name = "productId", EmitDefaultValue = false)] - public string ProductId { get; set; } + public string? ProductId { get; set; } /// /// ProductName is only required for color mixes /// /// ProductName is only required for color mixes [DataMember(Name = "productName", EmitDefaultValue = false)] - public string ProductName { get; set; } + public string? ProductName { get; set; } /// /// Gets or Sets SelectedVersionIndex /// [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)] - public int SelectedVersionIndex { get; set; } + public int? SelectedVersionIndex { get; set; } /// /// Returns the string presentation of the object @@ -508,7 +508,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ProductName.GetHashCode(); } - hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + if (this.SelectedVersionIndex != null) + { + hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 9d7d88aea93fc..450587d1b5275 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -45,7 +45,7 @@ public partial class MixedAnyOf : IEquatable, IValidatableObject /// Gets or Sets Content /// [DataMember(Name = "content", EmitDefaultValue = false)] - public MixedAnyOfContent Content { get; set; } + public MixedAnyOfContent? Content { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2cb289fae1782..7c519987740a0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -45,7 +45,7 @@ public partial class MixedOneOf : IEquatable, IValidatableObject /// Gets or Sets Content /// [DataMember(Name = "content", EmitDefaultValue = false)] - public MixedOneOfContent Content { get; set; } + public MixedOneOfContent? Content { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index f081d28195905..c3b6808b3250e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -51,19 +51,19 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable [DataMember(Name = "uuid_with_pattern", EmitDefaultValue = false)] - public Guid UuidWithPattern { get; set; } + public Guid? UuidWithPattern { get; set; } /// /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets DateTime /// [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Map @@ -153,7 +153,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { if (this.UuidWithPattern != null) { - // UuidWithPattern (Guid) pattern + // UuidWithPattern (Guid?) pattern Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) { diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index c56e0ada331ad..52d85bc18ce2e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -45,7 +45,7 @@ public partial class MixedSubId : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + public string? Id { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 11efe092a28b3..ab1774f2687cf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -47,13 +47,13 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class /// [DataMember(Name = "class", EmitDefaultValue = false)] - public string Class { get; set; } + public string? Class { get; set; } /// /// Returns the string presentation of the object @@ -107,7 +107,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 7b75059cad1bc..efbba684091cc 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -45,7 +45,7 @@ public partial class ModelClient : IEquatable, IValidatableObject /// Gets or Sets VarClient /// [DataMember(Name = "client", EmitDefaultValue = false)] - public string VarClient { get; set; } + public string? VarClient { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Name.cs index 2021a0066590d..48f636977b2a4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -58,7 +58,7 @@ protected Name() { } /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -72,13 +72,13 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Property /// [DataMember(Name = "property", EmitDefaultValue = false)] - public string Property { get; set; } + public string? Property { get; set; } /// /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -143,12 +143,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index c8fda56e43036..abd9d32c2b269 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -86,7 +86,7 @@ public partial class NullableClass : IEquatable, IValidatableObje /// Gets or Sets StringProp /// [DataMember(Name = "string_prop", EmitDefaultValue = true)] - public string StringProp { get; set; } + public string? StringProp { get; set; } /// /// Gets or Sets DateProp diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index f38cf7d6affee..9a21c0ebc1c2c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -48,7 +48,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Returns the string presentation of the object @@ -101,7 +101,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index e2f9be14b2e62..56bfa30f02365 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -51,21 +51,21 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "uuid", EmitDefaultValue = false)] - public string Uuid { get; set; } + public string? Uuid { get; set; } /// /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef /// [DataMember(Name = "deprecatedRef", EmitDefaultValue = false)] [Obsolete] - public DeprecatedObject DeprecatedRef { get; set; } + public DeprecatedObject? DeprecatedRef { get; set; } /// /// Gets or Sets Bars @@ -132,7 +132,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Order.cs index 54e252b2feb26..7593aa13c6c4b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -88,19 +88,19 @@ public enum StatusEnum /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate @@ -109,7 +109,7 @@ public enum StatusEnum 2020-02-02T20:20:20.000222Z */ [DataMember(Name = "shipDate", EmitDefaultValue = false)] - public DateTime ShipDate { get; set; } + public DateTime? ShipDate { get; set; } /// /// Gets or Sets Complete @@ -173,9 +173,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 1a8d974b060fd..2fa00f4465f5a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -49,19 +49,19 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString /// [DataMember(Name = "my_string", EmitDefaultValue = false)] - public string MyString { get; set; } + public string? MyString { get; set; } /// /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Returns the string presentation of the object @@ -116,12 +116,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 51b091ba5106e..e4623d43b0400 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -103,13 +103,13 @@ protected Pet() { } /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category /// [DataMember(Name = "category", EmitDefaultValue = false)] - public Category Category { get; set; } + public Category? Category { get; set; } /// /// Gets or Sets Name @@ -188,7 +188,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 7551b621ebd84..c7f14fff4eb6b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -45,7 +45,7 @@ public partial class ReadOnlyFirst : IEquatable, IValidatableObje /// Gets or Sets Bar /// [DataMember(Name = "bar", EmitDefaultValue = false)] - public string Bar { get; private set; } + public string? Bar { get; private set; } /// /// Returns false as Bar should not be serialized given that it's read-only. @@ -59,7 +59,7 @@ public bool ShouldSerializeBar() /// Gets or Sets Baz /// [DataMember(Name = "baz", EmitDefaultValue = false)] - public string Baz { get; set; } + public string? Baz { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index ea386b3a0c54a..1df1019694a82 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -466,18 +467,6 @@ public enum NotrequiredNotnullableEnumStringEnum /// [DataMember(Name = "required_notnullable_outerEnumDefaultValue", IsRequired = true, EmitDefaultValue = true)] public OuterEnumDefaultValue RequiredNotnullableOuterEnumDefaultValue { get; set; } - - /// - /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue - /// - [DataMember(Name = "notrequired_nullable_outerEnumDefaultValue", EmitDefaultValue = true)] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get; set; } - - /// - /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue - /// - [DataMember(Name = "notrequired_notnullable_outerEnumDefaultValue", EmitDefaultValue = false)] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get; set; } /// /// Initializes a new instance of the class. /// @@ -645,7 +634,7 @@ protected RequiredClass() { } /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -663,13 +652,13 @@ protected RequiredClass() { } /// Gets or Sets NotrequiredNullableStringProp /// [DataMember(Name = "notrequired_nullable_string_prop", EmitDefaultValue = true)] - public string NotrequiredNullableStringProp { get; set; } + public string? NotrequiredNullableStringProp { get; set; } /// /// Gets or Sets NotrequiredNotnullableStringProp /// [DataMember(Name = "notrequired_notnullable_string_prop", EmitDefaultValue = false)] - public string NotrequiredNotnullableStringProp { get; set; } + public string? NotrequiredNotnullableStringProp { get; set; } /// /// Gets or Sets RequiredNullableBooleanProp @@ -693,7 +682,7 @@ protected RequiredClass() { } /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -717,7 +706,7 @@ protected RequiredClass() { } /// Gets or Sets NotRequiredNotnullableDateProp /// [DataMember(Name = "not_required_notnullable_date_prop", EmitDefaultValue = false)] - public DateOnly NotRequiredNotnullableDateProp { get; set; } + public DateOnly? NotRequiredNotnullableDateProp { get; set; } /// /// Gets or Sets RequiredNotnullableDatetimeProp @@ -741,7 +730,19 @@ protected RequiredClass() { } /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [DataMember(Name = "notrequired_notnullable_datetime_prop", EmitDefaultValue = false)] - public DateTime NotrequiredNotnullableDatetimeProp { get; set; } + public DateTime? NotrequiredNotnullableDatetimeProp { get; set; } + + /// + /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue + /// + [DataMember(Name = "notrequired_nullable_outerEnumDefaultValue", EmitDefaultValue = true)] + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get; set; } + + /// + /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue + /// + [DataMember(Name = "notrequired_notnullable_outerEnumDefaultValue", EmitDefaultValue = false)] + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get; set; } /// /// Gets or Sets RequiredNullableUuid @@ -777,7 +778,7 @@ protected RequiredClass() { } 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [DataMember(Name = "notrequired_notnullable_uuid", EmitDefaultValue = false)] - public Guid NotrequiredNotnullableUuid { get; set; } + public Guid? NotrequiredNotnullableUuid { get; set; } /// /// Gets or Sets RequiredNullableArrayOfString @@ -906,7 +907,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -932,7 +936,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); @@ -979,8 +986,14 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.NotrequiredNotnullableEnumString.GetHashCode(); hashCode = (hashCode * 59) + this.RequiredNullableOuterEnumDefaultValue.GetHashCode(); hashCode = (hashCode * 59) + this.RequiredNotnullableOuterEnumDefaultValue.GetHashCode(); - hashCode = (hashCode * 59) + this.NotrequiredNullableOuterEnumDefaultValue.GetHashCode(); - hashCode = (hashCode * 59) + this.NotrequiredNotnullableOuterEnumDefaultValue.GetHashCode(); + if (this.NotrequiredNullableOuterEnumDefaultValue != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNullableOuterEnumDefaultValue.GetHashCode(); + } + if (this.NotrequiredNotnullableOuterEnumDefaultValue != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableOuterEnumDefaultValue.GetHashCode(); + } if (this.RequiredNullableUuid != null) { hashCode = (hashCode * 59) + this.RequiredNullableUuid.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Return.cs index 9d08c25bbd0f1..e1b01834583be 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -66,7 +66,7 @@ protected Return() { } /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets Lock @@ -84,7 +84,7 @@ protected Return() { } /// Gets or Sets Unsafe /// [DataMember(Name = "unsafe", EmitDefaultValue = false)] - public string Unsafe { get; set; } + public string? Unsafe { get; set; } /// /// Returns the string presentation of the object @@ -140,7 +140,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.Lock != null) { hashCode = (hashCode * 59) + this.Lock.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index ebe5562ffe67e..be7f1fa1b7445 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -47,13 +47,13 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// Gets or Sets RoleUuid /// [DataMember(Name = "role_uuid", EmitDefaultValue = false)] - public Guid RoleUuid { get; set; } + public Guid? RoleUuid { get; set; } /// /// Gets or Sets Role /// [DataMember(Name = "role", EmitDefaultValue = false)] - public RolesReportsHashRole Role { get; set; } + public RolesReportsHashRole? Role { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 60e2f9e50c074..77378b9fd5e88 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -45,7 +45,7 @@ public partial class RolesReportsHashRole : IEquatable, IV /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 867d43acaf4ca..84d34b5a1f616 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -47,13 +47,13 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName /// [DataMember(Name = "_special_model.name_", EmitDefaultValue = false)] - public string VarSpecialModelName { get; set; } + public string? VarSpecialModelName { get; set; } /// /// Returns the string presentation of the object @@ -107,7 +107,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Tag.cs index a9dd75cb5cbdb..51da73d95177e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -47,13 +47,13 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object @@ -107,7 +107,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index bb23b1f52456a..37845f87df11b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -45,7 +45,7 @@ public partial class TestCollectionEndingWithWordList : IEquatable [DataMember(Name = "value", EmitDefaultValue = false)] - public string Value { get; set; } + public string? Value { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 457b88ac9c744..d43a9a31babb5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -46,7 +46,7 @@ public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable< /// Gets or Sets SomeProperty /// [DataMember(Name = "someProperty", EmitDefaultValue = false)] - public string SomeProperty { get; set; } + public string? SomeProperty { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/User.cs index 0b1913457735b..20816334774c7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -67,78 +67,78 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username /// [DataMember(Name = "username", EmitDefaultValue = false)] - public string Username { get; set; } + public string? Username { get; set; } /// /// Gets or Sets FirstName /// [DataMember(Name = "firstName", EmitDefaultValue = false)] - public string FirstName { get; set; } + public string? FirstName { get; set; } /// /// Gets or Sets LastName /// [DataMember(Name = "lastName", EmitDefaultValue = false)] - public string LastName { get; set; } + public string? LastName { get; set; } /// /// Gets or Sets Email /// [DataMember(Name = "email", EmitDefaultValue = false)] - public string Email { get; set; } + public string? Email { get; set; } /// /// Gets or Sets Password /// [DataMember(Name = "password", EmitDefaultValue = false)] - public string Password { get; set; } + public string? Password { get; set; } /// /// Gets or Sets Phone /// [DataMember(Name = "phone", EmitDefaultValue = false)] - public string Phone { get; set; } + public string? Phone { get; set; } /// /// User Status /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [DataMember(Name = "objectWithNoDeclaredProps", EmitDefaultValue = false)] - public Object ObjectWithNoDeclaredProps { get; set; } + public Object? ObjectWithNoDeclaredProps { get; set; } /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [DataMember(Name = "objectWithNoDeclaredPropsNullable", EmitDefaultValue = true)] - public Object ObjectWithNoDeclaredPropsNullable { get; set; } + public Object? ObjectWithNoDeclaredPropsNullable { get; set; } /// /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 /// /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 [DataMember(Name = "anyTypeProp", EmitDefaultValue = true)] - public Object AnyTypeProp { get; set; } + public Object? AnyTypeProp { get; set; } /// /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. /// /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. [DataMember(Name = "anyTypePropNullable", EmitDefaultValue = true)] - public Object AnyTypePropNullable { get; set; } + public Object? AnyTypePropNullable { get; set; } /// /// Returns the string presentation of the object @@ -202,7 +202,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -227,7 +230,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Whale.cs index cd6eb8c0b1be6..a13202366aaf6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -59,13 +59,13 @@ protected Whale() { } /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -126,8 +126,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/docs/NowGet200Response.md b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/docs/NowGet200Response.md index 932034b2af2d7..462d3fa0dc701 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/docs/NowGet200Response.md +++ b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/docs/NowGet200Response.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Today** | **DateTime** | | [optional] -**Now** | **DateTime** | | [optional] +**Today** | **DateTime?** | | [optional] +**Now** | **DateTime?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 84c9909059abf..31e8171b2c0af 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -47,13 +47,13 @@ public partial class NowGet200Response : IValidatableObject /// [DataMember(Name = "today", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime Today { get; set; } + public DateTime? Today { get; set; } /// /// Gets or Sets Now /// [DataMember(Name = "now", EmitDefaultValue = false)] - public DateTime Now { get; set; } + public DateTime? Now { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ApiResponse.md index bb723d2baa13c..faacf536f1734 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/AppleReq.md index 005b8f8058a40..bb7b7576dc2ec 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/AppleReq.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Banana.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Banana.md index 226952d1cecb0..72cbdcf0af0b5 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Banana.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/BananaReq.md index f99aab99e387c..2bf39b773a66f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/BananaReq.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Cat.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Cat.md index aa1ac17604eb4..d41c6ec6eb65d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Cat.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Category.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Category.md index 032a1faeb3ffd..bdbe5ac5a4830 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/EnumTest.md index 5ce3c4addd9b7..66cc8c6d245ef 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FormatTest.md index 1b12163e9a6ab..e7ae81c3c760e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FormatTest.md @@ -4,20 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**Int32Range** | **int** | | [optional] -**Int64Positive** | **long** | | [optional] -**Int64Negative** | **long** | | [optional] -**Int64PositiveExclusive** | **long** | | [optional] -**Int64NegativeExclusive** | **long** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**Int32Range** | **int?** | | [optional] +**Int64Positive** | **long?** | | [optional] +**Int64Negative** | **long?** | | [optional] +**Int64PositiveExclusive** | **long?** | | [optional] +**Int64NegativeExclusive** | **long?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Fruit.md index 40df92d7c9b19..05aed3a2642ba 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FruitReq.md index 5db6b0e2d1d80..8f072a324cb06 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FruitReq.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/GmFruit.md index da7b3a6ccf9f0..265348eca479d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Mammal.md index aab8f4db9c75d..75172cd3d506b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixLog.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixLog.md index 1872e30daaa3f..ae8546abe1273 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixLog.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixLog.md @@ -35,7 +35,7 @@ Name | Type | Description | Notes **PrimerProductId** | **string** | | [optional] **ProductId** | **string** | ProductId is only required for color mixes | [optional] **ProductName** | **string** | ProductName is only required for color mixes | [optional] -**SelectedVersionIndex** | **int** | | [optional] +**SelectedVersionIndex** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Model200Response.md index 31f4d86fe43de..820f058bf221e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Name.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Name.md index 3e19db154a805..e440a45f0ae18 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Name.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/NumberOnly.md index 14a7c0f1071b5..1af131f829ec8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b8..20391539c912c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Order.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Order.md index 66c55c3b47379..c5d9f28ccc02f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Order.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/OuterComposite.md index eb42bcc1aaa46..71ca9b879223d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Pet.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Pet.md index c7224764e2d4f..a54829f9a8e22 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/RequiredClass.md index 07b6f018f6c17..2ec1d6949ba0c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] @@ -27,11 +27,11 @@ Name | Type | Description | Notes **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Return.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Return.md index a10daf95cf1d0..d554c7612cbe6 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Return.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] **Lock** | **string** | | **Abstract** | **string** | | **Unsafe** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/SpecialModelName.md index 7f8ffca34fa1b..6d9805d03479c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Tag.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Tag.md index fdd22eb31fdd1..f86abfc26e025 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/User.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/User.md index b0cd4dc042bfa..da9b34219d845 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Whale.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Whale.md index 5fc3dc7f85c23..a1512d751e8ee 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Whale.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ApiResponse.cs index 440c5810db569..b050cc9b33cb2 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -62,7 +62,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code + public int? Code { get{ return _Code;} set @@ -71,7 +71,7 @@ public int Code _flagCode = true; } } - private int _Code; + private int? _Code; private bool _flagCode; /// @@ -190,7 +190,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AppleReq.cs index 02fb11509662d..68b909a78e766 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AppleReq.cs @@ -85,7 +85,7 @@ public bool ShouldSerializeCultivar() /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy + public bool? Mealy { get{ return _Mealy;} set @@ -94,7 +94,7 @@ public bool Mealy _flagMealy = true; } } - private bool _Mealy; + private bool? _Mealy; private bool _flagMealy; /// @@ -161,7 +161,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Banana.cs index cc328cf2d95e9..c4ea98f514e21 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Banana.cs @@ -50,7 +50,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm + public decimal? LengthCm { get{ return _LengthCm;} set @@ -59,7 +59,7 @@ public decimal LengthCm _flagLengthCm = true; } } - private decimal _LengthCm; + private decimal? _LengthCm; private bool _flagLengthCm; /// @@ -128,7 +128,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BananaReq.cs index 163080fc7a5b4..70176d97cec28 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BananaReq.cs @@ -80,7 +80,7 @@ public bool ShouldSerializeLengthCm() /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet + public bool? Sweet { get{ return _Sweet;} set @@ -89,7 +89,7 @@ public bool Sweet _flagSweet = true; } } - private bool _Sweet; + private bool? _Sweet; private bool _flagSweet; /// @@ -153,7 +153,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Cat.cs index 83b09df72770b..3eafddf2de010 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Cat.cs @@ -61,7 +61,7 @@ protected Cat() /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed + public bool? Declawed { get{ return _Declawed;} set @@ -70,7 +70,7 @@ public bool Declawed _flagDeclawed = true; } } - private bool _Declawed; + private bool? _Declawed; private bool _flagDeclawed; /// @@ -140,7 +140,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Category.cs index fb7f24b243f5a..b3556ea03c12c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Category.cs @@ -65,7 +65,7 @@ protected Category() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id + public long? Id { get{ return _Id;} set @@ -74,7 +74,7 @@ public long Id _flagId = true; } } - private long _Id; + private long? _Id; private bool _flagId; /// @@ -168,7 +168,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs index 8f0ea67b780fd..311090f368357 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs @@ -239,6 +239,7 @@ public bool ShouldSerializeEnumInteger() /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs index 4c576118fb1e9..e0d2506035dd1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs @@ -190,7 +190,7 @@ protected FormatTest() /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer + public int? Integer { get{ return _Integer;} set @@ -199,7 +199,7 @@ public int Integer _flagInteger = true; } } - private int _Integer; + private int? _Integer; private bool _flagInteger; /// @@ -214,7 +214,7 @@ public bool ShouldSerializeInteger() /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 + public int? Int32 { get{ return _Int32;} set @@ -223,7 +223,7 @@ public int Int32 _flagInt32 = true; } } - private int _Int32; + private int? _Int32; private bool _flagInt32; /// @@ -238,7 +238,7 @@ public bool ShouldSerializeInt32() /// Gets or Sets Int32Range /// [DataMember(Name = "int32Range", EmitDefaultValue = false)] - public int Int32Range + public int? Int32Range { get{ return _Int32Range;} set @@ -247,7 +247,7 @@ public int Int32Range _flagInt32Range = true; } } - private int _Int32Range; + private int? _Int32Range; private bool _flagInt32Range; /// @@ -262,7 +262,7 @@ public bool ShouldSerializeInt32Range() /// Gets or Sets Int64Positive /// [DataMember(Name = "int64Positive", EmitDefaultValue = false)] - public long Int64Positive + public long? Int64Positive { get{ return _Int64Positive;} set @@ -271,7 +271,7 @@ public long Int64Positive _flagInt64Positive = true; } } - private long _Int64Positive; + private long? _Int64Positive; private bool _flagInt64Positive; /// @@ -286,7 +286,7 @@ public bool ShouldSerializeInt64Positive() /// Gets or Sets Int64Negative /// [DataMember(Name = "int64Negative", EmitDefaultValue = false)] - public long Int64Negative + public long? Int64Negative { get{ return _Int64Negative;} set @@ -295,7 +295,7 @@ public long Int64Negative _flagInt64Negative = true; } } - private long _Int64Negative; + private long? _Int64Negative; private bool _flagInt64Negative; /// @@ -310,7 +310,7 @@ public bool ShouldSerializeInt64Negative() /// Gets or Sets Int64PositiveExclusive /// [DataMember(Name = "int64PositiveExclusive", EmitDefaultValue = false)] - public long Int64PositiveExclusive + public long? Int64PositiveExclusive { get{ return _Int64PositiveExclusive;} set @@ -319,7 +319,7 @@ public long Int64PositiveExclusive _flagInt64PositiveExclusive = true; } } - private long _Int64PositiveExclusive; + private long? _Int64PositiveExclusive; private bool _flagInt64PositiveExclusive; /// @@ -334,7 +334,7 @@ public bool ShouldSerializeInt64PositiveExclusive() /// Gets or Sets Int64NegativeExclusive /// [DataMember(Name = "int64NegativeExclusive", EmitDefaultValue = false)] - public long Int64NegativeExclusive + public long? Int64NegativeExclusive { get{ return _Int64NegativeExclusive;} set @@ -343,7 +343,7 @@ public long Int64NegativeExclusive _flagInt64NegativeExclusive = true; } } - private long _Int64NegativeExclusive; + private long? _Int64NegativeExclusive; private bool _flagInt64NegativeExclusive; /// @@ -358,7 +358,7 @@ public bool ShouldSerializeInt64NegativeExclusive() /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger + public uint? UnsignedInteger { get{ return _UnsignedInteger;} set @@ -367,7 +367,7 @@ public uint UnsignedInteger _flagUnsignedInteger = true; } } - private uint _UnsignedInteger; + private uint? _UnsignedInteger; private bool _flagUnsignedInteger; /// @@ -382,7 +382,7 @@ public bool ShouldSerializeUnsignedInteger() /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 + public long? Int64 { get{ return _Int64;} set @@ -391,7 +391,7 @@ public long Int64 _flagInt64 = true; } } - private long _Int64; + private long? _Int64; private bool _flagInt64; /// @@ -406,7 +406,7 @@ public bool ShouldSerializeInt64() /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong + public ulong? UnsignedLong { get{ return _UnsignedLong;} set @@ -415,7 +415,7 @@ public ulong UnsignedLong _flagUnsignedLong = true; } } - private ulong _UnsignedLong; + private ulong? _UnsignedLong; private bool _flagUnsignedLong; /// @@ -454,7 +454,7 @@ public bool ShouldSerializeNumber() /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float + public float? Float { get{ return _Float;} set @@ -463,7 +463,7 @@ public float Float _flagFloat = true; } } - private float _Float; + private float? _Float; private bool _flagFloat; /// @@ -478,7 +478,7 @@ public bool ShouldSerializeFloat() /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double + public double? Double { get{ return _Double;} set @@ -487,7 +487,7 @@ public double Double _flagDouble = true; } } - private double _Double; + private double? _Double; private bool _flagDouble; /// @@ -502,7 +502,7 @@ public bool ShouldSerializeDouble() /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal + public decimal? Decimal { get{ return _Decimal;} set @@ -511,7 +511,7 @@ public decimal Decimal _flagDecimal = true; } } - private decimal _Decimal; + private decimal? _Decimal; private bool _flagDecimal; /// @@ -856,20 +856,59 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.Int32Range != null) + { + hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); + } + if (this.Int64Positive != null) + { + hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); + } + if (this.Int64Negative != null) + { + hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); + } + if (this.Int64PositiveExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); + } + if (this.Int64NegativeExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -925,74 +964,74 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // Int32Range (int) maximum - if (this.Int32Range > (int)2147483647) + // Int32Range (int?) maximum + if (this.Int32Range > (int?)2147483647) { yield return new ValidationResult("Invalid value for Int32Range, must be a value less than or equal to 2147483647.", new [] { "Int32Range" }); } - // Int32Range (int) minimum - if (this.Int32Range < (int)-2147483648) + // Int32Range (int?) minimum + if (this.Int32Range < (int?)-2147483648) { yield return new ValidationResult("Invalid value for Int32Range, must be a value greater than or equal to -2147483648.", new [] { "Int32Range" }); } - // Int64Positive (long) minimum - if (this.Int64Positive < (long)2147483648) + // Int64Positive (long?) minimum + if (this.Int64Positive < (long?)2147483648) { yield return new ValidationResult("Invalid value for Int64Positive, must be a value greater than or equal to 2147483648.", new [] { "Int64Positive" }); } - // Int64Negative (long) maximum - if (this.Int64Negative > (long)-2147483649) + // Int64Negative (long?) maximum + if (this.Int64Negative > (long?)-2147483649) { yield return new ValidationResult("Invalid value for Int64Negative, must be a value less than or equal to -2147483649.", new [] { "Int64Negative" }); } - // Int64PositiveExclusive (long) minimum - if (this.Int64PositiveExclusive < (long)2147483647) + // Int64PositiveExclusive (long?) minimum + if (this.Int64PositiveExclusive < (long?)2147483647) { yield return new ValidationResult("Invalid value for Int64PositiveExclusive, must be a value greater than 2147483647.", new [] { "Int64PositiveExclusive" }); } - // Int64NegativeExclusive (long) maximum - if (this.Int64NegativeExclusive <= (long)-2147483648) + // Int64NegativeExclusive (long?) maximum + if (this.Int64NegativeExclusive <= (long?)-2147483648) { yield return new ValidationResult("Invalid value for Int64NegativeExclusive, must be a value less than -2147483648.", new [] { "Int64NegativeExclusive" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -1009,26 +1048,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs index a698b135146d0..036c272e5b4a5 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs @@ -970,7 +970,7 @@ public bool ShouldSerializeProductName() /// Gets or Sets SelectedVersionIndex /// [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)] - public int SelectedVersionIndex + public int? SelectedVersionIndex { get{ return _SelectedVersionIndex;} set @@ -979,7 +979,7 @@ public int SelectedVersionIndex _flagSelectedVersionIndex = true; } } - private int _SelectedVersionIndex; + private int? _SelectedVersionIndex; private bool _flagSelectedVersionIndex; /// @@ -1191,7 +1191,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ProductName.GetHashCode(); } - hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + if (this.SelectedVersionIndex != null) + { + hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs index 48815cd97300f..985c3967fc409 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs @@ -56,7 +56,7 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name + public int? Name { get{ return _Name;} set @@ -65,7 +65,7 @@ public int Name _flagName = true; } } - private int _Name; + private int? _Name; private bool _flagName; /// @@ -159,7 +159,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs index 8fa808d911cd8..d4b224c315dfd 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs @@ -84,7 +84,7 @@ public bool ShouldSerializeVarName() /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -122,7 +122,7 @@ public bool ShouldSerializeProperty() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -194,12 +194,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NumberOnly.cs index ce6120813dacb..fb075870f97f3 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -53,7 +53,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber + public decimal? JustNumber { get{ return _JustNumber;} set @@ -62,7 +62,7 @@ public decimal JustNumber _flagJustNumber = true; } } - private decimal _JustNumber; + private decimal? _JustNumber; private bool _flagJustNumber; /// @@ -131,7 +131,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 7f49455652723..994af2787c2c8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -93,7 +93,7 @@ public bool ShouldSerializeUuid() /// [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id + public decimal? Id { get{ return _Id;} set @@ -102,7 +102,7 @@ public decimal Id _flagId = true; } } - private decimal _Id; + private decimal? _Id; private bool _flagId; /// @@ -228,7 +228,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Order.cs index df74883777dee..270ad31505fc7 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Order.cs @@ -128,7 +128,7 @@ public bool ShouldSerializeStatus() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id + public long? Id { get{ return _Id;} set @@ -137,7 +137,7 @@ public long Id _flagId = true; } } - private long _Id; + private long? _Id; private bool _flagId; /// @@ -152,7 +152,7 @@ public bool ShouldSerializeId() /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId + public long? PetId { get{ return _PetId;} set @@ -161,7 +161,7 @@ public long PetId _flagPetId = true; } } - private long _PetId; + private long? _PetId; private bool _flagPetId; /// @@ -176,7 +176,7 @@ public bool ShouldSerializePetId() /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity + public int? Quantity { get{ return _Quantity;} set @@ -185,7 +185,7 @@ public int Quantity _flagQuantity = true; } } - private int _Quantity; + private int? _Quantity; private bool _flagQuantity; /// @@ -310,9 +310,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/OuterComposite.cs index 066dc26dbe150..543a719c5adaf 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -62,7 +62,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber + public decimal? MyNumber { get{ return _MyNumber;} set @@ -71,7 +71,7 @@ public decimal MyNumber _flagMyNumber = true; } } - private decimal _MyNumber; + private decimal? _MyNumber; private bool _flagMyNumber; /// @@ -110,7 +110,7 @@ public bool ShouldSerializeMyString() /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean + public bool? MyBoolean { get{ return _MyBoolean;} set @@ -119,7 +119,7 @@ public bool MyBoolean _flagMyBoolean = true; } } - private bool _MyBoolean; + private bool? _MyBoolean; private bool _flagMyBoolean; /// @@ -190,12 +190,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Pet.cs index 70938b71f8d86..218daeefe1d23 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Pet.cs @@ -143,7 +143,7 @@ protected Pet() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id + public long? Id { get{ return _Id;} set @@ -152,7 +152,7 @@ public long Id _flagId = true; } } - private long _Id; + private long? _Id; private bool _flagId; /// @@ -325,7 +325,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RequiredClass.cs index 2bad0ac611df1..9ec97321ee501 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -331,6 +331,7 @@ public bool ShouldSerializeNotrequiredNullableEnumIntegerOnly() /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -1111,7 +1112,7 @@ public bool ShouldSerializeNotRequiredNullableIntegerProp() /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp + public int? NotRequiredNotnullableintegerProp { get{ return _NotRequiredNotnullableintegerProp;} set @@ -1120,7 +1121,7 @@ public int NotRequiredNotnullableintegerProp _flagNotRequiredNotnullableintegerProp = true; } } - private int _NotRequiredNotnullableintegerProp; + private int? _NotRequiredNotnullableintegerProp; private bool _flagNotRequiredNotnullableintegerProp; /// @@ -1303,7 +1304,7 @@ public bool ShouldSerializeNotrequiredNullableBooleanProp() /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp + public bool? NotrequiredNotnullableBooleanProp { get{ return _NotrequiredNotnullableBooleanProp;} set @@ -1312,7 +1313,7 @@ public bool NotrequiredNotnullableBooleanProp _flagNotrequiredNotnullableBooleanProp = true; } } - private bool _NotrequiredNotnullableBooleanProp; + private bool? _NotrequiredNotnullableBooleanProp; private bool _flagNotrequiredNotnullableBooleanProp; /// @@ -1833,7 +1834,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -1859,7 +1863,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs index e255b357996ff..2597e57dfa8d3 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs @@ -78,7 +78,7 @@ protected Return() /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn + public int? VarReturn { get{ return _VarReturn;} set @@ -87,7 +87,7 @@ public int VarReturn _flagVarReturn = true; } } - private int _VarReturn; + private int? _VarReturn; private bool _flagVarReturn; /// @@ -231,7 +231,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.Lock != null) { hashCode = (hashCode * 59) + this.Lock.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs index 0a0faf3cba34b..54cc8a7f34772 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -56,7 +56,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName + public long? SpecialPropertyName { get{ return _SpecialPropertyName;} set @@ -65,7 +65,7 @@ public long SpecialPropertyName _flagSpecialPropertyName = true; } } - private long _SpecialPropertyName; + private long? _SpecialPropertyName; private bool _flagSpecialPropertyName; /// @@ -159,7 +159,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Tag.cs index b631ebc961608..a34e233c31bfb 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Tag.cs @@ -56,7 +56,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id + public long? Id { get{ return _Id;} set @@ -65,7 +65,7 @@ public long Id _flagId = true; } } - private long _Id; + private long? _Id; private bool _flagId; /// @@ -159,7 +159,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/User.cs index 21c819cf09ac9..1c5264b6ca30d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/User.cs @@ -116,7 +116,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id + public long? Id { get{ return _Id;} set @@ -125,7 +125,7 @@ public long Id _flagId = true; } } - private long _Id; + private long? _Id; private bool _flagId; /// @@ -285,7 +285,7 @@ public bool ShouldSerializePhone() /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus + public int? UserStatus { get{ return _UserStatus;} set @@ -294,7 +294,7 @@ public int UserStatus _flagUserStatus = true; } } - private int _UserStatus; + private int? _UserStatus; private bool _flagUserStatus; /// @@ -474,7 +474,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -499,7 +502,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Whale.cs index 24659725b63f2..8c83619d77ce1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Whale.cs @@ -71,7 +71,7 @@ protected Whale() /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen + public bool? HasBaleen { get{ return _HasBaleen;} set @@ -80,7 +80,7 @@ public bool HasBaleen _flagHasBaleen = true; } } - private bool _HasBaleen; + private bool? _HasBaleen; private bool _flagHasBaleen; /// @@ -95,7 +95,7 @@ public bool ShouldSerializeHasBaleen() /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth + public bool? HasTeeth { get{ return _HasTeeth;} set @@ -104,7 +104,7 @@ public bool HasTeeth _flagHasTeeth = true; } } - private bool _HasTeeth; + private bool? _HasTeeth; private bool _flagHasTeeth; /// @@ -199,8 +199,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ApiResponse.md index bb723d2baa13c..faacf536f1734 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/AppleReq.md index 005b8f8058a40..bb7b7576dc2ec 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/AppleReq.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Banana.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Banana.md index 226952d1cecb0..72cbdcf0af0b5 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Banana.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/BananaReq.md index f99aab99e387c..2bf39b773a66f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/BananaReq.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Cat.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Cat.md index aa1ac17604eb4..d41c6ec6eb65d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Cat.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Category.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Category.md index 032a1faeb3ffd..bdbe5ac5a4830 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/EnumTest.md index 5ce3c4addd9b7..66cc8c6d245ef 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FormatTest.md index c2144b5e3cf6b..9b6d809466c85 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FormatTest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Fruit.md index 40df92d7c9b19..05aed3a2642ba 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FruitReq.md index 5db6b0e2d1d80..8f072a324cb06 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FruitReq.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/GmFruit.md index da7b3a6ccf9f0..265348eca479d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Mammal.md index aab8f4db9c75d..75172cd3d506b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Model200Response.md index 31f4d86fe43de..820f058bf221e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Name.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Name.md index 3e19db154a805..e440a45f0ae18 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Name.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/NumberOnly.md index 14a7c0f1071b5..1af131f829ec8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b8..20391539c912c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Order.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Order.md index 66c55c3b47379..c5d9f28ccc02f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Order.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/OuterComposite.md index eb42bcc1aaa46..71ca9b879223d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Pet.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Pet.md index c7224764e2d4f..a54829f9a8e22 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/RequiredClass.md index 07b6f018f6c17..2ec1d6949ba0c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] @@ -27,11 +27,11 @@ Name | Type | Description | Notes **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Return.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Return.md index 052ac91900689..8eec641779307 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Return.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/SpecialModelName.md index 7f8ffca34fa1b..6d9805d03479c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Tag.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Tag.md index fdd22eb31fdd1..f86abfc26e025 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/User.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/User.md index b0cd4dc042bfa..da9b34219d845 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Whale.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Whale.md index 5fc3dc7f85c23..a1512d751e8ee 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Whale.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1fc..51772309eda82 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -50,7 +50,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -124,7 +124,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e30..67d2eecc4c26b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -63,7 +63,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -121,7 +121,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d0..64b9c31778d1e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -46,7 +46,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80a..551074881d17a 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -58,7 +58,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -113,7 +113,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index a52dd988da512..fc431e7b777dd 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -57,7 +57,7 @@ protected Cat() /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Gets or Sets additional properties @@ -118,7 +118,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs index 5edb4edfea4ad..6feda1e8c352e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -61,7 +61,7 @@ protected Category() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -128,7 +128,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 27d1193954eae..e7eef0d94a37b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -179,6 +179,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index a741277dd2738..a62831e607818 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -100,31 +100,31 @@ protected FormatTest() /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -136,19 +136,19 @@ protected FormatTest() /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String @@ -299,15 +299,39 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -363,38 +387,38 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -411,26 +435,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e7540..7b1c87bbe7da5 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -48,7 +48,7 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs index f34052aa706c6..69938e7b7c616 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -62,7 +62,7 @@ protected Name() /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -82,7 +82,7 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -154,12 +154,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 7218451d9fb06..ee2c09f6c83ea 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -49,7 +49,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Gets or Sets additional properties @@ -109,7 +109,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 76faa5154c86a..6c728b4770873 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -59,7 +59,7 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef @@ -140,7 +140,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index 4b8b7068fe046..818eb45eb7ec8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -89,19 +89,19 @@ public enum StatusEnum /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate @@ -181,9 +181,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 47d598a27e6f5..2470c13fdb606 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -50,7 +50,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString @@ -62,7 +62,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Gets or Sets additional properties @@ -124,12 +124,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e036d66bc8894..37b02216fb02b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -107,7 +107,7 @@ protected Pet() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -199,7 +199,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 8160c859b76eb..2ead3095aaa17 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -649,7 +650,7 @@ protected RequiredClass() /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -697,7 +698,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -921,7 +922,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -947,7 +951,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs index fec56c44fa82e..ac44065ab1b03 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -46,7 +46,7 @@ public partial class Return : IEquatable, IValidatableObject /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f1..d31817992fe26 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -48,7 +48,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 58eb2c605d15f..b8f4e20ed848b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -48,7 +48,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs index b7911507a7047..3371b44e43c15 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -68,7 +68,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -111,7 +111,7 @@ public partial class User : IEquatable, IValidatableObject /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. @@ -210,7 +210,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -235,7 +238,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 50119ed39e769..d242dc782d156 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -63,13 +63,13 @@ protected Whale() /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -137,8 +137,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ApiResponse.md index bb723d2baa13c..faacf536f1734 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/AppleReq.md index 005b8f8058a40..bb7b7576dc2ec 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/AppleReq.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Banana.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Banana.md index 226952d1cecb0..72cbdcf0af0b5 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Banana.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/BananaReq.md index f99aab99e387c..2bf39b773a66f 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/BananaReq.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Cat.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Cat.md index aa1ac17604eb4..d41c6ec6eb65d 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Cat.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Category.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Category.md index 032a1faeb3ffd..bdbe5ac5a4830 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Category.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/EnumTest.md index 5ce3c4addd9b7..66cc8c6d245ef 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/EnumTest.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FormatTest.md index 1b12163e9a6ab..e7ae81c3c760e 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FormatTest.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FormatTest.md @@ -4,20 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**Int32Range** | **int** | | [optional] -**Int64Positive** | **long** | | [optional] -**Int64Negative** | **long** | | [optional] -**Int64PositiveExclusive** | **long** | | [optional] -**Int64NegativeExclusive** | **long** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**Int32Range** | **int?** | | [optional] +**Int64Positive** | **long?** | | [optional] +**Int64Negative** | **long?** | | [optional] +**Int64PositiveExclusive** | **long?** | | [optional] +**Int64NegativeExclusive** | **long?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Fruit.md index 40df92d7c9b19..05aed3a2642ba 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Fruit.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FruitReq.md index 5db6b0e2d1d80..8f072a324cb06 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FruitReq.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/GmFruit.md index da7b3a6ccf9f0..265348eca479d 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/GmFruit.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Mammal.md index aab8f4db9c75d..75172cd3d506b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Mammal.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixLog.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixLog.md index 1872e30daaa3f..ae8546abe1273 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixLog.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixLog.md @@ -35,7 +35,7 @@ Name | Type | Description | Notes **PrimerProductId** | **string** | | [optional] **ProductId** | **string** | ProductId is only required for color mixes | [optional] **ProductName** | **string** | ProductName is only required for color mixes | [optional] -**SelectedVersionIndex** | **int** | | [optional] +**SelectedVersionIndex** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Model200Response.md index 31f4d86fe43de..820f058bf221e 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Model200Response.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Name.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Name.md index 3e19db154a805..e440a45f0ae18 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Name.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/NumberOnly.md index 14a7c0f1071b5..1af131f829ec8 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b8..20391539c912c 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Order.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Order.md index 66c55c3b47379..c5d9f28ccc02f 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Order.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Order.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/OuterComposite.md index eb42bcc1aaa46..71ca9b879223d 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Pet.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Pet.md index c7224764e2d4f..a54829f9a8e22 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Pet.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/RequiredClass.md index 07b6f018f6c17..2ec1d6949ba0c 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] @@ -27,11 +27,11 @@ Name | Type | Description | Notes **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Return.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Return.md index a10daf95cf1d0..d554c7612cbe6 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Return.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] **Lock** | **string** | | **Abstract** | **string** | | **Unsafe** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/SpecialModelName.md index 7f8ffca34fa1b..6d9805d03479c 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Tag.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Tag.md index fdd22eb31fdd1..f86abfc26e025 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Tag.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/User.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/User.md index b0cd4dc042bfa..da9b34219d845 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/User.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Whale.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Whale.md index 5fc3dc7f85c23..a1512d751e8ee 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Whale.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 4d83d2d347b5c..03816c3e9c909 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -47,7 +47,7 @@ public partial class ApiResponse : IEquatable /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -109,7 +109,8 @@ public bool Equals(ApiResponse input) return ( this.Code == input.Code || - this.Code.Equals(input.Code) + (this.Code != null && + this.Code.Equals(input.Code)) ) && ( this.Type == input.Type || @@ -132,7 +133,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 4b7a3084bd0ed..7b354a6e7062b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -61,7 +61,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -115,7 +115,8 @@ public bool Equals(AppleReq input) ) && ( this.Mealy == input.Mealy || - this.Mealy.Equals(input.Mealy) + (this.Mealy != null && + this.Mealy.Equals(input.Mealy)) ); } @@ -132,7 +133,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index b31a453f9e871..b27848069b780 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -43,7 +43,7 @@ public partial class Banana : IEquatable /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Returns the string presentation of the object @@ -91,7 +91,8 @@ public bool Equals(Banana input) return ( this.LengthCm == input.LengthCm || - this.LengthCm.Equals(input.LengthCm) + (this.LengthCm != null && + this.LengthCm.Equals(input.LengthCm)) ); } @@ -104,7 +105,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 2f73ada806c8e..4b1e84cd621f1 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -56,7 +56,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -109,7 +109,8 @@ public bool Equals(BananaReq input) ) && ( this.Sweet == input.Sweet || - this.Sweet.Equals(input.Sweet) + (this.Sweet != null && + this.Sweet.Equals(input.Sweet)) ); } @@ -123,7 +124,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 2d02542a5170f..ebd438c4d9021 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -50,7 +50,7 @@ protected Cat() { } /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Returns the string presentation of the object @@ -99,7 +99,8 @@ public bool Equals(Cat input) return base.Equals(input) && ( this.Declawed == input.Declawed || - this.Declawed.Equals(input.Declawed) + (this.Declawed != null && + this.Declawed.Equals(input.Declawed)) ); } @@ -112,7 +113,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs index 52680d66e365a..697a7a594171b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -55,7 +55,7 @@ protected Category() { } /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -110,7 +110,8 @@ public bool Equals(Category input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Name == input.Name || @@ -128,7 +129,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 627c8a3acd405..d15b45ac95d64 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -177,6 +177,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 5a287cd71827e..2e12f312fbb4b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -104,61 +104,61 @@ protected FormatTest() { } /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets Int32Range /// [DataMember(Name = "int32Range", EmitDefaultValue = false)] - public int Int32Range { get; set; } + public int? Int32Range { get; set; } /// /// Gets or Sets Int64Positive /// [DataMember(Name = "int64Positive", EmitDefaultValue = false)] - public long Int64Positive { get; set; } + public long? Int64Positive { get; set; } /// /// Gets or Sets Int64Negative /// [DataMember(Name = "int64Negative", EmitDefaultValue = false)] - public long Int64Negative { get; set; } + public long? Int64Negative { get; set; } /// /// Gets or Sets Int64PositiveExclusive /// [DataMember(Name = "int64PositiveExclusive", EmitDefaultValue = false)] - public long Int64PositiveExclusive { get; set; } + public long? Int64PositiveExclusive { get; set; } /// /// Gets or Sets Int64NegativeExclusive /// [DataMember(Name = "int64NegativeExclusive", EmitDefaultValue = false)] - public long Int64NegativeExclusive { get; set; } + public long? Int64NegativeExclusive { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -170,19 +170,19 @@ protected FormatTest() { } /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String @@ -326,43 +326,53 @@ public bool Equals(FormatTest input) return ( this.Integer == input.Integer || - this.Integer.Equals(input.Integer) + (this.Integer != null && + this.Integer.Equals(input.Integer)) ) && ( this.Int32 == input.Int32 || - this.Int32.Equals(input.Int32) + (this.Int32 != null && + this.Int32.Equals(input.Int32)) ) && ( this.Int32Range == input.Int32Range || - this.Int32Range.Equals(input.Int32Range) + (this.Int32Range != null && + this.Int32Range.Equals(input.Int32Range)) ) && ( this.Int64Positive == input.Int64Positive || - this.Int64Positive.Equals(input.Int64Positive) + (this.Int64Positive != null && + this.Int64Positive.Equals(input.Int64Positive)) ) && ( this.Int64Negative == input.Int64Negative || - this.Int64Negative.Equals(input.Int64Negative) + (this.Int64Negative != null && + this.Int64Negative.Equals(input.Int64Negative)) ) && ( this.Int64PositiveExclusive == input.Int64PositiveExclusive || - this.Int64PositiveExclusive.Equals(input.Int64PositiveExclusive) + (this.Int64PositiveExclusive != null && + this.Int64PositiveExclusive.Equals(input.Int64PositiveExclusive)) ) && ( this.Int64NegativeExclusive == input.Int64NegativeExclusive || - this.Int64NegativeExclusive.Equals(input.Int64NegativeExclusive) + (this.Int64NegativeExclusive != null && + this.Int64NegativeExclusive.Equals(input.Int64NegativeExclusive)) ) && ( this.UnsignedInteger == input.UnsignedInteger || - this.UnsignedInteger.Equals(input.UnsignedInteger) + (this.UnsignedInteger != null && + this.UnsignedInteger.Equals(input.UnsignedInteger)) ) && ( this.Int64 == input.Int64 || - this.Int64.Equals(input.Int64) + (this.Int64 != null && + this.Int64.Equals(input.Int64)) ) && ( this.UnsignedLong == input.UnsignedLong || - this.UnsignedLong.Equals(input.UnsignedLong) + (this.UnsignedLong != null && + this.UnsignedLong.Equals(input.UnsignedLong)) ) && ( this.Number == input.Number || @@ -370,15 +380,18 @@ public bool Equals(FormatTest input) ) && ( this.Float == input.Float || - this.Float.Equals(input.Float) + (this.Float != null && + this.Float.Equals(input.Float)) ) && ( this.Double == input.Double || - this.Double.Equals(input.Double) + (this.Double != null && + this.Double.Equals(input.Double)) ) && ( this.Decimal == input.Decimal || - this.Decimal.Equals(input.Decimal) + (this.Decimal != null && + this.Decimal.Equals(input.Decimal)) ) && ( this.String == input.String || @@ -441,20 +454,59 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.Int32Range != null) + { + hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); + } + if (this.Int64Positive != null) + { + hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); + } + if (this.Int64Negative != null) + { + hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); + } + if (this.Int64PositiveExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); + } + if (this.Int64NegativeExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index dfc02b8315c4c..e80c086e2f5c2 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -310,7 +310,7 @@ protected MixLog() { } /// Gets or Sets SelectedVersionIndex /// [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)] - public int SelectedVersionIndex { get; set; } + public int? SelectedVersionIndex { get; set; } /// /// Returns the string presentation of the object @@ -540,7 +540,8 @@ public bool Equals(MixLog input) ) && ( this.SelectedVersionIndex == input.SelectedVersionIndex || - this.SelectedVersionIndex.Equals(input.SelectedVersionIndex) + (this.SelectedVersionIndex != null && + this.SelectedVersionIndex.Equals(input.SelectedVersionIndex)) ); } @@ -665,7 +666,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ProductName.GetHashCode(); } - hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + if (this.SelectedVersionIndex != null) + { + hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 5ebae913605aa..eff25e70c2d24 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -45,7 +45,7 @@ public partial class Model200Response : IEquatable /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class @@ -100,7 +100,8 @@ public bool Equals(Model200Response input) return ( this.Name == input.Name || - this.Name.Equals(input.Name) + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( this.Class == input.Class || @@ -118,7 +119,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs index 12d0eca05173e..5a37cd03805c8 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -56,7 +56,7 @@ protected Name() { } /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -76,7 +76,7 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -139,7 +139,8 @@ public bool Equals(Name input) ) && ( this.SnakeCase == input.SnakeCase || - this.SnakeCase.Equals(input.SnakeCase) + (this.SnakeCase != null && + this.SnakeCase.Equals(input.SnakeCase)) ) && ( this.Property == input.Property || @@ -148,7 +149,8 @@ public bool Equals(Name input) ) && ( this.Var123Number == input.Var123Number || - this.Var123Number.Equals(input.Var123Number) + (this.Var123Number != null && + this.Var123Number.Equals(input.Var123Number)) ); } @@ -162,12 +164,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 3230dcc91933f..2377352391ccd 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -46,7 +46,7 @@ public partial class NumberOnly : IEquatable /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Returns the string presentation of the object @@ -94,7 +94,8 @@ public bool Equals(NumberOnly input) return ( this.JustNumber == input.JustNumber || - this.JustNumber.Equals(input.JustNumber) + (this.JustNumber != null && + this.JustNumber.Equals(input.JustNumber)) ); } @@ -107,7 +108,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 05bb2ca8de6cb..e899cec7584d8 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -56,7 +56,7 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef @@ -126,7 +126,8 @@ public bool Equals(ObjectWithDeprecatedFields input) ) && ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.DeprecatedRef == input.DeprecatedRef || @@ -154,7 +155,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index 24a19990a2e93..8b0410416dd69 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -86,19 +86,19 @@ public enum StatusEnum /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate @@ -166,15 +166,18 @@ public bool Equals(Order input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.PetId == input.PetId || - this.PetId.Equals(input.PetId) + (this.PetId != null && + this.PetId.Equals(input.PetId)) ) && ( this.Quantity == input.Quantity || - this.Quantity.Equals(input.Quantity) + (this.Quantity != null && + this.Quantity.Equals(input.Quantity)) ) && ( this.ShipDate == input.ShipDate || @@ -200,9 +203,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 56abf79694799..3a5d939ab2e54 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -47,7 +47,7 @@ public partial class OuterComposite : IEquatable /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString @@ -59,7 +59,7 @@ public partial class OuterComposite : IEquatable /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Returns the string presentation of the object @@ -109,7 +109,8 @@ public bool Equals(OuterComposite input) return ( this.MyNumber == input.MyNumber || - this.MyNumber.Equals(input.MyNumber) + (this.MyNumber != null && + this.MyNumber.Equals(input.MyNumber)) ) && ( this.MyString == input.MyString || @@ -118,7 +119,8 @@ public bool Equals(OuterComposite input) ) && ( this.MyBoolean == input.MyBoolean || - this.MyBoolean.Equals(input.MyBoolean) + (this.MyBoolean != null && + this.MyBoolean.Equals(input.MyBoolean)) ); } @@ -131,12 +133,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 18a5bfabe2b9b..6d9bcce593f61 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -101,7 +101,7 @@ protected Pet() { } /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -181,7 +181,8 @@ public bool Equals(Pet input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Category == input.Category || @@ -220,7 +221,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 5c3f9047a9118..653410e527eee 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -189,6 +189,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -643,7 +644,7 @@ protected RequiredClass() { } /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -691,7 +692,7 @@ protected RequiredClass() { } /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -908,7 +909,8 @@ public bool Equals(RequiredClass input) ) && ( this.NotRequiredNotnullableintegerProp == input.NotRequiredNotnullableintegerProp || - this.NotRequiredNotnullableintegerProp.Equals(input.NotRequiredNotnullableintegerProp) + (this.NotRequiredNotnullableintegerProp != null && + this.NotRequiredNotnullableintegerProp.Equals(input.NotRequiredNotnullableintegerProp)) ) && ( this.RequiredNullableStringProp == input.RequiredNullableStringProp || @@ -946,7 +948,8 @@ public bool Equals(RequiredClass input) ) && ( this.NotrequiredNotnullableBooleanProp == input.NotrequiredNotnullableBooleanProp || - this.NotrequiredNotnullableBooleanProp.Equals(input.NotrequiredNotnullableBooleanProp) + (this.NotrequiredNotnullableBooleanProp != null && + this.NotrequiredNotnullableBooleanProp.Equals(input.NotrequiredNotnullableBooleanProp)) ) && ( this.RequiredNullableDateProp == input.RequiredNullableDateProp || @@ -1116,7 +1119,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -1142,7 +1148,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs index e878ddab0b92c..582bce46fc08b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -64,7 +64,7 @@ protected Return() { } /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets Lock @@ -133,7 +133,8 @@ public bool Equals(Return input) return ( this.VarReturn == input.VarReturn || - this.VarReturn.Equals(input.VarReturn) + (this.VarReturn != null && + this.VarReturn.Equals(input.VarReturn)) ) && ( this.Lock == input.Lock || @@ -161,7 +162,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.Lock != null) { hashCode = (hashCode * 59) + this.Lock.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 4a637be16619c..53497817a8d1b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -45,7 +45,7 @@ public partial class SpecialModelName : IEquatable /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName @@ -100,7 +100,8 @@ public bool Equals(SpecialModelName input) return ( this.SpecialPropertyName == input.SpecialPropertyName || - this.SpecialPropertyName.Equals(input.SpecialPropertyName) + (this.SpecialPropertyName != null && + this.SpecialPropertyName.Equals(input.SpecialPropertyName)) ) && ( this.VarSpecialModelName == input.VarSpecialModelName || @@ -118,7 +119,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 5699133e6672a..10a95ca329abb 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -45,7 +45,7 @@ public partial class Tag : IEquatable /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -100,7 +100,8 @@ public bool Equals(Tag input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Name == input.Name || @@ -118,7 +119,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs index 03599102829ca..6fbf2f28d1149 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -65,7 +65,7 @@ public partial class User : IEquatable /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -108,7 +108,7 @@ public partial class User : IEquatable /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. @@ -195,7 +195,8 @@ public bool Equals(User input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Username == input.Username || @@ -229,7 +230,8 @@ public bool Equals(User input) ) && ( this.UserStatus == input.UserStatus || - this.UserStatus.Equals(input.UserStatus) + (this.UserStatus != null && + this.UserStatus.Equals(input.UserStatus)) ) && ( this.ObjectWithNoDeclaredProps == input.ObjectWithNoDeclaredProps || @@ -262,7 +264,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -287,7 +292,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 19775ac703bcf..3f7f7e00a2b7d 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -57,13 +57,13 @@ protected Whale() { } /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -119,11 +119,13 @@ public bool Equals(Whale input) return ( this.HasBaleen == input.HasBaleen || - this.HasBaleen.Equals(input.HasBaleen) + (this.HasBaleen != null && + this.HasBaleen.Equals(input.HasBaleen)) ) && ( this.HasTeeth == input.HasTeeth || - this.HasTeeth.Equals(input.HasTeeth) + (this.HasTeeth != null && + this.HasTeeth.Equals(input.HasTeeth)) ) && ( this.ClassName == input.ClassName || @@ -141,8 +143,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode();