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 8d832cdce9c2..94b341de3287 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
@@ -487,7 +487,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";
@@ -495,7 +495,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 6609a71b2952..8072cd805536 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
@@ -674,6 +674,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/main/resources/csharp/netcore_project.mustache b/modules/openapi-generator/src/main/resources/csharp/netcore_project.mustache
index ade2832cd1c3..2fea7a856de0 100644
--- a/modules/openapi-generator/src/main/resources/csharp/netcore_project.mustache
+++ b/modules/openapi-generator/src/main/resources/csharp/netcore_project.mustache
@@ -73,9 +73,11 @@
{{/net48}}
+ {{^netStandard}}
{{^net60OrLater}}
{{/net60OrLater}}
+ {{/netStandard}}
{{#net48}}
{{/net48}}
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 55e7d672fc52..642253277344 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
@@ -68,7 +68,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);
@@ -78,7 +78,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 0f2cbac62e7d..97eafd6aeda0 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
@@ -195,7 +195,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");
@@ -245,7 +245,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");
@@ -296,7 +296,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");
@@ -516,7 +516,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/net8/EchoApi/docs/Bird.md b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/Bird.md
index ad2a13da1890..92c9d1de56b0 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/Bird.md
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/docs/Category.md b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/Category.md
index fd3c5e2b257a..be23d2cc1723 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/Category.md
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/docs/DataQuery.md b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/DataQuery.md
index 0f1f76302ef0..1effe6f9e3d3 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/DataQuery.md
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/docs/DefaultValue.md b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/DefaultValue.md
index 981eda3340e0..f6a68f4745b4 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/DefaultValue.md
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/docs/NumberPropertiesOnly.md b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/NumberPropertiesOnly.md
index f9c523da92eb..c894c7007524 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/NumberPropertiesOnly.md
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/docs/Pet.md b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/Pet.md
index ff2f348d392b..b8c7d51638c2 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/Pet.md
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/docs/Query.md b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/Query.md
index c79503ef2a64..6e786b359f12 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/Query.md
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/docs/Tag.md b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/Tag.md
index fdd22eb31fdd..1f6ddf2cdbe5 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/Tag.md
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/docs/TestFormObjectMultipartRequestMarker.md b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/TestFormObjectMultipartRequestMarker.md
index 6de6ca6f5f0d..6f32348802c6 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/TestFormObjectMultipartRequestMarker.md
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md
index dec380556c83..9dfdd639c8ea 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/src/Org.OpenAPITools/Model/Bird.cs b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/Bird.cs
index e87aec99cc66..f44b1b5d1a07 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/Bird.cs
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/src/Org.OpenAPITools/Model/Category.cs b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/Category.cs
index ae30da28141e..046e20a318df 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/Category.cs
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/src/Org.OpenAPITools/Model/DataQuery.cs b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/DataQuery.cs
index ee11b0f5c9b3..807b3354e9cd 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/DataQuery.cs
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/src/Org.OpenAPITools/Model/DefaultValue.cs b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/DefaultValue.cs
index 3a0530813ead..e0669a7cf25f 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/DefaultValue.cs
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs
index ccf8e681847c..e3f821f54029 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/Pet.cs
index f3b46cae4930..0162928887f2 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/Pet.cs
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/src/Org.OpenAPITools/Model/Query.cs b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/Query.cs
index 0ff925611a5b..2eb1ee2fedd7 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/Query.cs
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/Tag.cs
index 66eab762090b..16a6ef59b107 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/Tag.cs
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs
index d38d85da5203..1f425f183c96 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/net8/EchoApi/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs
index 124ef98ce3a9..c3c092dbbc5d 100644
--- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs
+++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/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/others/csharp-complex-files/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Org.OpenAPITools.csproj
index 05f8f0bf135f..3049bc3e264e 100644
--- a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Org.OpenAPITools.csproj
+++ b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Org.OpenAPITools.csproj
@@ -33,6 +33,5 @@
-
diff --git a/samples/client/petstore/csharp-functions/Org.OpenAPITools.sln b/samples/client/petstore/csharp-functions/Org.OpenAPITools.sln
index 6f12b4fa17de..88af3afd0dad 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/net9/Petstore/docs/ActivityOutputElementRepresentation.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ActivityOutputElementRepresentation.md
index 21f226b39525..7f37e8a701aa 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ActivityOutputElementRepresentation.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/AdditionalPropertiesClass.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/AdditionalPropertiesClass.md
index c40cd0f8accb..e9b9f2256d9f 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/AdditionalPropertiesClass.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ApiResponse.md
index bb723d2baa13..7bae51a82b75 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ApiResponse.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/Apple.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Apple.md
index 6261194e4800..7711490a679b 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Apple.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/AppleReq.md
index 005b8f8058a4..bb7b7576dc2e 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/AppleReq.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/docs/Banana.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Banana.md
index 226952d1cecb..72cbdcf0af0b 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Banana.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/BananaReq.md
index f99aab99e387..2bf39b773a66 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/BananaReq.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/docs/Capitalization.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Capitalization.md
index 1b1352d918f4..e9b31d33a641 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Capitalization.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/Cat.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Cat.md
index aa1ac17604eb..d41c6ec6eb65 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Cat.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/docs/Category.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Category.md
index 032a1faeb3ff..bdbe5ac5a483 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Category.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/docs/ChildCat.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ChildCat.md
index 8ce6449e5f22..3d0a819274cf 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ChildCat.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/ClassModel.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ClassModel.md
index f39982657c89..9bd76dc855f8 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ClassModel.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/DateOnlyClass.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/DateOnlyClass.md
index 8291b9cb6d78..e56ad3ae3df7 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/DateOnlyClass.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/DeprecatedObject.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/DeprecatedObject.md
index bb7824a3d640..3b5eacc8e075 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/DeprecatedObject.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/Dog.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Dog.md
index 3aa00144e9aa..721425ea1e13 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Dog.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/Drawing.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Drawing.md
index 6b7122940afa..50b962c62e8f 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Drawing.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/EnumArrays.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/EnumArrays.md
index 62e34f03dbc3..1691ef8adb0a 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/EnumArrays.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/EnumTest.md
index 5ce3c4addd9b..720f9ae54ace 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/EnumTest.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/File.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/File.md
index 28959feda088..e67cd955342f 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/File.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/FileSchemaTestClass.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/FileSchemaTestClass.md
index 0ce4be56cc72..ccb2d082f662 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/FileSchemaTestClass.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/FooGetDefaultResponse.md
index dde9b9729b93..28fc2f659f08 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/FooGetDefaultResponse.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/FormatTest.md
index 25a96509f1d5..2be52c4329b9 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/FormatTest.md
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/FormatTest.md
@@ -4,31 +4,31 @@
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** | [**FileParameter**](FileParameter.md) | | [optional]
+**Binary** | [**FileParameter?**](FileParameter.md) | | [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]
-**StringFormattedAsDecimal** | **decimal** | | [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]
+**StringFormattedAsDecimal** | **decimal?** | | [optional]
**StringFormattedAsDecimalRequired** | **decimal** | |
[[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/net9/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Fruit.md
index 40df92d7c9b1..c446aa06b20b 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Fruit.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/FruitReq.md
index 5db6b0e2d1d8..8f072a324cb0 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/FruitReq.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/GmFruit.md
index da7b3a6ccf9f..3ef782902939 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/GmFruit.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/HasOnlyReadOnly.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/HasOnlyReadOnly.md
index 64549c18b0a1..b4d3bd8c6d57 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/HasOnlyReadOnly.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/HealthCheckResult.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/HealthCheckResult.md
index f7d1a7eb6886..154fd14dcc7d 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/HealthCheckResult.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/List.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/List.md
index c00ef31e6e25..65dd7bf072a2 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/List.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Mammal.md
index aab8f4db9c75..e82462c4bbaa 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Mammal.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/MixLog.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixLog.md
new file mode 100644
index 000000000000..2bd04a68fda4
--- /dev/null
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixLog.md
@@ -0,0 +1,41 @@
+# Org.OpenAPITools.Model.MixLog
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **Guid** | |
+**Description** | **string** | |
+**MixDate** | **DateTime** | |
+**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]
+**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]
+
+[[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/net9/Petstore/docs/MixedAnyOf.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixedAnyOf.md
index 6a6aa093bebe..1cee08f2a5dc 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixedAnyOf.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/MixedAnyOfContent.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixedAnyOfContent.md
index 9af972f3219f..deb8047505e8 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixedAnyOfContent.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/MixedOneOf.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixedOneOf.md
index dc9650a8e3a0..0c5625d3f74c 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixedOneOf.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/MixedOneOfContent.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixedOneOfContent.md
index 8468f9024f73..4629cf446150 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixedOneOfContent.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md
index 050210a3e371..81d4a847dbe2 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/MixedSubId.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixedSubId.md
index b9268e37cba6..c5989c5922d9 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/MixedSubId.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Model200Response.md
index 31f4d86fe43d..c719083851e4 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Model200Response.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/ModelClient.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ModelClient.md
index 1d8afe3e1a7a..d525ccdaa521 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ModelClient.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/Name.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Name.md
index 3e19db154a80..a89e8d24d4a7 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Name.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/NullableClass.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/NullableClass.md
index 2d238d6a80cb..64578b092a03 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/NullableClass.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/NumberOnly.md
index 14a7c0f1071b..1af131f829ec 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/NumberOnly.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ObjectWithDeprecatedFields.md
index 7a335d446f4b..a36d8ca84a70 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ObjectWithDeprecatedFields.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/Order.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Order.md
index 66c55c3b4737..72f9aefc4239 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Order.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/OuterComposite.md
index eb42bcc1aaa4..e1a61b97a536 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/OuterComposite.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/Pet.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Pet.md
index c7224764e2d4..503652fad78f 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Pet.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/ReadOnlyFirst.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ReadOnlyFirst.md
index b3f4a17ea34e..c3d41e7f8f46 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ReadOnlyFirst.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/RequiredClass.md
index 7f734db8a618..2c00b36dce18 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/RequiredClass.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/Result.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Result.md
index d2de0c7ac041..551d280680e8 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Result.md
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Result.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Code** | **string** | Result code | [optional]
-**Uuid** | **string** | Result unique identifier | [optional]
+**Code** | **string?** | Result code | [optional]
+**Uuid** | **string?** | Result unique identifier | [optional]
**Data** | **Dictionary<string, string>** | list of named parameters for current message | [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/net9/Petstore/docs/Return.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Return.md
index a10daf95cf1d..3cc33993a8da 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Return.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/RolesReportsHash.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/RolesReportsHash.md
index 309b0c02615c..e73788a32fb3 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/RolesReportsHash.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/RolesReportsHashRole.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/RolesReportsHashRole.md
index 6f9affc24032..8b9da914ec6c 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/RolesReportsHashRole.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/SpecialModelName.md
index 7f8ffca34fa1..50b87d981d57 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/SpecialModelName.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/Tag.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Tag.md
index fdd22eb31fdd..1f6ddf2cdbe5 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Tag.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/TestCollectionEndingWithWordList.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/TestCollectionEndingWithWordList.md
index 0e5568637b89..3e90bb8a3d6c 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/TestCollectionEndingWithWordList.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md
index c1cf9ce2f812..a2ebd09f076b 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/TestResult.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/TestResult.md
index d70eaf2b64a1..8a71e41dda1c 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/TestResult.md
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/TestResult.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Code** | **TestResultCode** | | [optional]
-**Uuid** | **string** | Result unique identifier | [optional]
+**Code** | [**TestResultCode?**](TestResultCode.md) | | [optional]
+**Uuid** | **string?** | Result unique identifier | [optional]
**Data** | **Dictionary<string, string>** | list of named parameters for current message | [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/net9/Petstore/docs/User.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/User.md
index b0cd4dc042bf..38d3987d7fc6 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/User.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/Whale.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Whale.md
index 5fc3dc7f85c2..a1512d751e8e 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Whale.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/docs/Zebra.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Zebra.md
index 31e686adf0e7..4b4313ba5038 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Zebra.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/docs/ZeroBasedEnumClass.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ZeroBasedEnumClass.md
index b804bc0d7fb4..46002998b553 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ZeroBasedEnumClass.md
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
index cf1bbf23cea8..bdfdfd693e3e 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
@@ -49,13 +49,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
index 7db32a24579e..e49e2fa6650a 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
@@ -73,19 +73,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
@@ -98,7 +98,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs
index 296753574edc..0bd4ef7ada3e 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs
@@ -51,19 +51,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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs
index 546300d9857d..4994227235cd 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs
@@ -51,19 +51,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
@@ -153,7 +153,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)
{
@@ -162,7 +162,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)
{
@@ -171,7 +171,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs
index 85ba742ea8ed..b04982aac15c 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs
index 55a7b982dfdf..40f64d37475d 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs
index 7afbe08ac126..bd04bf414a55 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs
index 10031dc7568d..91a9a2dd010e 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs
@@ -57,38 +57,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs
index d0656ca88eb3..029b0b46fe40 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs
index 0057441d8857..905711947766 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs
index 012d836c7ceb..c0ce1370773f 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs
@@ -77,7 +77,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs
index 36b14908818a..15aa2df45edd 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs
@@ -47,7 +47,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs
index 554ea2861933..9aaf3e53a41a 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs
@@ -50,7 +50,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs
index e6791fbe07a8..22ad5894801e 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs
@@ -47,7 +47,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs
index 7742651a2bd4..431ad12771ea 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs
@@ -58,7 +58,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs
index 73b84634c4dd..d478ff46dbef 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs
@@ -53,19 +53,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs
index 3309623635ca..b8d57ae9b973 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs
@@ -180,6 +180,7 @@ public enum EnumIntegerEnum
///
/// Defines EnumIntegerOnly
///
+ [JsonConverter(typeof(StringEnumConverter))]
public enum EnumIntegerOnlyEnum
{
///
@@ -224,30 +225,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.
///
@@ -282,6 +259,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
///
@@ -353,10 +354,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/File.cs
index ca5877d2f8ee..b0924f80fe45 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/File.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/File.cs
@@ -48,7 +48,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
index 2e37282c600b..b04079f3be20 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
@@ -49,7 +49,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
index 2619543bb533..362da9c02bde 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
@@ -47,7 +47,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs
index e4edbed04941..ca8092af12e5 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs
@@ -115,61 +115,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
@@ -181,25 +181,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
@@ -211,7 +211,7 @@ protected FormatTest()
/// Gets or Sets Binary
///
[DataMember(Name = "binary", EmitDefaultValue = false)]
- public FileParameter Binary { get; set; }
+ public FileParameter? Binary { get; set; }
///
/// Gets or Sets Date
@@ -229,7 +229,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
@@ -238,7 +238,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
@@ -251,27 +251,27 @@ 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 StringFormattedAsDecimal
///
[DataMember(Name = "string_formatted_as_decimal", EmitDefaultValue = false)]
- public decimal StringFormattedAsDecimal { get; set; }
+ public decimal? StringFormattedAsDecimal { get; set; }
///
/// Gets or Sets StringFormattedAsDecimalRequired
@@ -362,20 +362,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();
@@ -416,7 +455,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
}
- hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
+ if (this.StringFormattedAsDecimal != null)
+ {
+ hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
if (this.AdditionalProperties != null)
{
@@ -433,74 +475,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" });
}
@@ -517,32 +559,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)
{
@@ -563,7 +605,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)
{
@@ -572,7 +614,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)
{
@@ -581,7 +623,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
index 8ac3489e8b7a..0f6f50ae7f67 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
@@ -46,7 +46,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.
@@ -60,7 +60,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs
index fc344e4373f9..01b1e69c0d16 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs
@@ -47,7 +47,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/List.cs
index b84038f9fcf5..62da092a8709 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/List.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/List.cs
@@ -47,7 +47,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixLog.cs
new file mode 100644
index 000000000000..f59f5d620c27
--- /dev/null
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixLog.cs
@@ -0,0 +1,546 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using FileParameter = Org.OpenAPITools.Client.FileParameter;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// MixLog
+ ///
+ [DataContract(Name = "MixLog")]
+ public partial class MixLog : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected MixLog()
+ {
+ this.AdditionalProperties = new Dictionary();
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// id (required).
+ /// description (required).
+ /// mixDate (required).
+ /// shopId.
+ /// totalPrice.
+ /// totalRecalculations (required).
+ /// totalOverPoors (required).
+ /// totalSkips (required).
+ /// totalUnderPours (required).
+ /// formulaVersionDate (required).
+ /// SomeCode is only required for color mixes.
+ /// batchNumber.
+ /// BrandCode is only required for non-color mixes.
+ /// BrandId is only required for color mixes.
+ /// BrandName is only required for color mixes.
+ /// CategoryCode is not used anymore.
+ /// Color is only required for color mixes.
+ /// colorDescription.
+ /// comment.
+ /// commercialProductCode.
+ /// ProductLineCode is only required for color mixes.
+ /// country.
+ /// createdBy.
+ /// createdByFirstName.
+ /// createdByLastName.
+ /// deltaECalculationRepaired.
+ /// deltaECalculationSprayout.
+ /// ownColorVariantNumber.
+ /// primerProductId.
+ /// ProductId is only required for color mixes.
+ /// ProductName is only required for color mixes.
+ /// selectedVersionIndex.
+ public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid shopId = default(Guid), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int selectedVersionIndex = default(int))
+ {
+ this.Id = id;
+ // to ensure "description" is required (not null)
+ if (description == null)
+ {
+ throw new ArgumentNullException("description is a required property for MixLog and cannot be null");
+ }
+ this.Description = description;
+ this.MixDate = mixDate;
+ this.TotalRecalculations = totalRecalculations;
+ this.TotalOverPoors = totalOverPoors;
+ this.TotalSkips = totalSkips;
+ this.TotalUnderPours = totalUnderPours;
+ this.FormulaVersionDate = formulaVersionDate;
+ this.ShopId = shopId;
+ this.TotalPrice = totalPrice;
+ this.SomeCode = someCode;
+ this.BatchNumber = batchNumber;
+ this.BrandCode = brandCode;
+ this.BrandId = brandId;
+ this.BrandName = brandName;
+ this.CategoryCode = categoryCode;
+ this.Color = color;
+ this.ColorDescription = colorDescription;
+ this.Comment = comment;
+ this.CommercialProductCode = commercialProductCode;
+ this.ProductLineCode = productLineCode;
+ this.Country = country;
+ this.CreatedBy = createdBy;
+ this.CreatedByFirstName = createdByFirstName;
+ this.CreatedByLastName = createdByLastName;
+ this.DeltaECalculationRepaired = deltaECalculationRepaired;
+ this.DeltaECalculationSprayout = deltaECalculationSprayout;
+ this.OwnColorVariantNumber = ownColorVariantNumber;
+ this.PrimerProductId = primerProductId;
+ this.ProductId = productId;
+ this.ProductName = productName;
+ this.SelectedVersionIndex = selectedVersionIndex;
+ this.AdditionalProperties = new Dictionary();
+ }
+
+ ///
+ /// Gets or Sets Id
+ ///
+ [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
+ public Guid Id { get; set; }
+
+ ///
+ /// Gets or Sets Description
+ ///
+ [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
+ public string Description { get; set; }
+
+ ///
+ /// Gets or Sets MixDate
+ ///
+ [DataMember(Name = "mixDate", IsRequired = true, EmitDefaultValue = true)]
+ public DateTime MixDate { get; set; }
+
+ ///
+ /// Gets or Sets ShopId
+ ///
+ [DataMember(Name = "shopId", EmitDefaultValue = false)]
+ public Guid? ShopId { get; set; }
+
+ ///
+ /// Gets or Sets TotalPrice
+ ///
+ [DataMember(Name = "totalPrice", EmitDefaultValue = true)]
+ public float? TotalPrice { get; set; }
+
+ ///
+ /// Gets or Sets TotalRecalculations
+ ///
+ [DataMember(Name = "totalRecalculations", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalRecalculations { get; set; }
+
+ ///
+ /// Gets or Sets TotalOverPoors
+ ///
+ [DataMember(Name = "totalOverPoors", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalOverPoors { get; set; }
+
+ ///
+ /// Gets or Sets TotalSkips
+ ///
+ [DataMember(Name = "totalSkips", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalSkips { get; set; }
+
+ ///
+ /// Gets or Sets TotalUnderPours
+ ///
+ [DataMember(Name = "totalUnderPours", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalUnderPours { get; set; }
+
+ ///
+ /// Gets or Sets FormulaVersionDate
+ ///
+ [DataMember(Name = "formulaVersionDate", IsRequired = true, EmitDefaultValue = true)]
+ public DateTime FormulaVersionDate { get; set; }
+
+ ///
+ /// SomeCode is only required for color mixes
+ ///
+ /// SomeCode is only required for color mixes
+ [DataMember(Name = "someCode", EmitDefaultValue = true)]
+ public string? SomeCode { get; set; }
+
+ ///
+ /// Gets or Sets BatchNumber
+ ///
+ [DataMember(Name = "batchNumber", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// BrandId is only required for color mixes
+ ///
+ /// BrandId is only required for color mixes
+ [DataMember(Name = "brandId", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// CategoryCode is not used anymore
+ ///
+ /// CategoryCode is not used anymore
+ [DataMember(Name = "categoryCode", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// Gets or Sets ColorDescription
+ ///
+ [DataMember(Name = "colorDescription", EmitDefaultValue = false)]
+ public string? ColorDescription { get; set; }
+
+ ///
+ /// Gets or Sets Comment
+ ///
+ [DataMember(Name = "comment", EmitDefaultValue = false)]
+ public string? Comment { get; set; }
+
+ ///
+ /// Gets or Sets CommercialProductCode
+ ///
+ [DataMember(Name = "commercialProductCode", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// Gets or Sets Country
+ ///
+ [DataMember(Name = "country", EmitDefaultValue = false)]
+ public string? Country { get; set; }
+
+ ///
+ /// Gets or Sets CreatedBy
+ ///
+ [DataMember(Name = "createdBy", EmitDefaultValue = false)]
+ public string? CreatedBy { get; set; }
+
+ ///
+ /// Gets or Sets CreatedByFirstName
+ ///
+ [DataMember(Name = "createdByFirstName", EmitDefaultValue = false)]
+ public string? CreatedByFirstName { get; set; }
+
+ ///
+ /// Gets or Sets CreatedByLastName
+ ///
+ [DataMember(Name = "createdByLastName", EmitDefaultValue = false)]
+ public string? CreatedByLastName { get; set; }
+
+ ///
+ /// Gets or Sets DeltaECalculationRepaired
+ ///
+ [DataMember(Name = "deltaECalculationRepaired", EmitDefaultValue = false)]
+ public string? DeltaECalculationRepaired { get; set; }
+
+ ///
+ /// Gets or Sets DeltaECalculationSprayout
+ ///
+ [DataMember(Name = "deltaECalculationSprayout", EmitDefaultValue = false)]
+ public string? DeltaECalculationSprayout { get; set; }
+
+ ///
+ /// Gets or Sets OwnColorVariantNumber
+ ///
+ [DataMember(Name = "ownColorVariantNumber", EmitDefaultValue = true)]
+ public int? OwnColorVariantNumber { get; set; }
+
+ ///
+ /// Gets or Sets PrimerProductId
+ ///
+ [DataMember(Name = "primerProductId", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// ProductName is only required for color mixes
+ ///
+ /// ProductName is only required for color mixes
+ [DataMember(Name = "productName", EmitDefaultValue = false)]
+ public string? ProductName { get; set; }
+
+ ///
+ /// Gets or Sets SelectedVersionIndex
+ ///
+ [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)]
+ public int? SelectedVersionIndex { get; set; }
+
+ ///
+ /// Gets or Sets additional properties
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalProperties { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class MixLog {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Description: ").Append(Description).Append("\n");
+ sb.Append(" MixDate: ").Append(MixDate).Append("\n");
+ sb.Append(" ShopId: ").Append(ShopId).Append("\n");
+ sb.Append(" TotalPrice: ").Append(TotalPrice).Append("\n");
+ sb.Append(" TotalRecalculations: ").Append(TotalRecalculations).Append("\n");
+ sb.Append(" TotalOverPoors: ").Append(TotalOverPoors).Append("\n");
+ sb.Append(" TotalSkips: ").Append(TotalSkips).Append("\n");
+ sb.Append(" TotalUnderPours: ").Append(TotalUnderPours).Append("\n");
+ sb.Append(" FormulaVersionDate: ").Append(FormulaVersionDate).Append("\n");
+ sb.Append(" SomeCode: ").Append(SomeCode).Append("\n");
+ sb.Append(" BatchNumber: ").Append(BatchNumber).Append("\n");
+ sb.Append(" BrandCode: ").Append(BrandCode).Append("\n");
+ sb.Append(" BrandId: ").Append(BrandId).Append("\n");
+ sb.Append(" BrandName: ").Append(BrandName).Append("\n");
+ sb.Append(" CategoryCode: ").Append(CategoryCode).Append("\n");
+ sb.Append(" Color: ").Append(Color).Append("\n");
+ sb.Append(" ColorDescription: ").Append(ColorDescription).Append("\n");
+ sb.Append(" Comment: ").Append(Comment).Append("\n");
+ sb.Append(" CommercialProductCode: ").Append(CommercialProductCode).Append("\n");
+ sb.Append(" ProductLineCode: ").Append(ProductLineCode).Append("\n");
+ sb.Append(" Country: ").Append(Country).Append("\n");
+ sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n");
+ sb.Append(" CreatedByFirstName: ").Append(CreatedByFirstName).Append("\n");
+ sb.Append(" CreatedByLastName: ").Append(CreatedByLastName).Append("\n");
+ sb.Append(" DeltaECalculationRepaired: ").Append(DeltaECalculationRepaired).Append("\n");
+ sb.Append(" DeltaECalculationSprayout: ").Append(DeltaECalculationSprayout).Append("\n");
+ sb.Append(" OwnColorVariantNumber: ").Append(OwnColorVariantNumber).Append("\n");
+ sb.Append(" PrimerProductId: ").Append(PrimerProductId).Append("\n");
+ sb.Append(" ProductId: ").Append(ProductId).Append("\n");
+ sb.Append(" ProductName: ").Append(ProductName).Append("\n");
+ sb.Append(" SelectedVersionIndex: ").Append(SelectedVersionIndex).Append("\n");
+ sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as MixLog).AreEqual;
+ }
+
+ ///
+ /// Returns true if MixLog instances are equal
+ ///
+ /// Instance of MixLog to be compared
+ /// Boolean
+ public bool Equals(MixLog input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Id != null)
+ {
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ }
+ if (this.Description != null)
+ {
+ hashCode = (hashCode * 59) + this.Description.GetHashCode();
+ }
+ if (this.MixDate != null)
+ {
+ hashCode = (hashCode * 59) + this.MixDate.GetHashCode();
+ }
+ if (this.ShopId != null)
+ {
+ hashCode = (hashCode * 59) + this.ShopId.GetHashCode();
+ }
+ if (this.TotalPrice != null)
+ {
+ hashCode = (hashCode * 59) + this.TotalPrice.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.TotalRecalculations.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalOverPoors.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalSkips.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalUnderPours.GetHashCode();
+ if (this.FormulaVersionDate != null)
+ {
+ hashCode = (hashCode * 59) + this.FormulaVersionDate.GetHashCode();
+ }
+ if (this.SomeCode != null)
+ {
+ hashCode = (hashCode * 59) + this.SomeCode.GetHashCode();
+ }
+ if (this.BatchNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.BatchNumber.GetHashCode();
+ }
+ if (this.BrandCode != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandCode.GetHashCode();
+ }
+ if (this.BrandId != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandId.GetHashCode();
+ }
+ if (this.BrandName != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandName.GetHashCode();
+ }
+ if (this.CategoryCode != null)
+ {
+ hashCode = (hashCode * 59) + this.CategoryCode.GetHashCode();
+ }
+ if (this.Color != null)
+ {
+ hashCode = (hashCode * 59) + this.Color.GetHashCode();
+ }
+ if (this.ColorDescription != null)
+ {
+ hashCode = (hashCode * 59) + this.ColorDescription.GetHashCode();
+ }
+ if (this.Comment != null)
+ {
+ hashCode = (hashCode * 59) + this.Comment.GetHashCode();
+ }
+ if (this.CommercialProductCode != null)
+ {
+ hashCode = (hashCode * 59) + this.CommercialProductCode.GetHashCode();
+ }
+ if (this.ProductLineCode != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductLineCode.GetHashCode();
+ }
+ if (this.Country != null)
+ {
+ hashCode = (hashCode * 59) + this.Country.GetHashCode();
+ }
+ if (this.CreatedBy != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedBy.GetHashCode();
+ }
+ if (this.CreatedByFirstName != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedByFirstName.GetHashCode();
+ }
+ if (this.CreatedByLastName != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedByLastName.GetHashCode();
+ }
+ if (this.DeltaECalculationRepaired != null)
+ {
+ hashCode = (hashCode * 59) + this.DeltaECalculationRepaired.GetHashCode();
+ }
+ if (this.DeltaECalculationSprayout != null)
+ {
+ hashCode = (hashCode * 59) + this.DeltaECalculationSprayout.GetHashCode();
+ }
+ if (this.OwnColorVariantNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.OwnColorVariantNumber.GetHashCode();
+ }
+ if (this.PrimerProductId != null)
+ {
+ hashCode = (hashCode * 59) + this.PrimerProductId.GetHashCode();
+ }
+ if (this.ProductId != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductId.GetHashCode();
+ }
+ if (this.ProductName != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductName.GetHashCode();
+ }
+ if (this.SelectedVersionIndex != null)
+ {
+ hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode();
+ }
+ if (this.AdditionalProperties != null)
+ {
+ hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs
index 889b927982c6..678d02075cb6 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs
@@ -47,7 +47,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs
index 576cb29d578d..8423fafc2413 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs
@@ -47,7 +47,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
index 254ccb20d125..dd204c436773 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
@@ -53,19 +53,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
@@ -166,7 +166,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs
index a644d2744809..d970f3a9a3f5 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs
@@ -47,7 +47,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs
index 34aee45d4c8c..2e85b907f363 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs
@@ -49,13 +49,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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs
index 2523c65536f3..1469d6cfd4af 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs
@@ -47,7 +47,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs
index 47c0de878119..0884b272a3e8 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/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.
@@ -77,13 +77,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.
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs
index b464153c4236..c0989e0a12c6 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs
@@ -87,7 +87,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs
index a287358b015c..6b820bf3c828 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
index db530572625a..f15fe911ca71 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
@@ -53,21 +53,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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs
index 3f9806f04db7..53c4aa7076fd 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/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
@@ -111,7 +111,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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs
index 91a61870eea7..60fcb4b22c72 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs
@@ -51,19 +51,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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs
index e35abdf6a86c..101f23ed45fa 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs
@@ -108,13 +108,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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
index 8fd8dcd0dce9..096d58bd1fcd 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
@@ -47,7 +47,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.
@@ -61,7 +61,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs
index 947aad54d783..8ed909252656 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs
@@ -192,6 +192,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum
///
/// Defines NotrequiredNotnullableEnumIntegerOnly
///
+ [JsonConverter(typeof(StringEnumConverter))]
public enum NotrequiredNotnullableEnumIntegerOnlyEnum
{
///
@@ -467,18 +468,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.
///
@@ -650,7 +639,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
@@ -668,13 +657,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
@@ -698,7 +687,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
@@ -722,7 +711,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
@@ -746,7 +735,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
@@ -782,7 +783,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
@@ -918,7 +919,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();
@@ -944,7 +948,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();
@@ -991,8 +998,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs
index 83f7d269943c..2795b62b4bb7 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs
@@ -52,14 +52,14 @@ public partial class Result : IEquatable, IValidatableObject
///
/// Result code
[DataMember(Name = "code", EmitDefaultValue = false)]
- public string Code { get; set; }
+ public string? Code { get; set; }
///
/// Result unique identifier
///
/// Result unique identifier
[DataMember(Name = "uuid", EmitDefaultValue = false)]
- public string Uuid { get; set; }
+ public string? Uuid { get; set; }
///
/// list of named parameters for current message
diff --git a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs
index 6a9590cc8f40..ce69a2de2f49 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/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
@@ -89,7 +89,7 @@ protected Return()
/// Gets or Sets Unsafe
///
[DataMember(Name = "unsafe", EmitDefaultValue = false)]
- public string Unsafe { get; set; }
+ public string? Unsafe { get; set; }
///
/// Gets or Sets additional properties
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs
index 43f205a0529d..94f2f692145a 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs
@@ -49,13 +49,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
index 217f538e0a90..ca65248df10a 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
@@ -47,7 +47,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs
index e1e27974a67b..91832b6019f1 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs
@@ -49,13 +49,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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs
index ab8f5e0db099..3a717ae55bf9 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs
@@ -49,13 +49,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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
index ca1cb65fcb24..7758bd5fa277 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
@@ -47,7 +47,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
index 7b15b1340456..d425d1e9f023 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
@@ -47,7 +47,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/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs
index 183db18df057..ac63e04c8020 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs
@@ -33,12 +33,6 @@ namespace Org.OpenAPITools.Model
[DataContract(Name = "TestResult")]
public partial class TestResult : IEquatable, IValidatableObject
{
-
- ///
- /// Gets or Sets Code
- ///
- [DataMember(Name = "code", EmitDefaultValue = false)]
- public TestResultCode? Code { get; set; }
///
/// Initializes a new instance of the class.
///
@@ -53,12 +47,18 @@ public partial class TestResult : IEquatable, IValidatableObject
this.AdditionalProperties = new Dictionary();
}
+ ///
+ /// Gets or Sets Code
+ ///
+ [DataMember(Name = "code", EmitDefaultValue = false)]
+ public TestResultCode? Code { get; set; }
+
///
/// Result unique identifier
///
/// Result unique identifier
[DataMember(Name = "uuid", EmitDefaultValue = false)]
- public string Uuid { get; set; }
+ public string? Uuid { get; set; }
///
/// list of named parameters for current message
@@ -127,7 +127,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.Uuid != null)
{
hashCode = (hashCode * 59) + this.Uuid.GetHashCode();
diff --git a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/User.cs
index 2356f9020cc8..a97cee9d055f 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/User.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/User.cs
@@ -69,78 +69,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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs
index 1a6e079fdab0..8541bd1cd6ad 100644
--- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs
+++ b/samples/client/petstore/csharp/httpclient/net9/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/httpclient/standard2.0/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ApiResponse.md
index bb723d2baa13..faacf536f173 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 005b8f8058a4..bb7b7576dc2e 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 226952d1cecb..72cbdcf0af0b 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 f99aab99e387..2bf39b773a66 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 aa1ac17604eb..d41c6ec6eb65 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 032a1faeb3ff..bdbe5ac5a483 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 5ce3c4addd9b..66cc8c6d245e 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 e6ba5f68b3fe..416452ce29ef 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]
@@ -28,7 +28,7 @@ Name | Type | Description | Notes
**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]
-**StringFormattedAsDecimal** | **decimal** | | [optional]
+**StringFormattedAsDecimal** | **decimal?** | | [optional]
**StringFormattedAsDecimalRequired** | **decimal** | |
[[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/Fruit.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Fruit.md
index 40df92d7c9b1..05aed3a2642b 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 5db6b0e2d1d8..8f072a324cb0 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 da7b3a6ccf9f..265348eca479 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 aab8f4db9c75..75172cd3d506 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
new file mode 100644
index 000000000000..ae8546abe127
--- /dev/null
+++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixLog.md
@@ -0,0 +1,41 @@
+# Org.OpenAPITools.Model.MixLog
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **Guid** | |
+**Description** | **string** | |
+**MixDate** | **DateTime** | |
+**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]
+**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]
+
+[[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 31f4d86fe43d..820f058bf221 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 3e19db154a80..e440a45f0ae1 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 14a7c0f1071b..1af131f829ec 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 7a335d446f4b..20391539c912 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 66c55c3b4737..c5d9f28ccc02 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 eb42bcc1aaa4..71ca9b879223 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 c7224764e2d4..a54829f9a8e2 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 07b6f018f6c1..2ec1d6949ba0 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 a10daf95cf1d..d554c7612cbe 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 7f8ffca34fa1..6d9805d03479 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 fdd22eb31fdd..f86abfc26e02 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 b0cd4dc042bf..da9b34219d84 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 5fc3dc7f85c2..a1512d751e8e 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 296753574edc..f8f8c81d0beb 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 85ba742ea8ed..b04982aac15c 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 55a7b982dfdf..40f64d37475d 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 7afbe08ac126..bd04bf414a55 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 d0656ca88eb3..029b0b46fe40 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 0057441d8857..905711947766 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 3309623635ca..ea65faac8b65 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 3f5358b3bc8f..3c8c54470303 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
@@ -115,61 +115,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
@@ -181,19 +181,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
@@ -272,7 +272,7 @@ protected FormatTest()
/// Gets or Sets StringFormattedAsDecimal
///
[DataMember(Name = "string_formatted_as_decimal", EmitDefaultValue = false)]
- public decimal StringFormattedAsDecimal { get; set; }
+ public decimal? StringFormattedAsDecimal { get; set; }
///
/// Gets or Sets StringFormattedAsDecimalRequired
@@ -363,20 +363,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();
@@ -417,7 +456,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
}
- hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
+ if (this.StringFormattedAsDecimal != null)
+ {
+ hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
if (this.AdditionalProperties != null)
{
@@ -434,74 +476,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" });
}
@@ -518,26 +560,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
new file mode 100644
index 000000000000..3c264243ada8
--- /dev/null
+++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs
@@ -0,0 +1,546 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using FileParameter = Org.OpenAPITools.Client.FileParameter;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// MixLog
+ ///
+ [DataContract(Name = "MixLog")]
+ public partial class MixLog : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected MixLog()
+ {
+ this.AdditionalProperties = new Dictionary();
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// id (required).
+ /// description (required).
+ /// mixDate (required).
+ /// shopId.
+ /// totalPrice.
+ /// totalRecalculations (required).
+ /// totalOverPoors (required).
+ /// totalSkips (required).
+ /// totalUnderPours (required).
+ /// formulaVersionDate (required).
+ /// SomeCode is only required for color mixes.
+ /// batchNumber.
+ /// BrandCode is only required for non-color mixes.
+ /// BrandId is only required for color mixes.
+ /// BrandName is only required for color mixes.
+ /// CategoryCode is not used anymore.
+ /// Color is only required for color mixes.
+ /// colorDescription.
+ /// comment.
+ /// commercialProductCode.
+ /// ProductLineCode is only required for color mixes.
+ /// country.
+ /// createdBy.
+ /// createdByFirstName.
+ /// createdByLastName.
+ /// deltaECalculationRepaired.
+ /// deltaECalculationSprayout.
+ /// ownColorVariantNumber.
+ /// primerProductId.
+ /// ProductId is only required for color mixes.
+ /// ProductName is only required for color mixes.
+ /// selectedVersionIndex.
+ public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid shopId = default(Guid), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int selectedVersionIndex = default(int))
+ {
+ this.Id = id;
+ // to ensure "description" is required (not null)
+ if (description == null)
+ {
+ throw new ArgumentNullException("description is a required property for MixLog and cannot be null");
+ }
+ this.Description = description;
+ this.MixDate = mixDate;
+ this.TotalRecalculations = totalRecalculations;
+ this.TotalOverPoors = totalOverPoors;
+ this.TotalSkips = totalSkips;
+ this.TotalUnderPours = totalUnderPours;
+ this.FormulaVersionDate = formulaVersionDate;
+ this.ShopId = shopId;
+ this.TotalPrice = totalPrice;
+ this.SomeCode = someCode;
+ this.BatchNumber = batchNumber;
+ this.BrandCode = brandCode;
+ this.BrandId = brandId;
+ this.BrandName = brandName;
+ this.CategoryCode = categoryCode;
+ this.Color = color;
+ this.ColorDescription = colorDescription;
+ this.Comment = comment;
+ this.CommercialProductCode = commercialProductCode;
+ this.ProductLineCode = productLineCode;
+ this.Country = country;
+ this.CreatedBy = createdBy;
+ this.CreatedByFirstName = createdByFirstName;
+ this.CreatedByLastName = createdByLastName;
+ this.DeltaECalculationRepaired = deltaECalculationRepaired;
+ this.DeltaECalculationSprayout = deltaECalculationSprayout;
+ this.OwnColorVariantNumber = ownColorVariantNumber;
+ this.PrimerProductId = primerProductId;
+ this.ProductId = productId;
+ this.ProductName = productName;
+ this.SelectedVersionIndex = selectedVersionIndex;
+ this.AdditionalProperties = new Dictionary();
+ }
+
+ ///
+ /// Gets or Sets Id
+ ///
+ [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
+ public Guid Id { get; set; }
+
+ ///
+ /// Gets or Sets Description
+ ///
+ [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
+ public string Description { get; set; }
+
+ ///
+ /// Gets or Sets MixDate
+ ///
+ [DataMember(Name = "mixDate", IsRequired = true, EmitDefaultValue = true)]
+ public DateTime MixDate { get; set; }
+
+ ///
+ /// Gets or Sets ShopId
+ ///
+ [DataMember(Name = "shopId", EmitDefaultValue = false)]
+ public Guid ShopId { get; set; }
+
+ ///
+ /// Gets or Sets TotalPrice
+ ///
+ [DataMember(Name = "totalPrice", EmitDefaultValue = true)]
+ public float? TotalPrice { get; set; }
+
+ ///
+ /// Gets or Sets TotalRecalculations
+ ///
+ [DataMember(Name = "totalRecalculations", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalRecalculations { get; set; }
+
+ ///
+ /// Gets or Sets TotalOverPoors
+ ///
+ [DataMember(Name = "totalOverPoors", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalOverPoors { get; set; }
+
+ ///
+ /// Gets or Sets TotalSkips
+ ///
+ [DataMember(Name = "totalSkips", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalSkips { get; set; }
+
+ ///
+ /// Gets or Sets TotalUnderPours
+ ///
+ [DataMember(Name = "totalUnderPours", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalUnderPours { get; set; }
+
+ ///
+ /// Gets or Sets FormulaVersionDate
+ ///
+ [DataMember(Name = "formulaVersionDate", IsRequired = true, EmitDefaultValue = true)]
+ public DateTime FormulaVersionDate { get; set; }
+
+ ///
+ /// SomeCode is only required for color mixes
+ ///
+ /// SomeCode is only required for color mixes
+ [DataMember(Name = "someCode", EmitDefaultValue = true)]
+ public string SomeCode { get; set; }
+
+ ///
+ /// Gets or Sets BatchNumber
+ ///
+ [DataMember(Name = "batchNumber", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// BrandId is only required for color mixes
+ ///
+ /// BrandId is only required for color mixes
+ [DataMember(Name = "brandId", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// CategoryCode is not used anymore
+ ///
+ /// CategoryCode is not used anymore
+ [DataMember(Name = "categoryCode", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// Gets or Sets ColorDescription
+ ///
+ [DataMember(Name = "colorDescription", EmitDefaultValue = false)]
+ public string ColorDescription { get; set; }
+
+ ///
+ /// Gets or Sets Comment
+ ///
+ [DataMember(Name = "comment", EmitDefaultValue = false)]
+ public string Comment { get; set; }
+
+ ///
+ /// Gets or Sets CommercialProductCode
+ ///
+ [DataMember(Name = "commercialProductCode", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// Gets or Sets Country
+ ///
+ [DataMember(Name = "country", EmitDefaultValue = false)]
+ public string Country { get; set; }
+
+ ///
+ /// Gets or Sets CreatedBy
+ ///
+ [DataMember(Name = "createdBy", EmitDefaultValue = false)]
+ public string CreatedBy { get; set; }
+
+ ///
+ /// Gets or Sets CreatedByFirstName
+ ///
+ [DataMember(Name = "createdByFirstName", EmitDefaultValue = false)]
+ public string CreatedByFirstName { get; set; }
+
+ ///
+ /// Gets or Sets CreatedByLastName
+ ///
+ [DataMember(Name = "createdByLastName", EmitDefaultValue = false)]
+ public string CreatedByLastName { get; set; }
+
+ ///
+ /// Gets or Sets DeltaECalculationRepaired
+ ///
+ [DataMember(Name = "deltaECalculationRepaired", EmitDefaultValue = false)]
+ public string DeltaECalculationRepaired { get; set; }
+
+ ///
+ /// Gets or Sets DeltaECalculationSprayout
+ ///
+ [DataMember(Name = "deltaECalculationSprayout", EmitDefaultValue = false)]
+ public string DeltaECalculationSprayout { get; set; }
+
+ ///
+ /// Gets or Sets OwnColorVariantNumber
+ ///
+ [DataMember(Name = "ownColorVariantNumber", EmitDefaultValue = true)]
+ public int? OwnColorVariantNumber { get; set; }
+
+ ///
+ /// Gets or Sets PrimerProductId
+ ///
+ [DataMember(Name = "primerProductId", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// ProductName is only required for color mixes
+ ///
+ /// ProductName is only required for color mixes
+ [DataMember(Name = "productName", EmitDefaultValue = false)]
+ public string ProductName { get; set; }
+
+ ///
+ /// Gets or Sets SelectedVersionIndex
+ ///
+ [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)]
+ public int? SelectedVersionIndex { get; set; }
+
+ ///
+ /// Gets or Sets additional properties
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalProperties { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class MixLog {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Description: ").Append(Description).Append("\n");
+ sb.Append(" MixDate: ").Append(MixDate).Append("\n");
+ sb.Append(" ShopId: ").Append(ShopId).Append("\n");
+ sb.Append(" TotalPrice: ").Append(TotalPrice).Append("\n");
+ sb.Append(" TotalRecalculations: ").Append(TotalRecalculations).Append("\n");
+ sb.Append(" TotalOverPoors: ").Append(TotalOverPoors).Append("\n");
+ sb.Append(" TotalSkips: ").Append(TotalSkips).Append("\n");
+ sb.Append(" TotalUnderPours: ").Append(TotalUnderPours).Append("\n");
+ sb.Append(" FormulaVersionDate: ").Append(FormulaVersionDate).Append("\n");
+ sb.Append(" SomeCode: ").Append(SomeCode).Append("\n");
+ sb.Append(" BatchNumber: ").Append(BatchNumber).Append("\n");
+ sb.Append(" BrandCode: ").Append(BrandCode).Append("\n");
+ sb.Append(" BrandId: ").Append(BrandId).Append("\n");
+ sb.Append(" BrandName: ").Append(BrandName).Append("\n");
+ sb.Append(" CategoryCode: ").Append(CategoryCode).Append("\n");
+ sb.Append(" Color: ").Append(Color).Append("\n");
+ sb.Append(" ColorDescription: ").Append(ColorDescription).Append("\n");
+ sb.Append(" Comment: ").Append(Comment).Append("\n");
+ sb.Append(" CommercialProductCode: ").Append(CommercialProductCode).Append("\n");
+ sb.Append(" ProductLineCode: ").Append(ProductLineCode).Append("\n");
+ sb.Append(" Country: ").Append(Country).Append("\n");
+ sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n");
+ sb.Append(" CreatedByFirstName: ").Append(CreatedByFirstName).Append("\n");
+ sb.Append(" CreatedByLastName: ").Append(CreatedByLastName).Append("\n");
+ sb.Append(" DeltaECalculationRepaired: ").Append(DeltaECalculationRepaired).Append("\n");
+ sb.Append(" DeltaECalculationSprayout: ").Append(DeltaECalculationSprayout).Append("\n");
+ sb.Append(" OwnColorVariantNumber: ").Append(OwnColorVariantNumber).Append("\n");
+ sb.Append(" PrimerProductId: ").Append(PrimerProductId).Append("\n");
+ sb.Append(" ProductId: ").Append(ProductId).Append("\n");
+ sb.Append(" ProductName: ").Append(ProductName).Append("\n");
+ sb.Append(" SelectedVersionIndex: ").Append(SelectedVersionIndex).Append("\n");
+ sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as MixLog).AreEqual;
+ }
+
+ ///
+ /// Returns true if MixLog instances are equal
+ ///
+ /// Instance of MixLog to be compared
+ /// Boolean
+ public bool Equals(MixLog input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Id != null)
+ {
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ }
+ if (this.Description != null)
+ {
+ hashCode = (hashCode * 59) + this.Description.GetHashCode();
+ }
+ if (this.MixDate != null)
+ {
+ hashCode = (hashCode * 59) + this.MixDate.GetHashCode();
+ }
+ if (this.ShopId != null)
+ {
+ hashCode = (hashCode * 59) + this.ShopId.GetHashCode();
+ }
+ if (this.TotalPrice != null)
+ {
+ hashCode = (hashCode * 59) + this.TotalPrice.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.TotalRecalculations.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalOverPoors.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalSkips.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalUnderPours.GetHashCode();
+ if (this.FormulaVersionDate != null)
+ {
+ hashCode = (hashCode * 59) + this.FormulaVersionDate.GetHashCode();
+ }
+ if (this.SomeCode != null)
+ {
+ hashCode = (hashCode * 59) + this.SomeCode.GetHashCode();
+ }
+ if (this.BatchNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.BatchNumber.GetHashCode();
+ }
+ if (this.BrandCode != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandCode.GetHashCode();
+ }
+ if (this.BrandId != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandId.GetHashCode();
+ }
+ if (this.BrandName != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandName.GetHashCode();
+ }
+ if (this.CategoryCode != null)
+ {
+ hashCode = (hashCode * 59) + this.CategoryCode.GetHashCode();
+ }
+ if (this.Color != null)
+ {
+ hashCode = (hashCode * 59) + this.Color.GetHashCode();
+ }
+ if (this.ColorDescription != null)
+ {
+ hashCode = (hashCode * 59) + this.ColorDescription.GetHashCode();
+ }
+ if (this.Comment != null)
+ {
+ hashCode = (hashCode * 59) + this.Comment.GetHashCode();
+ }
+ if (this.CommercialProductCode != null)
+ {
+ hashCode = (hashCode * 59) + this.CommercialProductCode.GetHashCode();
+ }
+ if (this.ProductLineCode != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductLineCode.GetHashCode();
+ }
+ if (this.Country != null)
+ {
+ hashCode = (hashCode * 59) + this.Country.GetHashCode();
+ }
+ if (this.CreatedBy != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedBy.GetHashCode();
+ }
+ if (this.CreatedByFirstName != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedByFirstName.GetHashCode();
+ }
+ if (this.CreatedByLastName != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedByLastName.GetHashCode();
+ }
+ if (this.DeltaECalculationRepaired != null)
+ {
+ hashCode = (hashCode * 59) + this.DeltaECalculationRepaired.GetHashCode();
+ }
+ if (this.DeltaECalculationSprayout != null)
+ {
+ hashCode = (hashCode * 59) + this.DeltaECalculationSprayout.GetHashCode();
+ }
+ if (this.OwnColorVariantNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.OwnColorVariantNumber.GetHashCode();
+ }
+ if (this.PrimerProductId != null)
+ {
+ hashCode = (hashCode * 59) + this.PrimerProductId.GetHashCode();
+ }
+ if (this.ProductId != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductId.GetHashCode();
+ }
+ if (this.ProductName != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductName.GetHashCode();
+ }
+ if (this.SelectedVersionIndex != null)
+ {
+ hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode();
+ }
+ if (this.AdditionalProperties != null)
+ {
+ hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
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 34aee45d4c8c..812d18e07a00 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 47c0de878119..6f1e77aaf97a 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 a287358b015c..6b820bf3c828 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 db530572625a..8207ae501a46 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 3f9806f04db7..462d74f8814f 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 91a61870eea7..b32804a33253 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 e35abdf6a86c..a221acde9a50 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 d8c4bd8a3994..1c79c9a8897e 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 6a9590cc8f40..2a0dccf0b0d3 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 e1e27974a67b..16fff45b5ce1 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 ab8f5e0db099..f89dfbdc03f3 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 2356f9020cc8..a4a52325ecdf 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 1a6e079fdab0..8541bd1cd6ad 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/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj
index 29cc7e0a7168..d55df7cd707e 100644
--- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj
+++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj
@@ -32,6 +32,5 @@
-
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 50869c0d913e..6908a8d1779b 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 64e7948bbc7c..37660cc4471e 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 c28989a0b8cf..bf087227320a 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 914a070b2200..7c3f3099d352 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 14e602a9c11b..91db2dd74ebf 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 c9ee356c8fc4..7be39bd559ce 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 ef964fd4e870..fb5ac15b1037 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 663e49f1b1c1..b6e898ae864e 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 4c049227f843..d400927d96cb 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 08848e98cd42..e9963bb4887b 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 8ac7c07be0ac..72fa6d18ef09 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 91ba71b2274c..7178d3a4dde0 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/MultipleFrameworks/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Org.OpenAPITools.csproj
index 29da5e099768..8da7ff6b178f 100644
--- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Org.OpenAPITools.csproj
+++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Org.OpenAPITools.csproj
@@ -33,6 +33,5 @@
-
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 bb723d2baa13..faacf536f173 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 005b8f8058a4..bb7b7576dc2e 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 226952d1cecb..72cbdcf0af0b 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 f99aab99e387..2bf39b773a66 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 aa1ac17604eb..d41c6ec6eb65 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 032a1faeb3ff..bdbe5ac5a483 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 5ce3c4addd9b..66cc8c6d245e 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 c2144b5e3cf6..9b6d809466c8 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 40df92d7c9b1..05aed3a2642b 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 5db6b0e2d1d8..8f072a324cb0 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 da7b3a6ccf9f..265348eca479 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 aab8f4db9c75..75172cd3d506 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 31f4d86fe43d..820f058bf221 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 3e19db154a80..e440a45f0ae1 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 14a7c0f1071b..1af131f829ec 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 7a335d446f4b..20391539c912 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 66c55c3b4737..c5d9f28ccc02 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 eb42bcc1aaa4..71ca9b879223 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 c7224764e2d4..a54829f9a8e2 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 07b6f018f6c1..2ec1d6949ba0 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 052ac9190068..8eec64177930 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 7f8ffca34fa1..6d9805d03479 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 fdd22eb31fdd..f86abfc26e02 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 b0cd4dc042bf..da9b34219d84 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 5fc3dc7f85c2..a1512d751e8e 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 e55d523aad1f..51772309eda8 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 3eef221be3e3..67d2eecc4c26 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 04d69550656d..64b9c31778d1 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 360cb5281e80..551074881d17 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 a52dd988da51..fc431e7b777d 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 5edb4edfea4a..6feda1e8c352 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 27d1193954ea..e7eef0d94a37 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 a741277dd273..a62831e60781 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 a023e3c3e754..7b1c87bbe7da 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 f34052aa706c..69938e7b7c61 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 7218451d9fb0..ee2c09f6c83e 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 76faa5154c86..6c728b477087 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 4b8b7068fe04..818eb45eb7ec 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 47d598a27e6f..2470c13fdb60 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 e036d66bc889..37b02216fb02 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 8160c859b76e..2ead3095aaa1 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 fec56c44fa82..ac44065ab1b0 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 33320b76cf1f..d31817992fe2 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 58eb2c605d15..b8f4e20ed848 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 b7911507a704..3371b44e43c1 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 50119ed39e76..d242dc782d15 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 bb723d2baa13..faacf536f173 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 005b8f8058a4..bb7b7576dc2e 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 226952d1cecb..72cbdcf0af0b 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 f99aab99e387..2bf39b773a66 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 aa1ac17604eb..d41c6ec6eb65 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 032a1faeb3ff..bdbe5ac5a483 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 5ce3c4addd9b..66cc8c6d245e 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 c2144b5e3cf6..9b6d809466c8 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 40df92d7c9b1..05aed3a2642b 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 5db6b0e2d1d8..8f072a324cb0 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 da7b3a6ccf9f..265348eca479 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 aab8f4db9c75..75172cd3d506 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 31f4d86fe43d..820f058bf221 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 3e19db154a80..e440a45f0ae1 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 14a7c0f1071b..1af131f829ec 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 7a335d446f4b..20391539c912 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 66c55c3b4737..c5d9f28ccc02 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 eb42bcc1aaa4..71ca9b879223 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 c7224764e2d4..a54829f9a8e2 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 07b6f018f6c1..2ec1d6949ba0 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 052ac9190068..8eec64177930 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 7f8ffca34fa1..6d9805d03479 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 fdd22eb31fdd..f86abfc26e02 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 b0cd4dc042bf..da9b34219d84 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 5fc3dc7f85c2..a1512d751e8e 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 e55d523aad1f..51772309eda8 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 3eef221be3e3..67d2eecc4c26 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 04d69550656d..64b9c31778d1 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 360cb5281e80..551074881d17 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 a52dd988da51..fc431e7b777d 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 5edb4edfea4a..6feda1e8c352 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 27d1193954ea..e7eef0d94a37 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 a741277dd273..a62831e60781 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 a023e3c3e754..7b1c87bbe7da 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 f34052aa706c..69938e7b7c61 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 7218451d9fb0..ee2c09f6c83e 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 76faa5154c86..6c728b477087 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 4b8b7068fe04..818eb45eb7ec 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 47d598a27e6f..2470c13fdb60 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 e036d66bc889..37b02216fb02 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 8160c859b76e..2ead3095aaa1 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 fec56c44fa82..ac44065ab1b0 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 33320b76cf1f..d31817992fe2 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 58eb2c605d15..b8f4e20ed848 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 b7911507a704..3371b44e43c1 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 50119ed39e76..d242dc782d15 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/net8/EnumMappings/docs/ActivityOutputElementRepresentation.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ActivityOutputElementRepresentation.md
index 21f226b39525..7f37e8a701aa 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ActivityOutputElementRepresentation.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/AdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/AdditionalPropertiesClass.md
index c40cd0f8accb..e9b9f2256d9f 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/AdditionalPropertiesClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ApiResponse.md
index bb723d2baa13..7bae51a82b75 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ApiResponse.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Apple.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Apple.md
index 6261194e4800..7711490a679b 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Apple.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/AppleReq.md
index 005b8f8058a4..bb7b7576dc2e 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/AppleReq.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Banana.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Banana.md
index 226952d1cecb..72cbdcf0af0b 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Banana.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/BananaReq.md
index f99aab99e387..2bf39b773a66 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/BananaReq.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Capitalization.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Capitalization.md
index 1b1352d918f4..e9b31d33a641 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Capitalization.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Cat.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Cat.md
index aa1ac17604eb..d41c6ec6eb65 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Cat.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Category.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Category.md
index 032a1faeb3ff..bdbe5ac5a483 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Category.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/ChildCat.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ChildCat.md
index 8ce6449e5f22..3d0a819274cf 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ChildCat.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/ClassModel.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ClassModel.md
index f39982657c89..9bd76dc855f8 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ClassModel.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/DateOnlyClass.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/DateOnlyClass.md
index 8291b9cb6d78..e56ad3ae3df7 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/DateOnlyClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/DeprecatedObject.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/DeprecatedObject.md
index bb7824a3d640..3b5eacc8e075 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/DeprecatedObject.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Dog.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Dog.md
index 3aa00144e9aa..721425ea1e13 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Dog.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Drawing.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Drawing.md
index 6b7122940afa..50b962c62e8f 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Drawing.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/EnumArrays.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/EnumArrays.md
index 62e34f03dbc3..1691ef8adb0a 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/EnumArrays.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/EnumTest.md
index 5ce3c4addd9b..720f9ae54ace 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/EnumTest.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/File.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/File.md
index 28959feda088..e67cd955342f 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/File.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/FileSchemaTestClass.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/FileSchemaTestClass.md
index 0ce4be56cc72..ccb2d082f662 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/FileSchemaTestClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/FooGetDefaultResponse.md
index dde9b9729b93..28fc2f659f08 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/FooGetDefaultResponse.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/FormatTest.md
index 14efa7b0f63e..4b1c2a4194d6 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/FormatTest.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Fruit.md
index 40df92d7c9b1..c446aa06b20b 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Fruit.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/FruitReq.md
index 5db6b0e2d1d8..8f072a324cb0 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/FruitReq.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/GmFruit.md
index da7b3a6ccf9f..3ef782902939 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/GmFruit.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/HasOnlyReadOnly.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/HasOnlyReadOnly.md
index 64549c18b0a1..b4d3bd8c6d57 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/HasOnlyReadOnly.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/HealthCheckResult.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/HealthCheckResult.md
index f7d1a7eb6886..154fd14dcc7d 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/HealthCheckResult.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/List.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/List.md
index c00ef31e6e25..65dd7bf072a2 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/List.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Mammal.md
index aab8f4db9c75..e82462c4bbaa 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Mammal.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/MixedAnyOf.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/MixedAnyOf.md
index 6a6aa093bebe..1cee08f2a5dc 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/MixedAnyOf.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/MixedAnyOfContent.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/MixedAnyOfContent.md
index 9af972f3219f..deb8047505e8 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/MixedAnyOfContent.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/MixedOneOf.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/MixedOneOf.md
index dc9650a8e3a0..0c5625d3f74c 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/MixedOneOf.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/MixedOneOfContent.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/MixedOneOfContent.md
index 8468f9024f73..4629cf446150 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/MixedOneOfContent.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md
index 050210a3e371..81d4a847dbe2 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/MixedSubId.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/MixedSubId.md
index b9268e37cba6..c5989c5922d9 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/MixedSubId.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Model200Response.md
index 31f4d86fe43d..c719083851e4 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Model200Response.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/ModelClient.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ModelClient.md
index 1d8afe3e1a7a..d525ccdaa521 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ModelClient.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Name.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Name.md
index 3e19db154a80..a89e8d24d4a7 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Name.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/NullableClass.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/NullableClass.md
index 2d238d6a80cb..64578b092a03 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/NullableClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/NumberOnly.md
index 14a7c0f1071b..1af131f829ec 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/NumberOnly.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ObjectWithDeprecatedFields.md
index 7a335d446f4b..a36d8ca84a70 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ObjectWithDeprecatedFields.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Order.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Order.md
index 66c55c3b4737..72f9aefc4239 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Order.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/OuterComposite.md
index eb42bcc1aaa4..e1a61b97a536 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/OuterComposite.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Pet.md
index c7224764e2d4..503652fad78f 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Pet.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/ReadOnlyFirst.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ReadOnlyFirst.md
index b3f4a17ea34e..c3d41e7f8f46 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ReadOnlyFirst.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/RequiredClass.md
index 7f734db8a618..2c00b36dce18 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/RequiredClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Return.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Return.md
index 052ac9190068..8eec64177930 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Return.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/RolesReportsHash.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/RolesReportsHash.md
index 309b0c02615c..e73788a32fb3 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/RolesReportsHash.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/RolesReportsHashRole.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/RolesReportsHashRole.md
index 6f9affc24032..8b9da914ec6c 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/RolesReportsHashRole.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/SpecialModelName.md
index 7f8ffca34fa1..50b87d981d57 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/SpecialModelName.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Tag.md
index fdd22eb31fdd..1f6ddf2cdbe5 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Tag.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/TestCollectionEndingWithWordList.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/TestCollectionEndingWithWordList.md
index 0e5568637b89..3e90bb8a3d6c 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/TestCollectionEndingWithWordList.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/TestInlineFreeformAdditionalPropertiesRequest.md
index c1cf9ce2f812..a2ebd09f076b 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/TestInlineFreeformAdditionalPropertiesRequest.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/User.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/User.md
index b0cd4dc042bf..38d3987d7fc6 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/User.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Whale.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Whale.md
index 5fc3dc7f85c2..a1512d751e8e 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Whale.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/Zebra.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Zebra.md
index 31e686adf0e7..4b4313ba5038 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Zebra.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/docs/ZeroBasedEnumClass.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ZeroBasedEnumClass.md
index b804bc0d7fb4..46002998b553 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ZeroBasedEnumClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
index dce3f9134dbb..a17d3d7d8e1f 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
index c83597fc607e..671a639bc53b 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs
index e55d523aad1f..c0f08ba338c3 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs
index 8d3f9af56df6..0ea98c67d9dc 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs
index 3eef221be3e3..67d2eecc4c26 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs
index 04d69550656d..64b9c31778d1 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs
index 360cb5281e80..551074881d17 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs
index f46fffa0ad6c..17ac7f915b56 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs
index a52dd988da51..fc431e7b777d 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Category.cs
index 5edb4edfea4a..6feda1e8c352 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Category.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs
index f546083c72f5..d85993746d90 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs
index 7a0846aec4e1..e5c5deb9958e 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs
index b260c723ba6b..954f75a6779c 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs
index 2895d518a81f..916002e1213e 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs
index 7437cf68475a..67051676a8b3 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs
index 98c683539e6f..03ade818aa1a 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs
index 27d1193954ea..8c6366ac82fe 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/File.cs
index 72b34e492626..b6a92c42e601 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/File.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
index cd75dba4a925..a969139850d0 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
index 1ce81eece3ee..3b26cdae0ef6 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs
index 59c8975b9295..07a71a8e09c6 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
index 3c6298d7d8d2..c1f73df75345 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs
index 6fe074907762..ede1eddafbd9 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/List.cs
index e06a3f381f12..0a72274a601a 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/List.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs
index 2b62d5975478..b38843c05183 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs
index bd0255888b86..847ba54fba76 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
index 5f51e31aa034..9963b806cbaa 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs
index 1906ce0b2709..2955fbf641e6 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs
index a023e3c3e754..aabfa2cb3032 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs
index 690894994947..d29bc1c83458 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Name.cs
index f34052aa706c..24f6da7f12f7 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Name.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs
index c8fda56e4303..abd9d32c2b26 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs
index 7218451d9fb0..ee2c09f6c83e 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
index 76faa5154c86..43c34a011993 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Order.cs
index cc1ac17c1835..d3ac14c40d3a 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Order.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs
index 47d598a27e6f..0141d3d587b4 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs
index e036d66bc889..95a72ecc587e 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
index 46ed3b3948c0..be5591e483a4 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs
index 76ce29ff67e1..5e4cc386daf5 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Return.cs
index fec56c44fa82..ac44065ab1b0 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Return.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs
index 4523238ad385..ce546ac21674 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
index ef21c6091f38..328b8e00dd8d 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs
index 33320b76cf1f..a0576690b446 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs
index 58eb2c605d15..e0aaa0f4a2a8 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
index f7782b6fd5a7..47d4e4135144 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
index 457b88ac9c74..d43a9a31babb 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/User.cs
index b7911507a704..b0c865a28ecf 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/User.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs
index 50119ed39e76..d242dc782d15 100644
--- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/ParameterMappings/docs/Env.md b/samples/client/petstore/csharp/restsharp/net8/ParameterMappings/docs/Env.md
index c9c69c0f23a2..4cfa41b01195 100644
--- a/samples/client/petstore/csharp/restsharp/net8/ParameterMappings/docs/Env.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/ParameterMappings/docs/PropertyNameMapping.md b/samples/client/petstore/csharp/restsharp/net8/ParameterMappings/docs/PropertyNameMapping.md
index cef568d4db6a..e4ec109b00c7 100644
--- a/samples/client/petstore/csharp/restsharp/net8/ParameterMappings/docs/PropertyNameMapping.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs b/samples/client/petstore/csharp/restsharp/net8/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs
index ea3d938c159a..beac89d0ac89 100644
--- a/samples/client/petstore/csharp/restsharp/net8/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs b/samples/client/petstore/csharp/restsharp/net8/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs
index 597e015588f8..ca79fda72079 100644
--- a/samples/client/petstore/csharp/restsharp/net8/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/ActivityOutputElementRepresentation.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ActivityOutputElementRepresentation.md
index 21f226b39525..7f37e8a701aa 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ActivityOutputElementRepresentation.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/AdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/AdditionalPropertiesClass.md
index c40cd0f8accb..e9b9f2256d9f 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/AdditionalPropertiesClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ApiResponse.md
index bb723d2baa13..7bae51a82b75 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ApiResponse.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Apple.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Apple.md
index 6261194e4800..7711490a679b 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Apple.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/AppleReq.md
index 005b8f8058a4..bb7b7576dc2e 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/AppleReq.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Banana.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Banana.md
index 226952d1cecb..72cbdcf0af0b 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Banana.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/BananaReq.md
index f99aab99e387..2bf39b773a66 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/BananaReq.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Capitalization.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Capitalization.md
index 1b1352d918f4..e9b31d33a641 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Capitalization.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Cat.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Cat.md
index aa1ac17604eb..d41c6ec6eb65 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Cat.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Category.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Category.md
index 032a1faeb3ff..bdbe5ac5a483 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Category.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/ChildCat.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ChildCat.md
index 8ce6449e5f22..3d0a819274cf 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ChildCat.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/ClassModel.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ClassModel.md
index f39982657c89..9bd76dc855f8 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ClassModel.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/DateOnlyClass.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/DateOnlyClass.md
index 8291b9cb6d78..e56ad3ae3df7 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/DateOnlyClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/DeprecatedObject.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/DeprecatedObject.md
index bb7824a3d640..3b5eacc8e075 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/DeprecatedObject.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Dog.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Dog.md
index 3aa00144e9aa..721425ea1e13 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Dog.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Drawing.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Drawing.md
index 6b7122940afa..50b962c62e8f 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Drawing.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/EnumArrays.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/EnumArrays.md
index 62e34f03dbc3..1691ef8adb0a 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/EnumArrays.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/EnumTest.md
index 5ce3c4addd9b..720f9ae54ace 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/EnumTest.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/File.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/File.md
index 28959feda088..e67cd955342f 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/File.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/FileSchemaTestClass.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/FileSchemaTestClass.md
index 0ce4be56cc72..ccb2d082f662 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/FileSchemaTestClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/FooGetDefaultResponse.md
index dde9b9729b93..28fc2f659f08 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/FooGetDefaultResponse.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/FormatTest.md
index 5c185c58a738..c2462d2b626d 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/FormatTest.md
+++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/FormatTest.md
@@ -4,31 +4,31 @@
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]
-**StringFormattedAsDecimal** | **decimal** | | [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]
+**StringFormattedAsDecimal** | **decimal?** | | [optional]
**StringFormattedAsDecimalRequired** | **decimal** | |
[[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/net8/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Fruit.md
index 40df92d7c9b1..c446aa06b20b 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Fruit.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/FruitReq.md
index 5db6b0e2d1d8..8f072a324cb0 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/FruitReq.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/GmFruit.md
index da7b3a6ccf9f..3ef782902939 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/GmFruit.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/HasOnlyReadOnly.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/HasOnlyReadOnly.md
index 64549c18b0a1..b4d3bd8c6d57 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/HasOnlyReadOnly.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/HealthCheckResult.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/HealthCheckResult.md
index f7d1a7eb6886..154fd14dcc7d 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/HealthCheckResult.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/List.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/List.md
index c00ef31e6e25..65dd7bf072a2 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/List.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Mammal.md
index aab8f4db9c75..e82462c4bbaa 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Mammal.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/MixLog.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixLog.md
new file mode 100644
index 000000000000..2bd04a68fda4
--- /dev/null
+++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixLog.md
@@ -0,0 +1,41 @@
+# Org.OpenAPITools.Model.MixLog
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **Guid** | |
+**Description** | **string** | |
+**MixDate** | **DateTime** | |
+**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]
+**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]
+
+[[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/net8/Petstore/docs/MixedAnyOf.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixedAnyOf.md
index 6a6aa093bebe..1cee08f2a5dc 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixedAnyOf.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/MixedAnyOfContent.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixedAnyOfContent.md
index 9af972f3219f..deb8047505e8 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixedAnyOfContent.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/MixedOneOf.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixedOneOf.md
index dc9650a8e3a0..0c5625d3f74c 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixedOneOf.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/MixedOneOfContent.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixedOneOfContent.md
index 8468f9024f73..4629cf446150 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixedOneOfContent.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md
index 050210a3e371..81d4a847dbe2 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/MixedSubId.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixedSubId.md
index b9268e37cba6..c5989c5922d9 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/MixedSubId.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Model200Response.md
index 31f4d86fe43d..c719083851e4 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Model200Response.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/ModelClient.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ModelClient.md
index 1d8afe3e1a7a..d525ccdaa521 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ModelClient.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Name.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Name.md
index 3e19db154a80..a89e8d24d4a7 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Name.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/NullableClass.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/NullableClass.md
index 2d238d6a80cb..64578b092a03 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/NullableClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/NumberOnly.md
index 14a7c0f1071b..1af131f829ec 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/NumberOnly.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ObjectWithDeprecatedFields.md
index 7a335d446f4b..a36d8ca84a70 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ObjectWithDeprecatedFields.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Order.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Order.md
index 66c55c3b4737..72f9aefc4239 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Order.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/OuterComposite.md
index eb42bcc1aaa4..e1a61b97a536 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/OuterComposite.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Pet.md
index c7224764e2d4..503652fad78f 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Pet.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/ReadOnlyFirst.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ReadOnlyFirst.md
index b3f4a17ea34e..c3d41e7f8f46 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ReadOnlyFirst.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/RequiredClass.md
index 7f734db8a618..2c00b36dce18 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/RequiredClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Result.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Result.md
index d2de0c7ac041..551d280680e8 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Result.md
+++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Result.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Code** | **string** | Result code | [optional]
-**Uuid** | **string** | Result unique identifier | [optional]
+**Code** | **string?** | Result code | [optional]
+**Uuid** | **string?** | Result unique identifier | [optional]
**Data** | **Dictionary<string, string>** | list of named parameters for current message | [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/net8/Petstore/docs/Return.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Return.md
index a10daf95cf1d..3cc33993a8da 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Return.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/RolesReportsHash.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/RolesReportsHash.md
index 309b0c02615c..e73788a32fb3 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/RolesReportsHash.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/RolesReportsHashRole.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/RolesReportsHashRole.md
index 6f9affc24032..8b9da914ec6c 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/RolesReportsHashRole.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/SpecialModelName.md
index 7f8ffca34fa1..50b87d981d57 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/SpecialModelName.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Tag.md
index fdd22eb31fdd..1f6ddf2cdbe5 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Tag.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/TestCollectionEndingWithWordList.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/TestCollectionEndingWithWordList.md
index 0e5568637b89..3e90bb8a3d6c 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/TestCollectionEndingWithWordList.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md
index c1cf9ce2f812..a2ebd09f076b 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/TestResult.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/TestResult.md
index d70eaf2b64a1..8a71e41dda1c 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/TestResult.md
+++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/TestResult.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Code** | **TestResultCode** | | [optional]
-**Uuid** | **string** | Result unique identifier | [optional]
+**Code** | [**TestResultCode?**](TestResultCode.md) | | [optional]
+**Uuid** | **string?** | Result unique identifier | [optional]
**Data** | **Dictionary<string, string>** | list of named parameters for current message | [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/net8/Petstore/docs/User.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/User.md
index b0cd4dc042bf..38d3987d7fc6 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/User.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Whale.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Whale.md
index 5fc3dc7f85c2..a1512d751e8e 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Whale.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/Zebra.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Zebra.md
index 31e686adf0e7..4b4313ba5038 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Zebra.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/docs/ZeroBasedEnumClass.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ZeroBasedEnumClass.md
index b804bc0d7fb4..46002998b553 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ZeroBasedEnumClass.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
index 61656615b137..397d4376436a 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
index 6f73dd2a107e..f824825b4bee 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs
index b11aff203a77..9e8e675b975d 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs
index 5d0bdb98c302..35e26453f627 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs
index 3eef221be3e3..67d2eecc4c26 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs
index dffda1bedc28..745a0aa11bfe 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs
index 360cb5281e80..551074881d17 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs
index 78a9791fcd6f..47cedcae2caf 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs
index c3e81b768d43..990318fbae14 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs
index 85ea41da1a6c..6a0063088076 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs
index 92f35a336bad..a4ee7666678c 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs
index f8060109b1a7..d3a21750afc9 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs
index f66839f5b4f0..4772c8172603 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs
index a852e8c459a1..fd8e7e4f4e36 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs
index 343a162cbf1c..092edfae0c51 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs
index 98c683539e6f..03ade818aa1a 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs
index bf17521990cd..35cdb452cada 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/File.cs
index 328601f24b6c..60d2e560ccd4 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/File.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
index d3f9f7cba774..334dddf0eba0 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
index 3069deb125e7..2375775c3239 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs
index 1fb5c55b350e..467e6c6b74ec 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs
@@ -110,61 +110,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
@@ -176,25 +176,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
@@ -206,7 +206,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
@@ -224,7 +224,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
@@ -233,7 +233,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
@@ -246,27 +246,27 @@ 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 StringFormattedAsDecimal
///
[DataMember(Name = "string_formatted_as_decimal", EmitDefaultValue = false)]
- public decimal StringFormattedAsDecimal { get; set; }
+ public decimal? StringFormattedAsDecimal { get; set; }
///
/// Gets or Sets StringFormattedAsDecimalRequired
@@ -350,20 +350,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();
@@ -404,7 +443,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
}
- hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
+ if (this.StringFormattedAsDecimal != null)
+ {
+ hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
return hashCode;
}
@@ -417,74 +459,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" });
}
@@ -501,32 +543,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)
{
@@ -547,7 +589,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)
{
@@ -556,7 +598,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)
{
@@ -565,7 +607,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/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
index 712d33733e8d..8bb9ed3e69a4 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs
index ec05e7c4c85a..c372186ee856 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/List.cs
index 67e6c5a616a1..1ed3afd2a3dc 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/List.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs
new file mode 100644
index 000000000000..75bb377db76c
--- /dev/null
+++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs
@@ -0,0 +1,530 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// MixLog
+ ///
+ [DataContract(Name = "MixLog")]
+ public partial class MixLog : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected MixLog() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// id (required).
+ /// description (required).
+ /// mixDate (required).
+ /// shopId.
+ /// totalPrice.
+ /// totalRecalculations (required).
+ /// totalOverPoors (required).
+ /// totalSkips (required).
+ /// totalUnderPours (required).
+ /// formulaVersionDate (required).
+ /// SomeCode is only required for color mixes.
+ /// batchNumber.
+ /// BrandCode is only required for non-color mixes.
+ /// BrandId is only required for color mixes.
+ /// BrandName is only required for color mixes.
+ /// CategoryCode is not used anymore.
+ /// Color is only required for color mixes.
+ /// colorDescription.
+ /// comment.
+ /// commercialProductCode.
+ /// ProductLineCode is only required for color mixes.
+ /// country.
+ /// createdBy.
+ /// createdByFirstName.
+ /// createdByLastName.
+ /// deltaECalculationRepaired.
+ /// deltaECalculationSprayout.
+ /// ownColorVariantNumber.
+ /// primerProductId.
+ /// ProductId is only required for color mixes.
+ /// ProductName is only required for color mixes.
+ /// selectedVersionIndex.
+ public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid shopId = default(Guid), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int selectedVersionIndex = default(int))
+ {
+ this.Id = id;
+ // to ensure "description" is required (not null)
+ if (description == null)
+ {
+ throw new ArgumentNullException("description is a required property for MixLog and cannot be null");
+ }
+ this.Description = description;
+ this.MixDate = mixDate;
+ this.TotalRecalculations = totalRecalculations;
+ this.TotalOverPoors = totalOverPoors;
+ this.TotalSkips = totalSkips;
+ this.TotalUnderPours = totalUnderPours;
+ this.FormulaVersionDate = formulaVersionDate;
+ this.ShopId = shopId;
+ this.TotalPrice = totalPrice;
+ this.SomeCode = someCode;
+ this.BatchNumber = batchNumber;
+ this.BrandCode = brandCode;
+ this.BrandId = brandId;
+ this.BrandName = brandName;
+ this.CategoryCode = categoryCode;
+ this.Color = color;
+ this.ColorDescription = colorDescription;
+ this.Comment = comment;
+ this.CommercialProductCode = commercialProductCode;
+ this.ProductLineCode = productLineCode;
+ this.Country = country;
+ this.CreatedBy = createdBy;
+ this.CreatedByFirstName = createdByFirstName;
+ this.CreatedByLastName = createdByLastName;
+ this.DeltaECalculationRepaired = deltaECalculationRepaired;
+ this.DeltaECalculationSprayout = deltaECalculationSprayout;
+ this.OwnColorVariantNumber = ownColorVariantNumber;
+ this.PrimerProductId = primerProductId;
+ this.ProductId = productId;
+ this.ProductName = productName;
+ this.SelectedVersionIndex = selectedVersionIndex;
+ }
+
+ ///
+ /// Gets or Sets Id
+ ///
+ [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
+ public Guid Id { get; set; }
+
+ ///
+ /// Gets or Sets Description
+ ///
+ [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
+ public string Description { get; set; }
+
+ ///
+ /// Gets or Sets MixDate
+ ///
+ [DataMember(Name = "mixDate", IsRequired = true, EmitDefaultValue = true)]
+ public DateTime MixDate { get; set; }
+
+ ///
+ /// Gets or Sets ShopId
+ ///
+ [DataMember(Name = "shopId", EmitDefaultValue = false)]
+ public Guid? ShopId { get; set; }
+
+ ///
+ /// Gets or Sets TotalPrice
+ ///
+ [DataMember(Name = "totalPrice", EmitDefaultValue = true)]
+ public float? TotalPrice { get; set; }
+
+ ///
+ /// Gets or Sets TotalRecalculations
+ ///
+ [DataMember(Name = "totalRecalculations", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalRecalculations { get; set; }
+
+ ///
+ /// Gets or Sets TotalOverPoors
+ ///
+ [DataMember(Name = "totalOverPoors", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalOverPoors { get; set; }
+
+ ///
+ /// Gets or Sets TotalSkips
+ ///
+ [DataMember(Name = "totalSkips", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalSkips { get; set; }
+
+ ///
+ /// Gets or Sets TotalUnderPours
+ ///
+ [DataMember(Name = "totalUnderPours", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalUnderPours { get; set; }
+
+ ///
+ /// Gets or Sets FormulaVersionDate
+ ///
+ [DataMember(Name = "formulaVersionDate", IsRequired = true, EmitDefaultValue = true)]
+ public DateTime FormulaVersionDate { get; set; }
+
+ ///
+ /// SomeCode is only required for color mixes
+ ///
+ /// SomeCode is only required for color mixes
+ [DataMember(Name = "someCode", EmitDefaultValue = true)]
+ public string? SomeCode { get; set; }
+
+ ///
+ /// Gets or Sets BatchNumber
+ ///
+ [DataMember(Name = "batchNumber", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// BrandId is only required for color mixes
+ ///
+ /// BrandId is only required for color mixes
+ [DataMember(Name = "brandId", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// CategoryCode is not used anymore
+ ///
+ /// CategoryCode is not used anymore
+ [DataMember(Name = "categoryCode", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// Gets or Sets ColorDescription
+ ///
+ [DataMember(Name = "colorDescription", EmitDefaultValue = false)]
+ public string? ColorDescription { get; set; }
+
+ ///
+ /// Gets or Sets Comment
+ ///
+ [DataMember(Name = "comment", EmitDefaultValue = false)]
+ public string? Comment { get; set; }
+
+ ///
+ /// Gets or Sets CommercialProductCode
+ ///
+ [DataMember(Name = "commercialProductCode", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// Gets or Sets Country
+ ///
+ [DataMember(Name = "country", EmitDefaultValue = false)]
+ public string? Country { get; set; }
+
+ ///
+ /// Gets or Sets CreatedBy
+ ///
+ [DataMember(Name = "createdBy", EmitDefaultValue = false)]
+ public string? CreatedBy { get; set; }
+
+ ///
+ /// Gets or Sets CreatedByFirstName
+ ///
+ [DataMember(Name = "createdByFirstName", EmitDefaultValue = false)]
+ public string? CreatedByFirstName { get; set; }
+
+ ///
+ /// Gets or Sets CreatedByLastName
+ ///
+ [DataMember(Name = "createdByLastName", EmitDefaultValue = false)]
+ public string? CreatedByLastName { get; set; }
+
+ ///
+ /// Gets or Sets DeltaECalculationRepaired
+ ///
+ [DataMember(Name = "deltaECalculationRepaired", EmitDefaultValue = false)]
+ public string? DeltaECalculationRepaired { get; set; }
+
+ ///
+ /// Gets or Sets DeltaECalculationSprayout
+ ///
+ [DataMember(Name = "deltaECalculationSprayout", EmitDefaultValue = false)]
+ public string? DeltaECalculationSprayout { get; set; }
+
+ ///
+ /// Gets or Sets OwnColorVariantNumber
+ ///
+ [DataMember(Name = "ownColorVariantNumber", EmitDefaultValue = true)]
+ public int? OwnColorVariantNumber { get; set; }
+
+ ///
+ /// Gets or Sets PrimerProductId
+ ///
+ [DataMember(Name = "primerProductId", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// ProductName is only required for color mixes
+ ///
+ /// ProductName is only required for color mixes
+ [DataMember(Name = "productName", EmitDefaultValue = false)]
+ public string? ProductName { get; set; }
+
+ ///
+ /// Gets or Sets SelectedVersionIndex
+ ///
+ [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)]
+ public int? SelectedVersionIndex { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class MixLog {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Description: ").Append(Description).Append("\n");
+ sb.Append(" MixDate: ").Append(MixDate).Append("\n");
+ sb.Append(" ShopId: ").Append(ShopId).Append("\n");
+ sb.Append(" TotalPrice: ").Append(TotalPrice).Append("\n");
+ sb.Append(" TotalRecalculations: ").Append(TotalRecalculations).Append("\n");
+ sb.Append(" TotalOverPoors: ").Append(TotalOverPoors).Append("\n");
+ sb.Append(" TotalSkips: ").Append(TotalSkips).Append("\n");
+ sb.Append(" TotalUnderPours: ").Append(TotalUnderPours).Append("\n");
+ sb.Append(" FormulaVersionDate: ").Append(FormulaVersionDate).Append("\n");
+ sb.Append(" SomeCode: ").Append(SomeCode).Append("\n");
+ sb.Append(" BatchNumber: ").Append(BatchNumber).Append("\n");
+ sb.Append(" BrandCode: ").Append(BrandCode).Append("\n");
+ sb.Append(" BrandId: ").Append(BrandId).Append("\n");
+ sb.Append(" BrandName: ").Append(BrandName).Append("\n");
+ sb.Append(" CategoryCode: ").Append(CategoryCode).Append("\n");
+ sb.Append(" Color: ").Append(Color).Append("\n");
+ sb.Append(" ColorDescription: ").Append(ColorDescription).Append("\n");
+ sb.Append(" Comment: ").Append(Comment).Append("\n");
+ sb.Append(" CommercialProductCode: ").Append(CommercialProductCode).Append("\n");
+ sb.Append(" ProductLineCode: ").Append(ProductLineCode).Append("\n");
+ sb.Append(" Country: ").Append(Country).Append("\n");
+ sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n");
+ sb.Append(" CreatedByFirstName: ").Append(CreatedByFirstName).Append("\n");
+ sb.Append(" CreatedByLastName: ").Append(CreatedByLastName).Append("\n");
+ sb.Append(" DeltaECalculationRepaired: ").Append(DeltaECalculationRepaired).Append("\n");
+ sb.Append(" DeltaECalculationSprayout: ").Append(DeltaECalculationSprayout).Append("\n");
+ sb.Append(" OwnColorVariantNumber: ").Append(OwnColorVariantNumber).Append("\n");
+ sb.Append(" PrimerProductId: ").Append(PrimerProductId).Append("\n");
+ sb.Append(" ProductId: ").Append(ProductId).Append("\n");
+ sb.Append(" ProductName: ").Append(ProductName).Append("\n");
+ sb.Append(" SelectedVersionIndex: ").Append(SelectedVersionIndex).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as MixLog).AreEqual;
+ }
+
+ ///
+ /// Returns true if MixLog instances are equal
+ ///
+ /// Instance of MixLog to be compared
+ /// Boolean
+ public bool Equals(MixLog input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Id != null)
+ {
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ }
+ if (this.Description != null)
+ {
+ hashCode = (hashCode * 59) + this.Description.GetHashCode();
+ }
+ if (this.MixDate != null)
+ {
+ hashCode = (hashCode * 59) + this.MixDate.GetHashCode();
+ }
+ if (this.ShopId != null)
+ {
+ hashCode = (hashCode * 59) + this.ShopId.GetHashCode();
+ }
+ if (this.TotalPrice != null)
+ {
+ hashCode = (hashCode * 59) + this.TotalPrice.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.TotalRecalculations.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalOverPoors.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalSkips.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalUnderPours.GetHashCode();
+ if (this.FormulaVersionDate != null)
+ {
+ hashCode = (hashCode * 59) + this.FormulaVersionDate.GetHashCode();
+ }
+ if (this.SomeCode != null)
+ {
+ hashCode = (hashCode * 59) + this.SomeCode.GetHashCode();
+ }
+ if (this.BatchNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.BatchNumber.GetHashCode();
+ }
+ if (this.BrandCode != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandCode.GetHashCode();
+ }
+ if (this.BrandId != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandId.GetHashCode();
+ }
+ if (this.BrandName != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandName.GetHashCode();
+ }
+ if (this.CategoryCode != null)
+ {
+ hashCode = (hashCode * 59) + this.CategoryCode.GetHashCode();
+ }
+ if (this.Color != null)
+ {
+ hashCode = (hashCode * 59) + this.Color.GetHashCode();
+ }
+ if (this.ColorDescription != null)
+ {
+ hashCode = (hashCode * 59) + this.ColorDescription.GetHashCode();
+ }
+ if (this.Comment != null)
+ {
+ hashCode = (hashCode * 59) + this.Comment.GetHashCode();
+ }
+ if (this.CommercialProductCode != null)
+ {
+ hashCode = (hashCode * 59) + this.CommercialProductCode.GetHashCode();
+ }
+ if (this.ProductLineCode != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductLineCode.GetHashCode();
+ }
+ if (this.Country != null)
+ {
+ hashCode = (hashCode * 59) + this.Country.GetHashCode();
+ }
+ if (this.CreatedBy != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedBy.GetHashCode();
+ }
+ if (this.CreatedByFirstName != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedByFirstName.GetHashCode();
+ }
+ if (this.CreatedByLastName != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedByLastName.GetHashCode();
+ }
+ if (this.DeltaECalculationRepaired != null)
+ {
+ hashCode = (hashCode * 59) + this.DeltaECalculationRepaired.GetHashCode();
+ }
+ if (this.DeltaECalculationSprayout != null)
+ {
+ hashCode = (hashCode * 59) + this.DeltaECalculationSprayout.GetHashCode();
+ }
+ if (this.OwnColorVariantNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.OwnColorVariantNumber.GetHashCode();
+ }
+ if (this.PrimerProductId != null)
+ {
+ hashCode = (hashCode * 59) + this.PrimerProductId.GetHashCode();
+ }
+ if (this.ProductId != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductId.GetHashCode();
+ }
+ if (this.ProductName != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductName.GetHashCode();
+ }
+ if (this.SelectedVersionIndex != null)
+ {
+ hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs
index 9d7d88aea93f..450587d1b527 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs
index 2cb289fae178..7c519987740a 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
index f081d2819590..c3b6808b3250 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs
index c56e0ada331a..52d85bc18ce2 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs
index 11efe092a28b..ab1774f2687c 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs
index 7b75059cad1b..efbba684091c 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs
index 2021a0066590..48f636977b2a 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs
index c8fda56e4303..abd9d32c2b26 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs
index f38cf7d6affe..9a21c0ebc1c2 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
index e2f9be14b2e6..56bfa30f0236 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs
index 54e252b2feb2..7593aa13c6c4 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs
index 1a8d974b060f..2fa00f4465f5 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs
index 51b091ba5106..e4623d43b040 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
index 7551b621ebd8..c7f14fff4eb6 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs
index ea386b3a0c54..1df1019694a8 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs
index 6d39a9cf05c8..350c310e243a 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs
@@ -50,14 +50,14 @@ public partial class Result : IEquatable, IValidatableObject
///
/// Result code
[DataMember(Name = "code", EmitDefaultValue = false)]
- public string Code { get; set; }
+ public string? Code { get; set; }
///
/// Result unique identifier
///
/// Result unique identifier
[DataMember(Name = "uuid", EmitDefaultValue = false)]
- public string Uuid { get; set; }
+ public string? Uuid { get; set; }
///
/// list of named parameters for current message
diff --git a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs
index 9d08c25bbd0f..e1b01834583b 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs
index ebe5562ffe67..be7f1fa1b744 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
index 60e2f9e50c07..77378b9fd5e8 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs
index 867d43acaf4c..84d34b5a1f61 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs
index a9dd75cb5cbd..51da73d95177 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
index bb23b1f52456..37845f87df11 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
index 457b88ac9c74..d43a9a31babb 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs
index 463ce4a7a866..eafd9fc7d2db 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs
@@ -32,12 +32,6 @@ namespace Org.OpenAPITools.Model
[DataContract(Name = "TestResult")]
public partial class TestResult : IEquatable, IValidatableObject
{
-
- ///
- /// Gets or Sets Code
- ///
- [DataMember(Name = "code", EmitDefaultValue = false)]
- public TestResultCode? Code { get; set; }
///
/// Initializes a new instance of the class.
///
@@ -51,12 +45,18 @@ public partial class TestResult : IEquatable, IValidatableObject
this.Data = data;
}
+ ///
+ /// Gets or Sets Code
+ ///
+ [DataMember(Name = "code", EmitDefaultValue = false)]
+ public TestResultCode? Code { get; set; }
+
///
/// Result unique identifier
///
/// Result unique identifier
[DataMember(Name = "uuid", EmitDefaultValue = false)]
- public string Uuid { get; set; }
+ public string? Uuid { get; set; }
///
/// list of named parameters for current message
@@ -118,7 +118,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.Uuid != null)
{
hashCode = (hashCode * 59) + this.Uuid.GetHashCode();
diff --git a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/User.cs
index 0b1913457735..20816334774c 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/User.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs
index cd6eb8c0b1be..a13202366aaf 100644
--- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/UseDateTimeForDate/docs/NowGet200Response.md b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/docs/NowGet200Response.md
index 932034b2af2d..462d3fa0dc70 100644
--- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/docs/NowGet200Response.md
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs
index 84c9909059ab..31e8171b2c0a 100644
--- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/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/net8/useVirtualForHooks/docs/Category.md b/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/docs/Category.md
index 64e7948bbc7c..021e94e7ab7d 100644
--- a/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/docs/Category.md
+++ b/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/docs/Category.md
@@ -5,8 +5,8 @@ A category for a pet
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/net8/useVirtualForHooks/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/docs/Pet.md
index 914a070b2200..ab4a1a44b0e1 100644
--- a/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/docs/Pet.md
+++ b/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/docs/Pet.md
@@ -5,12 +5,12 @@ A pet for sale in the pet store
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/net8/useVirtualForHooks/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/docs/Tag.md
index 14e602a9c11b..d94ba0fe65b6 100644
--- a/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/docs/Tag.md
+++ b/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/docs/Tag.md
@@ -5,8 +5,8 @@ A tag for a pet
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/net8/useVirtualForHooks/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/src/Org.OpenAPITools/Model/Category.cs
index f2702140edab..6df31cbd1dc9 100644
--- a/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/src/Org.OpenAPITools/Model/Category.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/src/Org.OpenAPITools/Model/Category.cs
@@ -46,13 +46,13 @@ public partial class Category : 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
@@ -85,7 +85,7 @@ public virtual string ToJson()
IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
if (this.Name != null) {
- // Name (string) pattern
+ // Name (string?) pattern
Regex regexName = new Regex(@"^[a-zA-Z0-9]+[a-zA-Z0-9\.\-_]*[a-zA-Z0-9]+$", RegexOptions.CultureInvariant);
if (!regexName.Match(this.Name).Success)
{
diff --git a/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/src/Org.OpenAPITools/Model/Pet.cs
index 4ef350025b52..d9c4e92c567e 100644
--- a/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/src/Org.OpenAPITools/Model/Pet.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/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
diff --git a/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/src/Org.OpenAPITools/Model/Tag.cs
index fa80ee84810b..f1f2a7377b96 100644
--- a/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/src/Org.OpenAPITools/Model/Tag.cs
+++ b/samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/src/Org.OpenAPITools/Model/Tag.cs
@@ -46,13 +46,13 @@ public partial class Tag : 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
diff --git a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ActivityOutputElementRepresentation.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ActivityOutputElementRepresentation.md
index 21f226b39525..7f37e8a701aa 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ActivityOutputElementRepresentation.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/AdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/AdditionalPropertiesClass.md
index c40cd0f8accb..e9b9f2256d9f 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/AdditionalPropertiesClass.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ApiResponse.md
index bb723d2baa13..7bae51a82b75 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ApiResponse.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Apple.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Apple.md
index 6261194e4800..7711490a679b 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Apple.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/AppleReq.md
index 005b8f8058a4..bb7b7576dc2e 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/AppleReq.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Banana.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Banana.md
index 226952d1cecb..72cbdcf0af0b 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Banana.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/BananaReq.md
index f99aab99e387..2bf39b773a66 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/BananaReq.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Capitalization.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Capitalization.md
index 1b1352d918f4..e9b31d33a641 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Capitalization.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Cat.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Cat.md
index aa1ac17604eb..d41c6ec6eb65 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Cat.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Category.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Category.md
index 032a1faeb3ff..bdbe5ac5a483 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Category.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/ChildCat.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ChildCat.md
index 8ce6449e5f22..3d0a819274cf 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ChildCat.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/ClassModel.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ClassModel.md
index f39982657c89..9bd76dc855f8 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ClassModel.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/DateOnlyClass.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/DateOnlyClass.md
index 8291b9cb6d78..e56ad3ae3df7 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/DateOnlyClass.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/DeprecatedObject.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/DeprecatedObject.md
index bb7824a3d640..3b5eacc8e075 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/DeprecatedObject.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Dog.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Dog.md
index 3aa00144e9aa..721425ea1e13 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Dog.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Drawing.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Drawing.md
index 6b7122940afa..50b962c62e8f 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Drawing.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/EnumArrays.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/EnumArrays.md
index 62e34f03dbc3..1691ef8adb0a 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/EnumArrays.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/EnumTest.md
index 5ce3c4addd9b..720f9ae54ace 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/EnumTest.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/File.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/File.md
index 28959feda088..e67cd955342f 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/File.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/FileSchemaTestClass.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/FileSchemaTestClass.md
index 0ce4be56cc72..ccb2d082f662 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/FileSchemaTestClass.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/FooGetDefaultResponse.md
index dde9b9729b93..28fc2f659f08 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/FooGetDefaultResponse.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/FormatTest.md
index 14efa7b0f63e..4b1c2a4194d6 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/FormatTest.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Fruit.md
index 40df92d7c9b1..c446aa06b20b 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Fruit.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/FruitReq.md
index 5db6b0e2d1d8..8f072a324cb0 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/FruitReq.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/GmFruit.md
index da7b3a6ccf9f..3ef782902939 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/GmFruit.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/HasOnlyReadOnly.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/HasOnlyReadOnly.md
index 64549c18b0a1..b4d3bd8c6d57 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/HasOnlyReadOnly.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/HealthCheckResult.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/HealthCheckResult.md
index f7d1a7eb6886..154fd14dcc7d 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/HealthCheckResult.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/List.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/List.md
index c00ef31e6e25..65dd7bf072a2 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/List.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Mammal.md
index aab8f4db9c75..e82462c4bbaa 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Mammal.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/MixedAnyOf.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/MixedAnyOf.md
index 6a6aa093bebe..1cee08f2a5dc 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/MixedAnyOf.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/MixedAnyOfContent.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/MixedAnyOfContent.md
index 9af972f3219f..deb8047505e8 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/MixedAnyOfContent.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/MixedOneOf.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/MixedOneOf.md
index dc9650a8e3a0..0c5625d3f74c 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/MixedOneOf.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/MixedOneOfContent.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/MixedOneOfContent.md
index 8468f9024f73..4629cf446150 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/MixedOneOfContent.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md
index 050210a3e371..81d4a847dbe2 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/MixedSubId.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/MixedSubId.md
index b9268e37cba6..c5989c5922d9 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/MixedSubId.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Model200Response.md
index 31f4d86fe43d..c719083851e4 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Model200Response.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/ModelClient.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ModelClient.md
index 1d8afe3e1a7a..d525ccdaa521 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ModelClient.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Name.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Name.md
index 3e19db154a80..a89e8d24d4a7 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Name.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/NullableClass.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/NullableClass.md
index 2d238d6a80cb..64578b092a03 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/NullableClass.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/NumberOnly.md
index 14a7c0f1071b..1af131f829ec 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/NumberOnly.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ObjectWithDeprecatedFields.md
index 7a335d446f4b..a36d8ca84a70 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ObjectWithDeprecatedFields.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Order.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Order.md
index 66c55c3b4737..72f9aefc4239 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Order.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/OuterComposite.md
index eb42bcc1aaa4..e1a61b97a536 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/OuterComposite.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Pet.md
index c7224764e2d4..503652fad78f 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Pet.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/ReadOnlyFirst.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ReadOnlyFirst.md
index b3f4a17ea34e..c3d41e7f8f46 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ReadOnlyFirst.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/RequiredClass.md
index 7f734db8a618..2c00b36dce18 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/RequiredClass.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Return.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Return.md
index 052ac9190068..8eec64177930 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Return.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/RolesReportsHash.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/RolesReportsHash.md
index 309b0c02615c..e73788a32fb3 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/RolesReportsHash.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/RolesReportsHashRole.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/RolesReportsHashRole.md
index 6f9affc24032..8b9da914ec6c 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/RolesReportsHashRole.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/SpecialModelName.md
index 7f8ffca34fa1..50b87d981d57 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/SpecialModelName.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Tag.md
index fdd22eb31fdd..1f6ddf2cdbe5 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Tag.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/TestCollectionEndingWithWordList.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/TestCollectionEndingWithWordList.md
index 0e5568637b89..3e90bb8a3d6c 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/TestCollectionEndingWithWordList.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/TestInlineFreeformAdditionalPropertiesRequest.md
index c1cf9ce2f812..a2ebd09f076b 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/TestInlineFreeformAdditionalPropertiesRequest.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/User.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/User.md
index b0cd4dc042bf..38d3987d7fc6 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/User.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Whale.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Whale.md
index 5fc3dc7f85c2..a1512d751e8e 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Whale.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/Zebra.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Zebra.md
index 31e686adf0e7..4b4313ba5038 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Zebra.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/docs/ZeroBasedEnumClass.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ZeroBasedEnumClass.md
index b804bc0d7fb4..46002998b553 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ZeroBasedEnumClass.md
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
index dce3f9134dbb..a17d3d7d8e1f 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
index c83597fc607e..671a639bc53b 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs
index e55d523aad1f..c0f08ba338c3 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs
index 8d3f9af56df6..0ea98c67d9dc 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs
index 3eef221be3e3..67d2eecc4c26 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs
index 04d69550656d..64b9c31778d1 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs
index 360cb5281e80..551074881d17 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs
index f46fffa0ad6c..17ac7f915b56 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs
index a52dd988da51..fc431e7b777d 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Category.cs
index 5edb4edfea4a..6feda1e8c352 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Category.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs
index f546083c72f5..d85993746d90 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs
index 7a0846aec4e1..e5c5deb9958e 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs
index b260c723ba6b..954f75a6779c 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs
index 2895d518a81f..916002e1213e 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs
index 7437cf68475a..67051676a8b3 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs
index 98c683539e6f..03ade818aa1a 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs
index 27d1193954ea..8c6366ac82fe 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/File.cs
index 72b34e492626..b6a92c42e601 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/File.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
index cd75dba4a925..a969139850d0 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
index 1ce81eece3ee..3b26cdae0ef6 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs
index 59c8975b9295..07a71a8e09c6 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
index 3c6298d7d8d2..c1f73df75345 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs
index 6fe074907762..ede1eddafbd9 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/List.cs
index e06a3f381f12..0a72274a601a 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/List.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs
index 2b62d5975478..b38843c05183 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs
index bd0255888b86..847ba54fba76 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
index 5f51e31aa034..9963b806cbaa 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs
index 1906ce0b2709..2955fbf641e6 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs
index a023e3c3e754..aabfa2cb3032 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs
index 690894994947..d29bc1c83458 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Name.cs
index f34052aa706c..24f6da7f12f7 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Name.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs
index c8fda56e4303..abd9d32c2b26 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs
index 7218451d9fb0..ee2c09f6c83e 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
index 76faa5154c86..43c34a011993 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Order.cs
index cc1ac17c1835..d3ac14c40d3a 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Order.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs
index 47d598a27e6f..0141d3d587b4 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs
index e036d66bc889..95a72ecc587e 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
index 46ed3b3948c0..be5591e483a4 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs
index 76ce29ff67e1..5e4cc386daf5 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Return.cs
index fec56c44fa82..ac44065ab1b0 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Return.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs
index 4523238ad385..ce546ac21674 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
index ef21c6091f38..328b8e00dd8d 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs
index 33320b76cf1f..a0576690b446 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs
index 58eb2c605d15..e0aaa0f4a2a8 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
index f7782b6fd5a7..47d4e4135144 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
index 457b88ac9c74..d43a9a31babb 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/User.cs
index b7911507a704..b0c865a28ecf 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/User.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/net9/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs
index 50119ed39e76..d242dc782d15 100644
--- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs
+++ b/samples/client/petstore/csharp/restsharp/net9/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/standard2.0/ConditionalSerialization/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ApiResponse.md
index bb723d2baa13..faacf536f173 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 005b8f8058a4..bb7b7576dc2e 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 226952d1cecb..72cbdcf0af0b 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 f99aab99e387..2bf39b773a66 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 aa1ac17604eb..d41c6ec6eb65 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 032a1faeb3ff..bdbe5ac5a483 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 5ce3c4addd9b..66cc8c6d245e 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 2c414708d688..99eef458f72a 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]
@@ -28,7 +28,7 @@ Name | Type | Description | Notes
**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]
-**StringFormattedAsDecimal** | **decimal** | | [optional]
+**StringFormattedAsDecimal** | **decimal?** | | [optional]
**StringFormattedAsDecimalRequired** | **decimal** | |
[[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/Fruit.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Fruit.md
index 40df92d7c9b1..05aed3a2642b 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 5db6b0e2d1d8..8f072a324cb0 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 da7b3a6ccf9f..265348eca479 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 aab8f4db9c75..75172cd3d506 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
new file mode 100644
index 000000000000..ae8546abe127
--- /dev/null
+++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixLog.md
@@ -0,0 +1,41 @@
+# Org.OpenAPITools.Model.MixLog
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **Guid** | |
+**Description** | **string** | |
+**MixDate** | **DateTime** | |
+**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]
+**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]
+
+[[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 31f4d86fe43d..820f058bf221 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 3e19db154a80..e440a45f0ae1 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 14a7c0f1071b..1af131f829ec 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 7a335d446f4b..20391539c912 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 66c55c3b4737..c5d9f28ccc02 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 eb42bcc1aaa4..71ca9b879223 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 c7224764e2d4..a54829f9a8e2 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 07b6f018f6c1..2ec1d6949ba0 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 a10daf95cf1d..d554c7612cbe 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 7f8ffca34fa1..6d9805d03479 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 fdd22eb31fdd..f86abfc26e02 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 b0cd4dc042bf..da9b34219d84 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 5fc3dc7f85c2..a1512d751e8e 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 440c5810db56..b050cc9b33cb 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 02fb11509662..68b909a78e76 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 cc328cf2d95e..c4ea98f514e2 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 163080fc7a5b..70176d97cec2 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 83b09df72770..3eafddf2de01 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 fb7f24b243f5..b3556ea03c12 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 8f0ea67b780f..311090f36835 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 b1a5be65d44d..20def958fc37 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
@@ -198,7 +198,7 @@ protected FormatTest()
/// Gets or Sets Integer
///
[DataMember(Name = "integer", EmitDefaultValue = false)]
- public int Integer
+ public int? Integer
{
get{ return _Integer;}
set
@@ -207,7 +207,7 @@ public int Integer
_flagInteger = true;
}
}
- private int _Integer;
+ private int? _Integer;
private bool _flagInteger;
///
@@ -222,7 +222,7 @@ public bool ShouldSerializeInteger()
/// Gets or Sets Int32
///
[DataMember(Name = "int32", EmitDefaultValue = false)]
- public int Int32
+ public int? Int32
{
get{ return _Int32;}
set
@@ -231,7 +231,7 @@ public int Int32
_flagInt32 = true;
}
}
- private int _Int32;
+ private int? _Int32;
private bool _flagInt32;
///
@@ -246,7 +246,7 @@ public bool ShouldSerializeInt32()
/// Gets or Sets Int32Range
///
[DataMember(Name = "int32Range", EmitDefaultValue = false)]
- public int Int32Range
+ public int? Int32Range
{
get{ return _Int32Range;}
set
@@ -255,7 +255,7 @@ public int Int32Range
_flagInt32Range = true;
}
}
- private int _Int32Range;
+ private int? _Int32Range;
private bool _flagInt32Range;
///
@@ -270,7 +270,7 @@ public bool ShouldSerializeInt32Range()
/// Gets or Sets Int64Positive
///
[DataMember(Name = "int64Positive", EmitDefaultValue = false)]
- public long Int64Positive
+ public long? Int64Positive
{
get{ return _Int64Positive;}
set
@@ -279,7 +279,7 @@ public long Int64Positive
_flagInt64Positive = true;
}
}
- private long _Int64Positive;
+ private long? _Int64Positive;
private bool _flagInt64Positive;
///
@@ -294,7 +294,7 @@ public bool ShouldSerializeInt64Positive()
/// Gets or Sets Int64Negative
///
[DataMember(Name = "int64Negative", EmitDefaultValue = false)]
- public long Int64Negative
+ public long? Int64Negative
{
get{ return _Int64Negative;}
set
@@ -303,7 +303,7 @@ public long Int64Negative
_flagInt64Negative = true;
}
}
- private long _Int64Negative;
+ private long? _Int64Negative;
private bool _flagInt64Negative;
///
@@ -318,7 +318,7 @@ public bool ShouldSerializeInt64Negative()
/// Gets or Sets Int64PositiveExclusive
///
[DataMember(Name = "int64PositiveExclusive", EmitDefaultValue = false)]
- public long Int64PositiveExclusive
+ public long? Int64PositiveExclusive
{
get{ return _Int64PositiveExclusive;}
set
@@ -327,7 +327,7 @@ public long Int64PositiveExclusive
_flagInt64PositiveExclusive = true;
}
}
- private long _Int64PositiveExclusive;
+ private long? _Int64PositiveExclusive;
private bool _flagInt64PositiveExclusive;
///
@@ -342,7 +342,7 @@ public bool ShouldSerializeInt64PositiveExclusive()
/// Gets or Sets Int64NegativeExclusive
///
[DataMember(Name = "int64NegativeExclusive", EmitDefaultValue = false)]
- public long Int64NegativeExclusive
+ public long? Int64NegativeExclusive
{
get{ return _Int64NegativeExclusive;}
set
@@ -351,7 +351,7 @@ public long Int64NegativeExclusive
_flagInt64NegativeExclusive = true;
}
}
- private long _Int64NegativeExclusive;
+ private long? _Int64NegativeExclusive;
private bool _flagInt64NegativeExclusive;
///
@@ -366,7 +366,7 @@ public bool ShouldSerializeInt64NegativeExclusive()
/// Gets or Sets UnsignedInteger
///
[DataMember(Name = "unsigned_integer", EmitDefaultValue = false)]
- public uint UnsignedInteger
+ public uint? UnsignedInteger
{
get{ return _UnsignedInteger;}
set
@@ -375,7 +375,7 @@ public uint UnsignedInteger
_flagUnsignedInteger = true;
}
}
- private uint _UnsignedInteger;
+ private uint? _UnsignedInteger;
private bool _flagUnsignedInteger;
///
@@ -390,7 +390,7 @@ public bool ShouldSerializeUnsignedInteger()
/// Gets or Sets Int64
///
[DataMember(Name = "int64", EmitDefaultValue = false)]
- public long Int64
+ public long? Int64
{
get{ return _Int64;}
set
@@ -399,7 +399,7 @@ public long Int64
_flagInt64 = true;
}
}
- private long _Int64;
+ private long? _Int64;
private bool _flagInt64;
///
@@ -414,7 +414,7 @@ public bool ShouldSerializeInt64()
/// Gets or Sets UnsignedLong
///
[DataMember(Name = "unsigned_long", EmitDefaultValue = false)]
- public ulong UnsignedLong
+ public ulong? UnsignedLong
{
get{ return _UnsignedLong;}
set
@@ -423,7 +423,7 @@ public ulong UnsignedLong
_flagUnsignedLong = true;
}
}
- private ulong _UnsignedLong;
+ private ulong? _UnsignedLong;
private bool _flagUnsignedLong;
///
@@ -462,7 +462,7 @@ public bool ShouldSerializeNumber()
/// Gets or Sets Float
///
[DataMember(Name = "float", EmitDefaultValue = false)]
- public float Float
+ public float? Float
{
get{ return _Float;}
set
@@ -471,7 +471,7 @@ public float Float
_flagFloat = true;
}
}
- private float _Float;
+ private float? _Float;
private bool _flagFloat;
///
@@ -486,7 +486,7 @@ public bool ShouldSerializeFloat()
/// Gets or Sets Double
///
[DataMember(Name = "double", EmitDefaultValue = false)]
- public double Double
+ public double? Double
{
get{ return _Double;}
set
@@ -495,7 +495,7 @@ public double Double
_flagDouble = true;
}
}
- private double _Double;
+ private double? _Double;
private bool _flagDouble;
///
@@ -510,7 +510,7 @@ public bool ShouldSerializeDouble()
/// Gets or Sets Decimal
///
[DataMember(Name = "decimal", EmitDefaultValue = false)]
- public decimal Decimal
+ public decimal? Decimal
{
get{ return _Decimal;}
set
@@ -519,7 +519,7 @@ public decimal Decimal
_flagDecimal = true;
}
}
- private decimal _Decimal;
+ private decimal? _Decimal;
private bool _flagDecimal;
///
@@ -787,7 +787,7 @@ public bool ShouldSerializePatternWithBackslash()
/// Gets or Sets StringFormattedAsDecimal
///
[DataMember(Name = "string_formatted_as_decimal", EmitDefaultValue = false)]
- public decimal StringFormattedAsDecimal
+ public decimal? StringFormattedAsDecimal
{
get{ return _StringFormattedAsDecimal;}
set
@@ -796,7 +796,7 @@ public decimal StringFormattedAsDecimal
_flagStringFormattedAsDecimal = true;
}
}
- private decimal _StringFormattedAsDecimal;
+ private decimal? _StringFormattedAsDecimal;
private bool _flagStringFormattedAsDecimal;
///
@@ -914,20 +914,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();
@@ -968,7 +1007,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
}
- hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
+ if (this.StringFormattedAsDecimal != null)
+ {
+ hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
if (this.AdditionalProperties != null)
{
@@ -985,74 +1027,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" });
}
@@ -1069,26 +1111,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
new file mode 100644
index 000000000000..036c272e5b4a
--- /dev/null
+++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs
@@ -0,0 +1,1217 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// MixLog
+ ///
+ [DataContract(Name = "MixLog")]
+ public partial class MixLog : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected MixLog()
+ {
+ this.AdditionalProperties = new Dictionary();
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// id (required).
+ /// description (required).
+ /// mixDate (required).
+ /// shopId.
+ /// totalPrice.
+ /// totalRecalculations (required).
+ /// totalOverPoors (required).
+ /// totalSkips (required).
+ /// totalUnderPours (required).
+ /// formulaVersionDate (required).
+ /// SomeCode is only required for color mixes.
+ /// batchNumber.
+ /// BrandCode is only required for non-color mixes.
+ /// BrandId is only required for color mixes.
+ /// BrandName is only required for color mixes.
+ /// CategoryCode is not used anymore.
+ /// Color is only required for color mixes.
+ /// colorDescription.
+ /// comment.
+ /// commercialProductCode.
+ /// ProductLineCode is only required for color mixes.
+ /// country.
+ /// createdBy.
+ /// createdByFirstName.
+ /// createdByLastName.
+ /// deltaECalculationRepaired.
+ /// deltaECalculationSprayout.
+ /// ownColorVariantNumber.
+ /// primerProductId.
+ /// ProductId is only required for color mixes.
+ /// ProductName is only required for color mixes.
+ /// selectedVersionIndex.
+ public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid shopId = default(Guid), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int selectedVersionIndex = default(int))
+ {
+ this._Id = id;
+ // to ensure "description" is required (not null)
+ if (description == null)
+ {
+ throw new ArgumentNullException("description is a required property for MixLog and cannot be null");
+ }
+ this._Description = description;
+ this._MixDate = mixDate;
+ this._TotalRecalculations = totalRecalculations;
+ this._TotalOverPoors = totalOverPoors;
+ this._TotalSkips = totalSkips;
+ this._TotalUnderPours = totalUnderPours;
+ this._FormulaVersionDate = formulaVersionDate;
+ this._ShopId = shopId;
+ if (this.ShopId != null)
+ {
+ this._flagShopId = true;
+ }
+ this._TotalPrice = totalPrice;
+ if (this.TotalPrice != null)
+ {
+ this._flagTotalPrice = true;
+ }
+ this._SomeCode = someCode;
+ if (this.SomeCode != null)
+ {
+ this._flagSomeCode = true;
+ }
+ this._BatchNumber = batchNumber;
+ if (this.BatchNumber != null)
+ {
+ this._flagBatchNumber = true;
+ }
+ this._BrandCode = brandCode;
+ if (this.BrandCode != null)
+ {
+ this._flagBrandCode = true;
+ }
+ this._BrandId = brandId;
+ if (this.BrandId != null)
+ {
+ this._flagBrandId = true;
+ }
+ this._BrandName = brandName;
+ if (this.BrandName != null)
+ {
+ this._flagBrandName = true;
+ }
+ this._CategoryCode = categoryCode;
+ if (this.CategoryCode != null)
+ {
+ this._flagCategoryCode = true;
+ }
+ this._Color = color;
+ if (this.Color != null)
+ {
+ this._flagColor = true;
+ }
+ this._ColorDescription = colorDescription;
+ if (this.ColorDescription != null)
+ {
+ this._flagColorDescription = true;
+ }
+ this._Comment = comment;
+ if (this.Comment != null)
+ {
+ this._flagComment = true;
+ }
+ this._CommercialProductCode = commercialProductCode;
+ if (this.CommercialProductCode != null)
+ {
+ this._flagCommercialProductCode = true;
+ }
+ this._ProductLineCode = productLineCode;
+ if (this.ProductLineCode != null)
+ {
+ this._flagProductLineCode = true;
+ }
+ this._Country = country;
+ if (this.Country != null)
+ {
+ this._flagCountry = true;
+ }
+ this._CreatedBy = createdBy;
+ if (this.CreatedBy != null)
+ {
+ this._flagCreatedBy = true;
+ }
+ this._CreatedByFirstName = createdByFirstName;
+ if (this.CreatedByFirstName != null)
+ {
+ this._flagCreatedByFirstName = true;
+ }
+ this._CreatedByLastName = createdByLastName;
+ if (this.CreatedByLastName != null)
+ {
+ this._flagCreatedByLastName = true;
+ }
+ this._DeltaECalculationRepaired = deltaECalculationRepaired;
+ if (this.DeltaECalculationRepaired != null)
+ {
+ this._flagDeltaECalculationRepaired = true;
+ }
+ this._DeltaECalculationSprayout = deltaECalculationSprayout;
+ if (this.DeltaECalculationSprayout != null)
+ {
+ this._flagDeltaECalculationSprayout = true;
+ }
+ this._OwnColorVariantNumber = ownColorVariantNumber;
+ if (this.OwnColorVariantNumber != null)
+ {
+ this._flagOwnColorVariantNumber = true;
+ }
+ this._PrimerProductId = primerProductId;
+ if (this.PrimerProductId != null)
+ {
+ this._flagPrimerProductId = true;
+ }
+ this._ProductId = productId;
+ if (this.ProductId != null)
+ {
+ this._flagProductId = true;
+ }
+ this._ProductName = productName;
+ if (this.ProductName != null)
+ {
+ this._flagProductName = true;
+ }
+ this._SelectedVersionIndex = selectedVersionIndex;
+ if (this.SelectedVersionIndex != null)
+ {
+ this._flagSelectedVersionIndex = true;
+ }
+ this.AdditionalProperties = new Dictionary();
+ }
+
+ ///
+ /// Gets or Sets Id
+ ///
+ [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
+ public Guid Id
+ {
+ get{ return _Id;}
+ set
+ {
+ _Id = value;
+ _flagId = true;
+ }
+ }
+ private Guid _Id;
+ private bool _flagId;
+
+ ///
+ /// Returns false as Id should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeId()
+ {
+ return _flagId;
+ }
+ ///
+ /// Gets or Sets Description
+ ///
+ [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
+ public string Description
+ {
+ get{ return _Description;}
+ set
+ {
+ _Description = value;
+ _flagDescription = true;
+ }
+ }
+ private string _Description;
+ private bool _flagDescription;
+
+ ///
+ /// Returns false as Description should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeDescription()
+ {
+ return _flagDescription;
+ }
+ ///
+ /// Gets or Sets MixDate
+ ///
+ [DataMember(Name = "mixDate", IsRequired = true, EmitDefaultValue = true)]
+ public DateTime MixDate
+ {
+ get{ return _MixDate;}
+ set
+ {
+ _MixDate = value;
+ _flagMixDate = true;
+ }
+ }
+ private DateTime _MixDate;
+ private bool _flagMixDate;
+
+ ///
+ /// Returns false as MixDate should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeMixDate()
+ {
+ return _flagMixDate;
+ }
+ ///
+ /// Gets or Sets ShopId
+ ///
+ [DataMember(Name = "shopId", EmitDefaultValue = false)]
+ public Guid ShopId
+ {
+ get{ return _ShopId;}
+ set
+ {
+ _ShopId = value;
+ _flagShopId = true;
+ }
+ }
+ private Guid _ShopId;
+ private bool _flagShopId;
+
+ ///
+ /// Returns false as ShopId should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeShopId()
+ {
+ return _flagShopId;
+ }
+ ///
+ /// Gets or Sets TotalPrice
+ ///
+ [DataMember(Name = "totalPrice", EmitDefaultValue = true)]
+ public float? TotalPrice
+ {
+ get{ return _TotalPrice;}
+ set
+ {
+ _TotalPrice = value;
+ _flagTotalPrice = true;
+ }
+ }
+ private float? _TotalPrice;
+ private bool _flagTotalPrice;
+
+ ///
+ /// Returns false as TotalPrice should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeTotalPrice()
+ {
+ return _flagTotalPrice;
+ }
+ ///
+ /// Gets or Sets TotalRecalculations
+ ///
+ [DataMember(Name = "totalRecalculations", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalRecalculations
+ {
+ get{ return _TotalRecalculations;}
+ set
+ {
+ _TotalRecalculations = value;
+ _flagTotalRecalculations = true;
+ }
+ }
+ private int _TotalRecalculations;
+ private bool _flagTotalRecalculations;
+
+ ///
+ /// Returns false as TotalRecalculations should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeTotalRecalculations()
+ {
+ return _flagTotalRecalculations;
+ }
+ ///
+ /// Gets or Sets TotalOverPoors
+ ///
+ [DataMember(Name = "totalOverPoors", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalOverPoors
+ {
+ get{ return _TotalOverPoors;}
+ set
+ {
+ _TotalOverPoors = value;
+ _flagTotalOverPoors = true;
+ }
+ }
+ private int _TotalOverPoors;
+ private bool _flagTotalOverPoors;
+
+ ///
+ /// Returns false as TotalOverPoors should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeTotalOverPoors()
+ {
+ return _flagTotalOverPoors;
+ }
+ ///
+ /// Gets or Sets TotalSkips
+ ///
+ [DataMember(Name = "totalSkips", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalSkips
+ {
+ get{ return _TotalSkips;}
+ set
+ {
+ _TotalSkips = value;
+ _flagTotalSkips = true;
+ }
+ }
+ private int _TotalSkips;
+ private bool _flagTotalSkips;
+
+ ///
+ /// Returns false as TotalSkips should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeTotalSkips()
+ {
+ return _flagTotalSkips;
+ }
+ ///
+ /// Gets or Sets TotalUnderPours
+ ///
+ [DataMember(Name = "totalUnderPours", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalUnderPours
+ {
+ get{ return _TotalUnderPours;}
+ set
+ {
+ _TotalUnderPours = value;
+ _flagTotalUnderPours = true;
+ }
+ }
+ private int _TotalUnderPours;
+ private bool _flagTotalUnderPours;
+
+ ///
+ /// Returns false as TotalUnderPours should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeTotalUnderPours()
+ {
+ return _flagTotalUnderPours;
+ }
+ ///
+ /// Gets or Sets FormulaVersionDate
+ ///
+ [DataMember(Name = "formulaVersionDate", IsRequired = true, EmitDefaultValue = true)]
+ public DateTime FormulaVersionDate
+ {
+ get{ return _FormulaVersionDate;}
+ set
+ {
+ _FormulaVersionDate = value;
+ _flagFormulaVersionDate = true;
+ }
+ }
+ private DateTime _FormulaVersionDate;
+ private bool _flagFormulaVersionDate;
+
+ ///
+ /// Returns false as FormulaVersionDate should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeFormulaVersionDate()
+ {
+ return _flagFormulaVersionDate;
+ }
+ ///
+ /// SomeCode is only required for color mixes
+ ///
+ /// SomeCode is only required for color mixes
+ [DataMember(Name = "someCode", EmitDefaultValue = true)]
+ public string SomeCode
+ {
+ get{ return _SomeCode;}
+ set
+ {
+ _SomeCode = value;
+ _flagSomeCode = true;
+ }
+ }
+ private string _SomeCode;
+ private bool _flagSomeCode;
+
+ ///
+ /// Returns false as SomeCode should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeSomeCode()
+ {
+ return _flagSomeCode;
+ }
+ ///
+ /// Gets or Sets BatchNumber
+ ///
+ [DataMember(Name = "batchNumber", EmitDefaultValue = false)]
+ public string BatchNumber
+ {
+ get{ return _BatchNumber;}
+ set
+ {
+ _BatchNumber = value;
+ _flagBatchNumber = true;
+ }
+ }
+ private string _BatchNumber;
+ private bool _flagBatchNumber;
+
+ ///
+ /// Returns false as BatchNumber should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeBatchNumber()
+ {
+ return _flagBatchNumber;
+ }
+ ///
+ /// 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{ return _BrandCode;}
+ set
+ {
+ _BrandCode = value;
+ _flagBrandCode = true;
+ }
+ }
+ private string _BrandCode;
+ private bool _flagBrandCode;
+
+ ///
+ /// Returns false as BrandCode should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeBrandCode()
+ {
+ return _flagBrandCode;
+ }
+ ///
+ /// BrandId is only required for color mixes
+ ///
+ /// BrandId is only required for color mixes
+ [DataMember(Name = "brandId", EmitDefaultValue = false)]
+ public string BrandId
+ {
+ get{ return _BrandId;}
+ set
+ {
+ _BrandId = value;
+ _flagBrandId = true;
+ }
+ }
+ private string _BrandId;
+ private bool _flagBrandId;
+
+ ///
+ /// Returns false as BrandId should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeBrandId()
+ {
+ return _flagBrandId;
+ }
+ ///
+ /// BrandName is only required for color mixes
+ ///
+ /// BrandName is only required for color mixes
+ [DataMember(Name = "brandName", EmitDefaultValue = false)]
+ public string BrandName
+ {
+ get{ return _BrandName;}
+ set
+ {
+ _BrandName = value;
+ _flagBrandName = true;
+ }
+ }
+ private string _BrandName;
+ private bool _flagBrandName;
+
+ ///
+ /// Returns false as BrandName should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeBrandName()
+ {
+ return _flagBrandName;
+ }
+ ///
+ /// CategoryCode is not used anymore
+ ///
+ /// CategoryCode is not used anymore
+ [DataMember(Name = "categoryCode", EmitDefaultValue = false)]
+ public string CategoryCode
+ {
+ get{ return _CategoryCode;}
+ set
+ {
+ _CategoryCode = value;
+ _flagCategoryCode = true;
+ }
+ }
+ private string _CategoryCode;
+ private bool _flagCategoryCode;
+
+ ///
+ /// Returns false as CategoryCode should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeCategoryCode()
+ {
+ return _flagCategoryCode;
+ }
+ ///
+ /// Color is only required for color mixes
+ ///
+ /// Color is only required for color mixes
+ [DataMember(Name = "color", EmitDefaultValue = false)]
+ public string Color
+ {
+ get{ return _Color;}
+ set
+ {
+ _Color = value;
+ _flagColor = true;
+ }
+ }
+ private string _Color;
+ private bool _flagColor;
+
+ ///
+ /// Returns false as Color should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeColor()
+ {
+ return _flagColor;
+ }
+ ///
+ /// Gets or Sets ColorDescription
+ ///
+ [DataMember(Name = "colorDescription", EmitDefaultValue = false)]
+ public string ColorDescription
+ {
+ get{ return _ColorDescription;}
+ set
+ {
+ _ColorDescription = value;
+ _flagColorDescription = true;
+ }
+ }
+ private string _ColorDescription;
+ private bool _flagColorDescription;
+
+ ///
+ /// Returns false as ColorDescription should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeColorDescription()
+ {
+ return _flagColorDescription;
+ }
+ ///
+ /// Gets or Sets Comment
+ ///
+ [DataMember(Name = "comment", EmitDefaultValue = false)]
+ public string Comment
+ {
+ get{ return _Comment;}
+ set
+ {
+ _Comment = value;
+ _flagComment = true;
+ }
+ }
+ private string _Comment;
+ private bool _flagComment;
+
+ ///
+ /// Returns false as Comment should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeComment()
+ {
+ return _flagComment;
+ }
+ ///
+ /// Gets or Sets CommercialProductCode
+ ///
+ [DataMember(Name = "commercialProductCode", EmitDefaultValue = false)]
+ public string CommercialProductCode
+ {
+ get{ return _CommercialProductCode;}
+ set
+ {
+ _CommercialProductCode = value;
+ _flagCommercialProductCode = true;
+ }
+ }
+ private string _CommercialProductCode;
+ private bool _flagCommercialProductCode;
+
+ ///
+ /// Returns false as CommercialProductCode should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeCommercialProductCode()
+ {
+ return _flagCommercialProductCode;
+ }
+ ///
+ /// ProductLineCode is only required for color mixes
+ ///
+ /// ProductLineCode is only required for color mixes
+ [DataMember(Name = "productLineCode", EmitDefaultValue = false)]
+ public string ProductLineCode
+ {
+ get{ return _ProductLineCode;}
+ set
+ {
+ _ProductLineCode = value;
+ _flagProductLineCode = true;
+ }
+ }
+ private string _ProductLineCode;
+ private bool _flagProductLineCode;
+
+ ///
+ /// Returns false as ProductLineCode should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeProductLineCode()
+ {
+ return _flagProductLineCode;
+ }
+ ///
+ /// Gets or Sets Country
+ ///
+ [DataMember(Name = "country", EmitDefaultValue = false)]
+ public string Country
+ {
+ get{ return _Country;}
+ set
+ {
+ _Country = value;
+ _flagCountry = true;
+ }
+ }
+ private string _Country;
+ private bool _flagCountry;
+
+ ///
+ /// Returns false as Country should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeCountry()
+ {
+ return _flagCountry;
+ }
+ ///
+ /// Gets or Sets CreatedBy
+ ///
+ [DataMember(Name = "createdBy", EmitDefaultValue = false)]
+ public string CreatedBy
+ {
+ get{ return _CreatedBy;}
+ set
+ {
+ _CreatedBy = value;
+ _flagCreatedBy = true;
+ }
+ }
+ private string _CreatedBy;
+ private bool _flagCreatedBy;
+
+ ///
+ /// Returns false as CreatedBy should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeCreatedBy()
+ {
+ return _flagCreatedBy;
+ }
+ ///
+ /// Gets or Sets CreatedByFirstName
+ ///
+ [DataMember(Name = "createdByFirstName", EmitDefaultValue = false)]
+ public string CreatedByFirstName
+ {
+ get{ return _CreatedByFirstName;}
+ set
+ {
+ _CreatedByFirstName = value;
+ _flagCreatedByFirstName = true;
+ }
+ }
+ private string _CreatedByFirstName;
+ private bool _flagCreatedByFirstName;
+
+ ///
+ /// Returns false as CreatedByFirstName should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeCreatedByFirstName()
+ {
+ return _flagCreatedByFirstName;
+ }
+ ///
+ /// Gets or Sets CreatedByLastName
+ ///
+ [DataMember(Name = "createdByLastName", EmitDefaultValue = false)]
+ public string CreatedByLastName
+ {
+ get{ return _CreatedByLastName;}
+ set
+ {
+ _CreatedByLastName = value;
+ _flagCreatedByLastName = true;
+ }
+ }
+ private string _CreatedByLastName;
+ private bool _flagCreatedByLastName;
+
+ ///
+ /// Returns false as CreatedByLastName should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeCreatedByLastName()
+ {
+ return _flagCreatedByLastName;
+ }
+ ///
+ /// Gets or Sets DeltaECalculationRepaired
+ ///
+ [DataMember(Name = "deltaECalculationRepaired", EmitDefaultValue = false)]
+ public string DeltaECalculationRepaired
+ {
+ get{ return _DeltaECalculationRepaired;}
+ set
+ {
+ _DeltaECalculationRepaired = value;
+ _flagDeltaECalculationRepaired = true;
+ }
+ }
+ private string _DeltaECalculationRepaired;
+ private bool _flagDeltaECalculationRepaired;
+
+ ///
+ /// Returns false as DeltaECalculationRepaired should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeDeltaECalculationRepaired()
+ {
+ return _flagDeltaECalculationRepaired;
+ }
+ ///
+ /// Gets or Sets DeltaECalculationSprayout
+ ///
+ [DataMember(Name = "deltaECalculationSprayout", EmitDefaultValue = false)]
+ public string DeltaECalculationSprayout
+ {
+ get{ return _DeltaECalculationSprayout;}
+ set
+ {
+ _DeltaECalculationSprayout = value;
+ _flagDeltaECalculationSprayout = true;
+ }
+ }
+ private string _DeltaECalculationSprayout;
+ private bool _flagDeltaECalculationSprayout;
+
+ ///
+ /// Returns false as DeltaECalculationSprayout should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeDeltaECalculationSprayout()
+ {
+ return _flagDeltaECalculationSprayout;
+ }
+ ///
+ /// Gets or Sets OwnColorVariantNumber
+ ///
+ [DataMember(Name = "ownColorVariantNumber", EmitDefaultValue = true)]
+ public int? OwnColorVariantNumber
+ {
+ get{ return _OwnColorVariantNumber;}
+ set
+ {
+ _OwnColorVariantNumber = value;
+ _flagOwnColorVariantNumber = true;
+ }
+ }
+ private int? _OwnColorVariantNumber;
+ private bool _flagOwnColorVariantNumber;
+
+ ///
+ /// Returns false as OwnColorVariantNumber should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeOwnColorVariantNumber()
+ {
+ return _flagOwnColorVariantNumber;
+ }
+ ///
+ /// Gets or Sets PrimerProductId
+ ///
+ [DataMember(Name = "primerProductId", EmitDefaultValue = false)]
+ public string PrimerProductId
+ {
+ get{ return _PrimerProductId;}
+ set
+ {
+ _PrimerProductId = value;
+ _flagPrimerProductId = true;
+ }
+ }
+ private string _PrimerProductId;
+ private bool _flagPrimerProductId;
+
+ ///
+ /// Returns false as PrimerProductId should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializePrimerProductId()
+ {
+ return _flagPrimerProductId;
+ }
+ ///
+ /// ProductId is only required for color mixes
+ ///
+ /// ProductId is only required for color mixes
+ [DataMember(Name = "productId", EmitDefaultValue = false)]
+ public string ProductId
+ {
+ get{ return _ProductId;}
+ set
+ {
+ _ProductId = value;
+ _flagProductId = true;
+ }
+ }
+ private string _ProductId;
+ private bool _flagProductId;
+
+ ///
+ /// Returns false as ProductId should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeProductId()
+ {
+ return _flagProductId;
+ }
+ ///
+ /// ProductName is only required for color mixes
+ ///
+ /// ProductName is only required for color mixes
+ [DataMember(Name = "productName", EmitDefaultValue = false)]
+ public string ProductName
+ {
+ get{ return _ProductName;}
+ set
+ {
+ _ProductName = value;
+ _flagProductName = true;
+ }
+ }
+ private string _ProductName;
+ private bool _flagProductName;
+
+ ///
+ /// Returns false as ProductName should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeProductName()
+ {
+ return _flagProductName;
+ }
+ ///
+ /// Gets or Sets SelectedVersionIndex
+ ///
+ [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)]
+ public int? SelectedVersionIndex
+ {
+ get{ return _SelectedVersionIndex;}
+ set
+ {
+ _SelectedVersionIndex = value;
+ _flagSelectedVersionIndex = true;
+ }
+ }
+ private int? _SelectedVersionIndex;
+ private bool _flagSelectedVersionIndex;
+
+ ///
+ /// Returns false as SelectedVersionIndex should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeSelectedVersionIndex()
+ {
+ return _flagSelectedVersionIndex;
+ }
+ ///
+ /// Gets or Sets additional properties
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalProperties { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class MixLog {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Description: ").Append(Description).Append("\n");
+ sb.Append(" MixDate: ").Append(MixDate).Append("\n");
+ sb.Append(" ShopId: ").Append(ShopId).Append("\n");
+ sb.Append(" TotalPrice: ").Append(TotalPrice).Append("\n");
+ sb.Append(" TotalRecalculations: ").Append(TotalRecalculations).Append("\n");
+ sb.Append(" TotalOverPoors: ").Append(TotalOverPoors).Append("\n");
+ sb.Append(" TotalSkips: ").Append(TotalSkips).Append("\n");
+ sb.Append(" TotalUnderPours: ").Append(TotalUnderPours).Append("\n");
+ sb.Append(" FormulaVersionDate: ").Append(FormulaVersionDate).Append("\n");
+ sb.Append(" SomeCode: ").Append(SomeCode).Append("\n");
+ sb.Append(" BatchNumber: ").Append(BatchNumber).Append("\n");
+ sb.Append(" BrandCode: ").Append(BrandCode).Append("\n");
+ sb.Append(" BrandId: ").Append(BrandId).Append("\n");
+ sb.Append(" BrandName: ").Append(BrandName).Append("\n");
+ sb.Append(" CategoryCode: ").Append(CategoryCode).Append("\n");
+ sb.Append(" Color: ").Append(Color).Append("\n");
+ sb.Append(" ColorDescription: ").Append(ColorDescription).Append("\n");
+ sb.Append(" Comment: ").Append(Comment).Append("\n");
+ sb.Append(" CommercialProductCode: ").Append(CommercialProductCode).Append("\n");
+ sb.Append(" ProductLineCode: ").Append(ProductLineCode).Append("\n");
+ sb.Append(" Country: ").Append(Country).Append("\n");
+ sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n");
+ sb.Append(" CreatedByFirstName: ").Append(CreatedByFirstName).Append("\n");
+ sb.Append(" CreatedByLastName: ").Append(CreatedByLastName).Append("\n");
+ sb.Append(" DeltaECalculationRepaired: ").Append(DeltaECalculationRepaired).Append("\n");
+ sb.Append(" DeltaECalculationSprayout: ").Append(DeltaECalculationSprayout).Append("\n");
+ sb.Append(" OwnColorVariantNumber: ").Append(OwnColorVariantNumber).Append("\n");
+ sb.Append(" PrimerProductId: ").Append(PrimerProductId).Append("\n");
+ sb.Append(" ProductId: ").Append(ProductId).Append("\n");
+ sb.Append(" ProductName: ").Append(ProductName).Append("\n");
+ sb.Append(" SelectedVersionIndex: ").Append(SelectedVersionIndex).Append("\n");
+ sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as MixLog).AreEqual;
+ }
+
+ ///
+ /// Returns true if MixLog instances are equal
+ ///
+ /// Instance of MixLog to be compared
+ /// Boolean
+ public bool Equals(MixLog input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Id != null)
+ {
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ }
+ if (this.Description != null)
+ {
+ hashCode = (hashCode * 59) + this.Description.GetHashCode();
+ }
+ if (this.MixDate != null)
+ {
+ hashCode = (hashCode * 59) + this.MixDate.GetHashCode();
+ }
+ if (this.ShopId != null)
+ {
+ hashCode = (hashCode * 59) + this.ShopId.GetHashCode();
+ }
+ if (this.TotalPrice != null)
+ {
+ hashCode = (hashCode * 59) + this.TotalPrice.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.TotalRecalculations.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalOverPoors.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalSkips.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalUnderPours.GetHashCode();
+ if (this.FormulaVersionDate != null)
+ {
+ hashCode = (hashCode * 59) + this.FormulaVersionDate.GetHashCode();
+ }
+ if (this.SomeCode != null)
+ {
+ hashCode = (hashCode * 59) + this.SomeCode.GetHashCode();
+ }
+ if (this.BatchNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.BatchNumber.GetHashCode();
+ }
+ if (this.BrandCode != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandCode.GetHashCode();
+ }
+ if (this.BrandId != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandId.GetHashCode();
+ }
+ if (this.BrandName != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandName.GetHashCode();
+ }
+ if (this.CategoryCode != null)
+ {
+ hashCode = (hashCode * 59) + this.CategoryCode.GetHashCode();
+ }
+ if (this.Color != null)
+ {
+ hashCode = (hashCode * 59) + this.Color.GetHashCode();
+ }
+ if (this.ColorDescription != null)
+ {
+ hashCode = (hashCode * 59) + this.ColorDescription.GetHashCode();
+ }
+ if (this.Comment != null)
+ {
+ hashCode = (hashCode * 59) + this.Comment.GetHashCode();
+ }
+ if (this.CommercialProductCode != null)
+ {
+ hashCode = (hashCode * 59) + this.CommercialProductCode.GetHashCode();
+ }
+ if (this.ProductLineCode != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductLineCode.GetHashCode();
+ }
+ if (this.Country != null)
+ {
+ hashCode = (hashCode * 59) + this.Country.GetHashCode();
+ }
+ if (this.CreatedBy != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedBy.GetHashCode();
+ }
+ if (this.CreatedByFirstName != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedByFirstName.GetHashCode();
+ }
+ if (this.CreatedByLastName != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedByLastName.GetHashCode();
+ }
+ if (this.DeltaECalculationRepaired != null)
+ {
+ hashCode = (hashCode * 59) + this.DeltaECalculationRepaired.GetHashCode();
+ }
+ if (this.DeltaECalculationSprayout != null)
+ {
+ hashCode = (hashCode * 59) + this.DeltaECalculationSprayout.GetHashCode();
+ }
+ if (this.OwnColorVariantNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.OwnColorVariantNumber.GetHashCode();
+ }
+ if (this.PrimerProductId != null)
+ {
+ hashCode = (hashCode * 59) + this.PrimerProductId.GetHashCode();
+ }
+ if (this.ProductId != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductId.GetHashCode();
+ }
+ if (this.ProductName != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductName.GetHashCode();
+ }
+ if (this.SelectedVersionIndex != null)
+ {
+ hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode();
+ }
+ if (this.AdditionalProperties != null)
+ {
+ hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
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 48815cd97300..985c3967fc40 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 8fa808d911cd..d4b224c315df 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 ce6120813dac..fb075870f97f 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 7f4945565272..994af2787c2c 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 df74883777de..270ad31505fc 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 066dc26dbe15..543a719c5ada 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 70938b71f8d8..218daeefe1d2 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 2bad0ac611df..9ec97321ee50 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 e255b357996f..2597e57dfa8d 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 0a0faf3cba34..54cc8a7f3477 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 b631ebc96160..a34e233c31bf 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 21c819cf09ac..1c5264b6ca30 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 24659725b63f..8c83619d77ce 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/ConditionalSerialization/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Org.OpenAPITools.csproj
index 05f8f0bf135f..3049bc3e264e 100644
--- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Org.OpenAPITools.csproj
+++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Org.OpenAPITools.csproj
@@ -33,6 +33,5 @@
-
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 bb723d2baa13..faacf536f173 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 005b8f8058a4..bb7b7576dc2e 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 226952d1cecb..72cbdcf0af0b 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 f99aab99e387..2bf39b773a66 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 aa1ac17604eb..d41c6ec6eb65 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 032a1faeb3ff..bdbe5ac5a483 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 5ce3c4addd9b..66cc8c6d245e 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 c2144b5e3cf6..9b6d809466c8 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 40df92d7c9b1..05aed3a2642b 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 5db6b0e2d1d8..8f072a324cb0 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 da7b3a6ccf9f..265348eca479 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 aab8f4db9c75..75172cd3d506 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 31f4d86fe43d..820f058bf221 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 3e19db154a80..e440a45f0ae1 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 14a7c0f1071b..1af131f829ec 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 7a335d446f4b..20391539c912 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 66c55c3b4737..c5d9f28ccc02 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 eb42bcc1aaa4..71ca9b879223 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 c7224764e2d4..a54829f9a8e2 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 07b6f018f6c1..2ec1d6949ba0 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 052ac9190068..8eec64177930 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 7f8ffca34fa1..6d9805d03479 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 fdd22eb31fdd..f86abfc26e02 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 b0cd4dc042bf..da9b34219d84 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 5fc3dc7f85c2..a1512d751e8e 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 e55d523aad1f..51772309eda8 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 3eef221be3e3..67d2eecc4c26 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 04d69550656d..64b9c31778d1 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 360cb5281e80..551074881d17 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 a52dd988da51..fc431e7b777d 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 5edb4edfea4a..6feda1e8c352 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 27d1193954ea..e7eef0d94a37 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 a741277dd273..a62831e60781 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 a023e3c3e754..7b1c87bbe7da 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 f34052aa706c..69938e7b7c61 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 7218451d9fb0..ee2c09f6c83e 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 76faa5154c86..6c728b477087 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 4b8b7068fe04..818eb45eb7ec 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 47d598a27e6f..2470c13fdb60 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 e036d66bc889..37b02216fb02 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 8160c859b76e..2ead3095aaa1 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 fec56c44fa82..ac44065ab1b0 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 33320b76cf1f..d31817992fe2 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 58eb2c605d15..b8f4e20ed848 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 b7911507a704..3371b44e43c1 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 50119ed39e76..d242dc782d15 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/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj
index 05f8f0bf135f..3049bc3e264e 100644
--- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj
+++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Org.OpenAPITools.csproj
@@ -33,6 +33,5 @@
-
diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ActivityOutputElementRepresentation.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ActivityOutputElementRepresentation.md
index 21f226b39525..7f37e8a701aa 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ActivityOutputElementRepresentation.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/AdditionalPropertiesClass.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/AdditionalPropertiesClass.md
index c40cd0f8accb..e9b9f2256d9f 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/AdditionalPropertiesClass.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ApiResponse.md
index bb723d2baa13..7bae51a82b75 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ApiResponse.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/Apple.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Apple.md
index 6261194e4800..7711490a679b 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Apple.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/AppleReq.md
index 005b8f8058a4..bb7b7576dc2e 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/AppleReq.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/docs/Banana.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Banana.md
index 226952d1cecb..72cbdcf0af0b 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Banana.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/BananaReq.md
index f99aab99e387..2bf39b773a66 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/BananaReq.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/docs/Capitalization.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Capitalization.md
index 1b1352d918f4..e9b31d33a641 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Capitalization.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/Cat.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Cat.md
index aa1ac17604eb..d41c6ec6eb65 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Cat.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/docs/Category.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Category.md
index 032a1faeb3ff..bdbe5ac5a483 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Category.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/docs/ChildCat.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ChildCat.md
index 8ce6449e5f22..3d0a819274cf 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ChildCat.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/ClassModel.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ClassModel.md
index f39982657c89..9bd76dc855f8 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ClassModel.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/DateOnlyClass.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/DateOnlyClass.md
index 8291b9cb6d78..e56ad3ae3df7 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/DateOnlyClass.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/DeprecatedObject.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/DeprecatedObject.md
index bb7824a3d640..3b5eacc8e075 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/DeprecatedObject.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/Dog.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Dog.md
index 3aa00144e9aa..721425ea1e13 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Dog.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/Drawing.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Drawing.md
index 6b7122940afa..50b962c62e8f 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Drawing.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/EnumArrays.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/EnumArrays.md
index 62e34f03dbc3..1691ef8adb0a 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/EnumArrays.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/EnumTest.md
index 5ce3c4addd9b..720f9ae54ace 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/EnumTest.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/File.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/File.md
index 28959feda088..e67cd955342f 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/File.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/FileSchemaTestClass.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/FileSchemaTestClass.md
index 0ce4be56cc72..ccb2d082f662 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/FileSchemaTestClass.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/FooGetDefaultResponse.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/FooGetDefaultResponse.md
index dde9b9729b93..28fc2f659f08 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/FooGetDefaultResponse.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/FormatTest.md
index 5c185c58a738..c2462d2b626d 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/FormatTest.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/FormatTest.md
@@ -4,31 +4,31 @@
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]
-**StringFormattedAsDecimal** | **decimal** | | [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]
+**StringFormattedAsDecimal** | **decimal?** | | [optional]
**StringFormattedAsDecimalRequired** | **decimal** | |
[[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/net9/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Fruit.md
index 40df92d7c9b1..c446aa06b20b 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Fruit.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/FruitReq.md
index 5db6b0e2d1d8..8f072a324cb0 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/FruitReq.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/GmFruit.md
index da7b3a6ccf9f..3ef782902939 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/GmFruit.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/HasOnlyReadOnly.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/HasOnlyReadOnly.md
index 64549c18b0a1..b4d3bd8c6d57 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/HasOnlyReadOnly.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/HealthCheckResult.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/HealthCheckResult.md
index f7d1a7eb6886..154fd14dcc7d 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/HealthCheckResult.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/List.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/List.md
index c00ef31e6e25..65dd7bf072a2 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/List.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Mammal.md
index aab8f4db9c75..e82462c4bbaa 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Mammal.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/MixLog.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixLog.md
new file mode 100644
index 000000000000..2bd04a68fda4
--- /dev/null
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixLog.md
@@ -0,0 +1,41 @@
+# Org.OpenAPITools.Model.MixLog
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **Guid** | |
+**Description** | **string** | |
+**MixDate** | **DateTime** | |
+**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]
+**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]
+
+[[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/net9/Petstore/docs/MixedAnyOf.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixedAnyOf.md
index 6a6aa093bebe..1cee08f2a5dc 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixedAnyOf.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/MixedAnyOfContent.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixedAnyOfContent.md
index 9af972f3219f..deb8047505e8 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixedAnyOfContent.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/MixedOneOf.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixedOneOf.md
index dc9650a8e3a0..0c5625d3f74c 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixedOneOf.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/MixedOneOfContent.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixedOneOfContent.md
index 8468f9024f73..4629cf446150 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixedOneOfContent.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md
index 050210a3e371..81d4a847dbe2 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/MixedSubId.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixedSubId.md
index b9268e37cba6..c5989c5922d9 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/MixedSubId.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Model200Response.md
index 31f4d86fe43d..c719083851e4 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Model200Response.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/ModelClient.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ModelClient.md
index 1d8afe3e1a7a..d525ccdaa521 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ModelClient.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/Name.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Name.md
index 3e19db154a80..a89e8d24d4a7 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Name.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/NullableClass.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/NullableClass.md
index 2d238d6a80cb..64578b092a03 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/NullableClass.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/NumberOnly.md
index 14a7c0f1071b..1af131f829ec 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/NumberOnly.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ObjectWithDeprecatedFields.md
index 7a335d446f4b..a36d8ca84a70 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ObjectWithDeprecatedFields.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/Order.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Order.md
index 66c55c3b4737..72f9aefc4239 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Order.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/OuterComposite.md
index eb42bcc1aaa4..e1a61b97a536 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/OuterComposite.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/Pet.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Pet.md
index c7224764e2d4..503652fad78f 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Pet.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/ReadOnlyFirst.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ReadOnlyFirst.md
index b3f4a17ea34e..c3d41e7f8f46 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ReadOnlyFirst.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/RequiredClass.md
index 7f734db8a618..2c00b36dce18 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/RequiredClass.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/Result.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Result.md
index d2de0c7ac041..551d280680e8 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Result.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Result.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Code** | **string** | Result code | [optional]
-**Uuid** | **string** | Result unique identifier | [optional]
+**Code** | **string?** | Result code | [optional]
+**Uuid** | **string?** | Result unique identifier | [optional]
**Data** | **Dictionary<string, string>** | list of named parameters for current message | [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/net9/Petstore/docs/Return.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Return.md
index a10daf95cf1d..3cc33993a8da 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Return.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/RolesReportsHash.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/RolesReportsHash.md
index 309b0c02615c..e73788a32fb3 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/RolesReportsHash.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/RolesReportsHashRole.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/RolesReportsHashRole.md
index 6f9affc24032..8b9da914ec6c 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/RolesReportsHashRole.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/SpecialModelName.md
index 7f8ffca34fa1..50b87d981d57 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/SpecialModelName.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/Tag.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Tag.md
index fdd22eb31fdd..1f6ddf2cdbe5 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Tag.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/TestCollectionEndingWithWordList.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/TestCollectionEndingWithWordList.md
index 0e5568637b89..3e90bb8a3d6c 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/TestCollectionEndingWithWordList.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md
index c1cf9ce2f812..a2ebd09f076b 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/TestResult.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/TestResult.md
index d70eaf2b64a1..8a71e41dda1c 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/TestResult.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/TestResult.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Code** | **TestResultCode** | | [optional]
-**Uuid** | **string** | Result unique identifier | [optional]
+**Code** | [**TestResultCode?**](TestResultCode.md) | | [optional]
+**Uuid** | **string?** | Result unique identifier | [optional]
**Data** | **Dictionary<string, string>** | list of named parameters for current message | [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/net9/Petstore/docs/User.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/User.md
index b0cd4dc042bf..38d3987d7fc6 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/User.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/Whale.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Whale.md
index 5fc3dc7f85c2..a1512d751e8e 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Whale.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/docs/Zebra.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Zebra.md
index 31e686adf0e7..4b4313ba5038 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Zebra.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/docs/ZeroBasedEnumClass.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ZeroBasedEnumClass.md
index b804bc0d7fb4..46002998b553 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ZeroBasedEnumClass.md
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
index 25d907b05308..f8d09b815a2c 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
@@ -45,13 +45,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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
index 1e8c482df263..f4a3913719bc 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
@@ -69,19 +69,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
@@ -94,7 +94,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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs
index 4d83d2d347b5..24e4bb7f0052 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs
@@ -47,19 +47,19 @@ 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
///
[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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs
index 020226d9aa7f..72f654178aa5 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs
@@ -47,19 +47,19 @@ public partial class Apple : IEquatable
/// 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
diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs
index 4b7a3084bd0e..7b354a6e7062 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs
index b31a453f9e87..b27848069b78 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs
index 2f73ada806c8..4b1e84cd621f 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs
index 20dd579a9146..7eb9ee69e58c 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs
@@ -53,38 +53,38 @@ public partial class Capitalization : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs
index 2d02542a5170..ebd438c4d902 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs
index 52680d66e365..697a7a594171 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs
index 939b710f34bb..58742c1484f6 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs
@@ -69,7 +69,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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs
index d0b3dd330925..2489349e8d43 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs
@@ -43,7 +43,7 @@ public partial class ClassModel : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs
index f9bc38caadaf..16719fe2cae9 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs
@@ -46,7 +46,7 @@ public partial class DateOnlyClass : IEquatable
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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs
index 3d7c5fdbb499..1862b422d3c2 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs
@@ -43,7 +43,7 @@ public partial class DeprecatedObject : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs
index cda8e3ca41c9..3324c1051ecc 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs
@@ -50,7 +50,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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs
index f9e91a2fb86b..f0f75776ec18 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs
@@ -50,19 +50,19 @@ public partial class Drawing : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs
index 627c8a3acd40..653737bfe6b2 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs
@@ -177,6 +177,7 @@ public enum EnumIntegerEnum
///
/// Defines EnumIntegerOnly
///
+ [JsonConverter(typeof(StringEnumConverter))]
public enum EnumIntegerOnlyEnum
{
///
@@ -221,30 +222,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.
///
@@ -275,6 +252,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
///
@@ -349,19 +350,23 @@ public bool Equals(EnumTest input)
) &&
(
this.OuterEnum == input.OuterEnum ||
- this.OuterEnum.Equals(input.OuterEnum)
+ (this.OuterEnum != null &&
+ this.OuterEnum.Equals(input.OuterEnum))
) &&
(
this.OuterEnumInteger == input.OuterEnumInteger ||
- this.OuterEnumInteger.Equals(input.OuterEnumInteger)
+ (this.OuterEnumInteger != null &&
+ this.OuterEnumInteger.Equals(input.OuterEnumInteger))
) &&
(
this.OuterEnumDefaultValue == input.OuterEnumDefaultValue ||
- this.OuterEnumDefaultValue.Equals(input.OuterEnumDefaultValue)
+ (this.OuterEnumDefaultValue != null &&
+ this.OuterEnumDefaultValue.Equals(input.OuterEnumDefaultValue))
) &&
(
this.OuterEnumIntegerDefaultValue == input.OuterEnumIntegerDefaultValue ||
- this.OuterEnumIntegerDefaultValue.Equals(input.OuterEnumIntegerDefaultValue)
+ (this.OuterEnumIntegerDefaultValue != null &&
+ this.OuterEnumIntegerDefaultValue.Equals(input.OuterEnumIntegerDefaultValue))
);
}
@@ -379,10 +384,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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/File.cs
index 0df50ba9b2f4..c824ae0bad0a 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/File.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/File.cs
@@ -44,7 +44,7 @@ public partial class File : IEquatable
///
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
index 388add47e631..71bb331cfd4c 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
@@ -45,7 +45,7 @@ public partial class FileSchemaTestClass : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
index 7e6349d03c81..cf6af432b42c 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
@@ -43,7 +43,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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs
index d85395278279..d2ef30baca4c 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs
@@ -108,61 +108,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
@@ -174,25 +174,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
@@ -204,7 +204,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
@@ -222,7 +222,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
@@ -231,7 +231,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
@@ -244,27 +244,27 @@ 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 StringFormattedAsDecimal
///
[DataMember(Name = "string_formatted_as_decimal", EmitDefaultValue = false)]
- public decimal StringFormattedAsDecimal { get; set; }
+ public decimal? StringFormattedAsDecimal { get; set; }
///
/// Gets or Sets StringFormattedAsDecimalRequired
@@ -343,43 +343,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 ||
@@ -387,15 +397,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 ||
@@ -449,7 +462,8 @@ public bool Equals(FormatTest input)
) &&
(
this.StringFormattedAsDecimal == input.StringFormattedAsDecimal ||
- this.StringFormattedAsDecimal.Equals(input.StringFormattedAsDecimal)
+ (this.StringFormattedAsDecimal != null &&
+ this.StringFormattedAsDecimal.Equals(input.StringFormattedAsDecimal))
) &&
(
this.StringFormattedAsDecimalRequired == input.StringFormattedAsDecimalRequired ||
@@ -466,20 +480,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();
@@ -520,7 +573,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
}
- hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
+ if (this.StringFormattedAsDecimal != null)
+ {
+ hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
return hashCode;
}
diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
index a154d4ab7b5c..8fc745b0258a 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs
@@ -42,7 +42,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.
@@ -56,7 +56,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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs
index ddd6e7c6d5c2..7e572592bec8 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs
@@ -43,7 +43,7 @@ public partial class HealthCheckResult : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/List.cs
index bf43c9273f19..a98243fbde67 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/List.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/List.cs
@@ -43,7 +43,7 @@ public partial class List : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixLog.cs
new file mode 100644
index 000000000000..afb25c6b6ee0
--- /dev/null
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixLog.cs
@@ -0,0 +1,679 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// MixLog
+ ///
+ [DataContract(Name = "MixLog")]
+ public partial class MixLog : IEquatable
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected MixLog() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// id (required).
+ /// description (required).
+ /// mixDate (required).
+ /// shopId.
+ /// totalPrice.
+ /// totalRecalculations (required).
+ /// totalOverPoors (required).
+ /// totalSkips (required).
+ /// totalUnderPours (required).
+ /// formulaVersionDate (required).
+ /// SomeCode is only required for color mixes.
+ /// batchNumber.
+ /// BrandCode is only required for non-color mixes.
+ /// BrandId is only required for color mixes.
+ /// BrandName is only required for color mixes.
+ /// CategoryCode is not used anymore.
+ /// Color is only required for color mixes.
+ /// colorDescription.
+ /// comment.
+ /// commercialProductCode.
+ /// ProductLineCode is only required for color mixes.
+ /// country.
+ /// createdBy.
+ /// createdByFirstName.
+ /// createdByLastName.
+ /// deltaECalculationRepaired.
+ /// deltaECalculationSprayout.
+ /// ownColorVariantNumber.
+ /// primerProductId.
+ /// ProductId is only required for color mixes.
+ /// ProductName is only required for color mixes.
+ /// selectedVersionIndex.
+ public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid shopId = default(Guid), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int selectedVersionIndex = default(int))
+ {
+ this.Id = id;
+ // to ensure "description" is required (not null)
+ if (description == null)
+ {
+ throw new ArgumentNullException("description is a required property for MixLog and cannot be null");
+ }
+ this.Description = description;
+ this.MixDate = mixDate;
+ this.TotalRecalculations = totalRecalculations;
+ this.TotalOverPoors = totalOverPoors;
+ this.TotalSkips = totalSkips;
+ this.TotalUnderPours = totalUnderPours;
+ this.FormulaVersionDate = formulaVersionDate;
+ this.ShopId = shopId;
+ this.TotalPrice = totalPrice;
+ this.SomeCode = someCode;
+ this.BatchNumber = batchNumber;
+ this.BrandCode = brandCode;
+ this.BrandId = brandId;
+ this.BrandName = brandName;
+ this.CategoryCode = categoryCode;
+ this.Color = color;
+ this.ColorDescription = colorDescription;
+ this.Comment = comment;
+ this.CommercialProductCode = commercialProductCode;
+ this.ProductLineCode = productLineCode;
+ this.Country = country;
+ this.CreatedBy = createdBy;
+ this.CreatedByFirstName = createdByFirstName;
+ this.CreatedByLastName = createdByLastName;
+ this.DeltaECalculationRepaired = deltaECalculationRepaired;
+ this.DeltaECalculationSprayout = deltaECalculationSprayout;
+ this.OwnColorVariantNumber = ownColorVariantNumber;
+ this.PrimerProductId = primerProductId;
+ this.ProductId = productId;
+ this.ProductName = productName;
+ this.SelectedVersionIndex = selectedVersionIndex;
+ }
+
+ ///
+ /// Gets or Sets Id
+ ///
+ [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
+ public Guid Id { get; set; }
+
+ ///
+ /// Gets or Sets Description
+ ///
+ [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
+ public string Description { get; set; }
+
+ ///
+ /// Gets or Sets MixDate
+ ///
+ [DataMember(Name = "mixDate", IsRequired = true, EmitDefaultValue = true)]
+ public DateTime MixDate { get; set; }
+
+ ///
+ /// Gets or Sets ShopId
+ ///
+ [DataMember(Name = "shopId", EmitDefaultValue = false)]
+ public Guid? ShopId { get; set; }
+
+ ///
+ /// Gets or Sets TotalPrice
+ ///
+ [DataMember(Name = "totalPrice", EmitDefaultValue = true)]
+ public float? TotalPrice { get; set; }
+
+ ///
+ /// Gets or Sets TotalRecalculations
+ ///
+ [DataMember(Name = "totalRecalculations", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalRecalculations { get; set; }
+
+ ///
+ /// Gets or Sets TotalOverPoors
+ ///
+ [DataMember(Name = "totalOverPoors", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalOverPoors { get; set; }
+
+ ///
+ /// Gets or Sets TotalSkips
+ ///
+ [DataMember(Name = "totalSkips", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalSkips { get; set; }
+
+ ///
+ /// Gets or Sets TotalUnderPours
+ ///
+ [DataMember(Name = "totalUnderPours", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalUnderPours { get; set; }
+
+ ///
+ /// Gets or Sets FormulaVersionDate
+ ///
+ [DataMember(Name = "formulaVersionDate", IsRequired = true, EmitDefaultValue = true)]
+ public DateTime FormulaVersionDate { get; set; }
+
+ ///
+ /// SomeCode is only required for color mixes
+ ///
+ /// SomeCode is only required for color mixes
+ [DataMember(Name = "someCode", EmitDefaultValue = true)]
+ public string? SomeCode { get; set; }
+
+ ///
+ /// Gets or Sets BatchNumber
+ ///
+ [DataMember(Name = "batchNumber", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// BrandId is only required for color mixes
+ ///
+ /// BrandId is only required for color mixes
+ [DataMember(Name = "brandId", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// CategoryCode is not used anymore
+ ///
+ /// CategoryCode is not used anymore
+ [DataMember(Name = "categoryCode", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// Gets or Sets ColorDescription
+ ///
+ [DataMember(Name = "colorDescription", EmitDefaultValue = false)]
+ public string? ColorDescription { get; set; }
+
+ ///
+ /// Gets or Sets Comment
+ ///
+ [DataMember(Name = "comment", EmitDefaultValue = false)]
+ public string? Comment { get; set; }
+
+ ///
+ /// Gets or Sets CommercialProductCode
+ ///
+ [DataMember(Name = "commercialProductCode", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// Gets or Sets Country
+ ///
+ [DataMember(Name = "country", EmitDefaultValue = false)]
+ public string? Country { get; set; }
+
+ ///
+ /// Gets or Sets CreatedBy
+ ///
+ [DataMember(Name = "createdBy", EmitDefaultValue = false)]
+ public string? CreatedBy { get; set; }
+
+ ///
+ /// Gets or Sets CreatedByFirstName
+ ///
+ [DataMember(Name = "createdByFirstName", EmitDefaultValue = false)]
+ public string? CreatedByFirstName { get; set; }
+
+ ///
+ /// Gets or Sets CreatedByLastName
+ ///
+ [DataMember(Name = "createdByLastName", EmitDefaultValue = false)]
+ public string? CreatedByLastName { get; set; }
+
+ ///
+ /// Gets or Sets DeltaECalculationRepaired
+ ///
+ [DataMember(Name = "deltaECalculationRepaired", EmitDefaultValue = false)]
+ public string? DeltaECalculationRepaired { get; set; }
+
+ ///
+ /// Gets or Sets DeltaECalculationSprayout
+ ///
+ [DataMember(Name = "deltaECalculationSprayout", EmitDefaultValue = false)]
+ public string? DeltaECalculationSprayout { get; set; }
+
+ ///
+ /// Gets or Sets OwnColorVariantNumber
+ ///
+ [DataMember(Name = "ownColorVariantNumber", EmitDefaultValue = true)]
+ public int? OwnColorVariantNumber { get; set; }
+
+ ///
+ /// Gets or Sets PrimerProductId
+ ///
+ [DataMember(Name = "primerProductId", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// ProductName is only required for color mixes
+ ///
+ /// ProductName is only required for color mixes
+ [DataMember(Name = "productName", EmitDefaultValue = false)]
+ public string? ProductName { get; set; }
+
+ ///
+ /// Gets or Sets SelectedVersionIndex
+ ///
+ [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)]
+ public int? SelectedVersionIndex { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class MixLog {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Description: ").Append(Description).Append("\n");
+ sb.Append(" MixDate: ").Append(MixDate).Append("\n");
+ sb.Append(" ShopId: ").Append(ShopId).Append("\n");
+ sb.Append(" TotalPrice: ").Append(TotalPrice).Append("\n");
+ sb.Append(" TotalRecalculations: ").Append(TotalRecalculations).Append("\n");
+ sb.Append(" TotalOverPoors: ").Append(TotalOverPoors).Append("\n");
+ sb.Append(" TotalSkips: ").Append(TotalSkips).Append("\n");
+ sb.Append(" TotalUnderPours: ").Append(TotalUnderPours).Append("\n");
+ sb.Append(" FormulaVersionDate: ").Append(FormulaVersionDate).Append("\n");
+ sb.Append(" SomeCode: ").Append(SomeCode).Append("\n");
+ sb.Append(" BatchNumber: ").Append(BatchNumber).Append("\n");
+ sb.Append(" BrandCode: ").Append(BrandCode).Append("\n");
+ sb.Append(" BrandId: ").Append(BrandId).Append("\n");
+ sb.Append(" BrandName: ").Append(BrandName).Append("\n");
+ sb.Append(" CategoryCode: ").Append(CategoryCode).Append("\n");
+ sb.Append(" Color: ").Append(Color).Append("\n");
+ sb.Append(" ColorDescription: ").Append(ColorDescription).Append("\n");
+ sb.Append(" Comment: ").Append(Comment).Append("\n");
+ sb.Append(" CommercialProductCode: ").Append(CommercialProductCode).Append("\n");
+ sb.Append(" ProductLineCode: ").Append(ProductLineCode).Append("\n");
+ sb.Append(" Country: ").Append(Country).Append("\n");
+ sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n");
+ sb.Append(" CreatedByFirstName: ").Append(CreatedByFirstName).Append("\n");
+ sb.Append(" CreatedByLastName: ").Append(CreatedByLastName).Append("\n");
+ sb.Append(" DeltaECalculationRepaired: ").Append(DeltaECalculationRepaired).Append("\n");
+ sb.Append(" DeltaECalculationSprayout: ").Append(DeltaECalculationSprayout).Append("\n");
+ sb.Append(" OwnColorVariantNumber: ").Append(OwnColorVariantNumber).Append("\n");
+ sb.Append(" PrimerProductId: ").Append(PrimerProductId).Append("\n");
+ sb.Append(" ProductId: ").Append(ProductId).Append("\n");
+ sb.Append(" ProductName: ").Append(ProductName).Append("\n");
+ sb.Append(" SelectedVersionIndex: ").Append(SelectedVersionIndex).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as MixLog);
+ }
+
+ ///
+ /// Returns true if MixLog instances are equal
+ ///
+ /// Instance of MixLog to be compared
+ /// Boolean
+ public bool Equals(MixLog input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Id == input.Id ||
+ (this.Id != null &&
+ this.Id.Equals(input.Id))
+ ) &&
+ (
+ this.Description == input.Description ||
+ (this.Description != null &&
+ this.Description.Equals(input.Description))
+ ) &&
+ (
+ this.MixDate == input.MixDate ||
+ (this.MixDate != null &&
+ this.MixDate.Equals(input.MixDate))
+ ) &&
+ (
+ this.ShopId == input.ShopId ||
+ (this.ShopId != null &&
+ this.ShopId.Equals(input.ShopId))
+ ) &&
+ (
+ this.TotalPrice == input.TotalPrice ||
+ (this.TotalPrice != null &&
+ this.TotalPrice.Equals(input.TotalPrice))
+ ) &&
+ (
+ this.TotalRecalculations == input.TotalRecalculations ||
+ this.TotalRecalculations.Equals(input.TotalRecalculations)
+ ) &&
+ (
+ this.TotalOverPoors == input.TotalOverPoors ||
+ this.TotalOverPoors.Equals(input.TotalOverPoors)
+ ) &&
+ (
+ this.TotalSkips == input.TotalSkips ||
+ this.TotalSkips.Equals(input.TotalSkips)
+ ) &&
+ (
+ this.TotalUnderPours == input.TotalUnderPours ||
+ this.TotalUnderPours.Equals(input.TotalUnderPours)
+ ) &&
+ (
+ this.FormulaVersionDate == input.FormulaVersionDate ||
+ (this.FormulaVersionDate != null &&
+ this.FormulaVersionDate.Equals(input.FormulaVersionDate))
+ ) &&
+ (
+ this.SomeCode == input.SomeCode ||
+ (this.SomeCode != null &&
+ this.SomeCode.Equals(input.SomeCode))
+ ) &&
+ (
+ this.BatchNumber == input.BatchNumber ||
+ (this.BatchNumber != null &&
+ this.BatchNumber.Equals(input.BatchNumber))
+ ) &&
+ (
+ this.BrandCode == input.BrandCode ||
+ (this.BrandCode != null &&
+ this.BrandCode.Equals(input.BrandCode))
+ ) &&
+ (
+ this.BrandId == input.BrandId ||
+ (this.BrandId != null &&
+ this.BrandId.Equals(input.BrandId))
+ ) &&
+ (
+ this.BrandName == input.BrandName ||
+ (this.BrandName != null &&
+ this.BrandName.Equals(input.BrandName))
+ ) &&
+ (
+ this.CategoryCode == input.CategoryCode ||
+ (this.CategoryCode != null &&
+ this.CategoryCode.Equals(input.CategoryCode))
+ ) &&
+ (
+ this.Color == input.Color ||
+ (this.Color != null &&
+ this.Color.Equals(input.Color))
+ ) &&
+ (
+ this.ColorDescription == input.ColorDescription ||
+ (this.ColorDescription != null &&
+ this.ColorDescription.Equals(input.ColorDescription))
+ ) &&
+ (
+ this.Comment == input.Comment ||
+ (this.Comment != null &&
+ this.Comment.Equals(input.Comment))
+ ) &&
+ (
+ this.CommercialProductCode == input.CommercialProductCode ||
+ (this.CommercialProductCode != null &&
+ this.CommercialProductCode.Equals(input.CommercialProductCode))
+ ) &&
+ (
+ this.ProductLineCode == input.ProductLineCode ||
+ (this.ProductLineCode != null &&
+ this.ProductLineCode.Equals(input.ProductLineCode))
+ ) &&
+ (
+ this.Country == input.Country ||
+ (this.Country != null &&
+ this.Country.Equals(input.Country))
+ ) &&
+ (
+ this.CreatedBy == input.CreatedBy ||
+ (this.CreatedBy != null &&
+ this.CreatedBy.Equals(input.CreatedBy))
+ ) &&
+ (
+ this.CreatedByFirstName == input.CreatedByFirstName ||
+ (this.CreatedByFirstName != null &&
+ this.CreatedByFirstName.Equals(input.CreatedByFirstName))
+ ) &&
+ (
+ this.CreatedByLastName == input.CreatedByLastName ||
+ (this.CreatedByLastName != null &&
+ this.CreatedByLastName.Equals(input.CreatedByLastName))
+ ) &&
+ (
+ this.DeltaECalculationRepaired == input.DeltaECalculationRepaired ||
+ (this.DeltaECalculationRepaired != null &&
+ this.DeltaECalculationRepaired.Equals(input.DeltaECalculationRepaired))
+ ) &&
+ (
+ this.DeltaECalculationSprayout == input.DeltaECalculationSprayout ||
+ (this.DeltaECalculationSprayout != null &&
+ this.DeltaECalculationSprayout.Equals(input.DeltaECalculationSprayout))
+ ) &&
+ (
+ this.OwnColorVariantNumber == input.OwnColorVariantNumber ||
+ (this.OwnColorVariantNumber != null &&
+ this.OwnColorVariantNumber.Equals(input.OwnColorVariantNumber))
+ ) &&
+ (
+ this.PrimerProductId == input.PrimerProductId ||
+ (this.PrimerProductId != null &&
+ this.PrimerProductId.Equals(input.PrimerProductId))
+ ) &&
+ (
+ this.ProductId == input.ProductId ||
+ (this.ProductId != null &&
+ this.ProductId.Equals(input.ProductId))
+ ) &&
+ (
+ this.ProductName == input.ProductName ||
+ (this.ProductName != null &&
+ this.ProductName.Equals(input.ProductName))
+ ) &&
+ (
+ this.SelectedVersionIndex == input.SelectedVersionIndex ||
+ (this.SelectedVersionIndex != null &&
+ this.SelectedVersionIndex.Equals(input.SelectedVersionIndex))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Id != null)
+ {
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ }
+ if (this.Description != null)
+ {
+ hashCode = (hashCode * 59) + this.Description.GetHashCode();
+ }
+ if (this.MixDate != null)
+ {
+ hashCode = (hashCode * 59) + this.MixDate.GetHashCode();
+ }
+ if (this.ShopId != null)
+ {
+ hashCode = (hashCode * 59) + this.ShopId.GetHashCode();
+ }
+ if (this.TotalPrice != null)
+ {
+ hashCode = (hashCode * 59) + this.TotalPrice.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.TotalRecalculations.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalOverPoors.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalSkips.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalUnderPours.GetHashCode();
+ if (this.FormulaVersionDate != null)
+ {
+ hashCode = (hashCode * 59) + this.FormulaVersionDate.GetHashCode();
+ }
+ if (this.SomeCode != null)
+ {
+ hashCode = (hashCode * 59) + this.SomeCode.GetHashCode();
+ }
+ if (this.BatchNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.BatchNumber.GetHashCode();
+ }
+ if (this.BrandCode != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandCode.GetHashCode();
+ }
+ if (this.BrandId != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandId.GetHashCode();
+ }
+ if (this.BrandName != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandName.GetHashCode();
+ }
+ if (this.CategoryCode != null)
+ {
+ hashCode = (hashCode * 59) + this.CategoryCode.GetHashCode();
+ }
+ if (this.Color != null)
+ {
+ hashCode = (hashCode * 59) + this.Color.GetHashCode();
+ }
+ if (this.ColorDescription != null)
+ {
+ hashCode = (hashCode * 59) + this.ColorDescription.GetHashCode();
+ }
+ if (this.Comment != null)
+ {
+ hashCode = (hashCode * 59) + this.Comment.GetHashCode();
+ }
+ if (this.CommercialProductCode != null)
+ {
+ hashCode = (hashCode * 59) + this.CommercialProductCode.GetHashCode();
+ }
+ if (this.ProductLineCode != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductLineCode.GetHashCode();
+ }
+ if (this.Country != null)
+ {
+ hashCode = (hashCode * 59) + this.Country.GetHashCode();
+ }
+ if (this.CreatedBy != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedBy.GetHashCode();
+ }
+ if (this.CreatedByFirstName != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedByFirstName.GetHashCode();
+ }
+ if (this.CreatedByLastName != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedByLastName.GetHashCode();
+ }
+ if (this.DeltaECalculationRepaired != null)
+ {
+ hashCode = (hashCode * 59) + this.DeltaECalculationRepaired.GetHashCode();
+ }
+ if (this.DeltaECalculationSprayout != null)
+ {
+ hashCode = (hashCode * 59) + this.DeltaECalculationSprayout.GetHashCode();
+ }
+ if (this.OwnColorVariantNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.OwnColorVariantNumber.GetHashCode();
+ }
+ if (this.PrimerProductId != null)
+ {
+ hashCode = (hashCode * 59) + this.PrimerProductId.GetHashCode();
+ }
+ if (this.ProductId != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductId.GetHashCode();
+ }
+ if (this.ProductName != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductName.GetHashCode();
+ }
+ if (this.SelectedVersionIndex != null)
+ {
+ hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs
index df5cd66f3738..737152bd7cb8 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs
@@ -43,7 +43,7 @@ public partial class MixedAnyOf : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs
index 2ef6c97e8f37..5e10b978058a 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs
@@ -43,7 +43,7 @@ public partial class MixedOneOf : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
index 521d350a9cee..6a11cae8ac70 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
@@ -49,19 +49,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
diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs
index 894e1aa8e13b..903c4dfabd97 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs
@@ -43,7 +43,7 @@ public partial class MixedSubId : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs
index 5ebae913605a..24169ffd291b 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs
@@ -45,13 +45,13 @@ 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
///
[DataMember(Name = "class", EmitDefaultValue = false)]
- public string Class { get; set; }
+ public string? Class { get; set; }
///
/// Returns the string presentation of the object
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs
index 1c78687d9c6d..44e963ff4b7f 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs
@@ -43,7 +43,7 @@ public partial class ModelClient : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs
index 12d0eca05173..436e3bc485c6 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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.
@@ -70,13 +70,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.
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs
index 6022aa398091..510c35d0a630 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs
@@ -84,7 +84,7 @@ public partial class NullableClass : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs
index 3230dcc91933..2377352391cc 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
index 05bb2ca8de6c..7cadc803d2a4 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
@@ -49,21 +49,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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs
index 24a19990a2e9..b080e582d794 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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
@@ -107,7 +107,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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs
index 56abf7969479..2edbf47dc190 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs
@@ -47,19 +47,19 @@ 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
///
[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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs
index 18a5bfabe2b9..53399a52d482 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs
@@ -101,13 +101,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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
index b32dad8c6d08..d2e4bd4e5def 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
@@ -43,7 +43,7 @@ public partial class ReadOnlyFirst : IEquatable
/// 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.
@@ -57,7 +57,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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs
index b867c65a8aec..ec9c0ccc0f01 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs
@@ -189,6 +189,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum
///
/// Defines NotrequiredNotnullableEnumIntegerOnly
///
+ [JsonConverter(typeof(StringEnumConverter))]
public enum NotrequiredNotnullableEnumIntegerOnlyEnum
{
///
@@ -464,18 +465,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.
///
@@ -643,7 +632,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
@@ -661,13 +650,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
@@ -691,7 +680,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
@@ -715,7 +704,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
@@ -739,7 +728,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
@@ -775,7 +776,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
@@ -904,7 +905,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 ||
@@ -942,7 +944,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 ||
@@ -1042,11 +1045,13 @@ public bool Equals(RequiredClass input)
) &&
(
this.NotrequiredNullableOuterEnumDefaultValue == input.NotrequiredNullableOuterEnumDefaultValue ||
- this.NotrequiredNullableOuterEnumDefaultValue.Equals(input.NotrequiredNullableOuterEnumDefaultValue)
+ (this.NotrequiredNullableOuterEnumDefaultValue != null &&
+ this.NotrequiredNullableOuterEnumDefaultValue.Equals(input.NotrequiredNullableOuterEnumDefaultValue))
) &&
(
this.NotrequiredNotnullableOuterEnumDefaultValue == input.NotrequiredNotnullableOuterEnumDefaultValue ||
- this.NotrequiredNotnullableOuterEnumDefaultValue.Equals(input.NotrequiredNotnullableOuterEnumDefaultValue)
+ (this.NotrequiredNotnullableOuterEnumDefaultValue != null &&
+ this.NotrequiredNotnullableOuterEnumDefaultValue.Equals(input.NotrequiredNotnullableOuterEnumDefaultValue))
) &&
(
this.RequiredNullableUuid == input.RequiredNullableUuid ||
@@ -1112,7 +1117,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();
@@ -1138,7 +1146,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();
@@ -1185,8 +1196,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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs
index 44098f322361..350a7b208ec0 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs
@@ -48,14 +48,14 @@ public partial class Result : IEquatable
///
/// Result code
[DataMember(Name = "code", EmitDefaultValue = false)]
- public string Code { get; set; }
+ public string? Code { get; set; }
///
/// Result unique identifier
///
/// Result unique identifier
[DataMember(Name = "uuid", EmitDefaultValue = false)]
- public string Uuid { get; set; }
+ public string? Uuid { get; set; }
///
/// list of named parameters for current message
diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs
index e878ddab0b92..3aee13952cf9 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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
@@ -82,7 +82,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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs
index 60b9ac5c0008..e3ecf63326bf 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs
@@ -45,13 +45,13 @@ public partial class RolesReportsHash : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
index 0fe9ed282846..0d8e6fec6598 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
@@ -43,7 +43,7 @@ public partial class RolesReportsHashRole : IEquatable
/// 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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs
index 4a637be16619..7ddf2b3b4e4d 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs
@@ -45,13 +45,13 @@ 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
///
[DataMember(Name = "_special_model.name_", EmitDefaultValue = false)]
- public string VarSpecialModelName { get; set; }
+ public string? VarSpecialModelName { get; set; }
///
/// Returns the string presentation of the object
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs
index 5699133e6672..9674b50660c2 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs
@@ -45,13 +45,13 @@ 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
///
[DataMember(Name = "name", EmitDefaultValue = false)]
- public string Name { get; set; }
+ public string? Name { get; set; }
///
/// Returns the string presentation of the object
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
index aa8b827e602e..fb3b99884f13 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
@@ -43,7 +43,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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
index b64d51277036..5bc96ea2bd78 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
@@ -44,7 +44,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/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs
index 4f22d0d87feb..9e6217da61fc 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs
@@ -30,12 +30,6 @@ namespace Org.OpenAPITools.Model
[DataContract(Name = "TestResult")]
public partial class TestResult : IEquatable
{
-
- ///
- /// Gets or Sets Code
- ///
- [DataMember(Name = "code", EmitDefaultValue = false)]
- public TestResultCode? Code { get; set; }
///
/// Initializes a new instance of the class.
///
@@ -49,12 +43,18 @@ public partial class TestResult : IEquatable
this.Data = data;
}
+ ///
+ /// Gets or Sets Code
+ ///
+ [DataMember(Name = "code", EmitDefaultValue = false)]
+ public TestResultCode? Code { get; set; }
+
///
/// Result unique identifier
///
/// Result unique identifier
[DataMember(Name = "uuid", EmitDefaultValue = false)]
- public string Uuid { get; set; }
+ public string? Uuid { get; set; }
///
/// list of named parameters for current message
@@ -111,7 +111,8 @@ public bool Equals(TestResult input)
return
(
this.Code == input.Code ||
- this.Code.Equals(input.Code)
+ (this.Code != null &&
+ this.Code.Equals(input.Code))
) &&
(
this.Uuid == input.Uuid ||
@@ -135,7 +136,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.Uuid != null)
{
hashCode = (hashCode * 59) + this.Uuid.GetHashCode();
diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/User.cs
index 03599102829c..6da01968e357 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/User.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/User.cs
@@ -65,78 +65,78 @@ 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
///
[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
@@ -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/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs
index 19775ac703bc..3f7f7e00a2b7 100644
--- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/net9/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();
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 bb723d2baa13..faacf536f173 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 005b8f8058a4..bb7b7576dc2e 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 226952d1cecb..72cbdcf0af0b 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 f99aab99e387..2bf39b773a66 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 aa1ac17604eb..d41c6ec6eb65 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 032a1faeb3ff..bdbe5ac5a483 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 5ce3c4addd9b..66cc8c6d245e 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 2c414708d688..99eef458f72a 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]
@@ -28,7 +28,7 @@ Name | Type | Description | Notes
**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]
-**StringFormattedAsDecimal** | **decimal** | | [optional]
+**StringFormattedAsDecimal** | **decimal?** | | [optional]
**StringFormattedAsDecimalRequired** | **decimal** | |
[[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/Fruit.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Fruit.md
index 40df92d7c9b1..05aed3a2642b 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 5db6b0e2d1d8..8f072a324cb0 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 da7b3a6ccf9f..265348eca479 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 aab8f4db9c75..75172cd3d506 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
new file mode 100644
index 000000000000..ae8546abe127
--- /dev/null
+++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixLog.md
@@ -0,0 +1,41 @@
+# Org.OpenAPITools.Model.MixLog
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **Guid** | |
+**Description** | **string** | |
+**MixDate** | **DateTime** | |
+**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]
+**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]
+
+[[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 31f4d86fe43d..820f058bf221 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 3e19db154a80..e440a45f0ae1 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 14a7c0f1071b..1af131f829ec 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 7a335d446f4b..20391539c912 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 66c55c3b4737..c5d9f28ccc02 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 eb42bcc1aaa4..71ca9b879223 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 c7224764e2d4..a54829f9a8e2 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 07b6f018f6c1..2ec1d6949ba0 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 a10daf95cf1d..d554c7612cbe 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 7f8ffca34fa1..6d9805d03479 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 fdd22eb31fdd..f86abfc26e02 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 b0cd4dc042bf..da9b34219d84 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 5fc3dc7f85c2..a1512d751e8e 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 4d83d2d347b5..03816c3e9c90 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 4b7a3084bd0e..7b354a6e7062 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 b31a453f9e87..b27848069b78 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 2f73ada806c8..4b1e84cd621f 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 2d02542a5170..ebd438c4d902 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 52680d66e365..697a7a594171 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 627c8a3acd40..d15b45ac95d6 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 0bdef1584928..a62999aad27f 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
@@ -108,61 +108,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
@@ -174,19 +174,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
@@ -265,7 +265,7 @@ protected FormatTest() { }
/// Gets or Sets StringFormattedAsDecimal
///
[DataMember(Name = "string_formatted_as_decimal", EmitDefaultValue = false)]
- public decimal StringFormattedAsDecimal { get; set; }
+ public decimal? StringFormattedAsDecimal { get; set; }
///
/// Gets or Sets StringFormattedAsDecimalRequired
@@ -344,43 +344,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 ||
@@ -388,15 +398,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 ||
@@ -450,7 +463,8 @@ public bool Equals(FormatTest input)
) &&
(
this.StringFormattedAsDecimal == input.StringFormattedAsDecimal ||
- this.StringFormattedAsDecimal.Equals(input.StringFormattedAsDecimal)
+ (this.StringFormattedAsDecimal != null &&
+ this.StringFormattedAsDecimal.Equals(input.StringFormattedAsDecimal))
) &&
(
this.StringFormattedAsDecimalRequired == input.StringFormattedAsDecimalRequired ||
@@ -467,20 +481,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();
@@ -521,7 +574,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.PatternWithBackslash.GetHashCode();
}
- hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
+ if (this.StringFormattedAsDecimal != null)
+ {
+ hashCode = (hashCode * 59) + this.StringFormattedAsDecimal.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.StringFormattedAsDecimalRequired.GetHashCode();
return hashCode;
}
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
new file mode 100644
index 000000000000..e80c086e2f5c
--- /dev/null
+++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs
@@ -0,0 +1,679 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// MixLog
+ ///
+ [DataContract(Name = "MixLog")]
+ public partial class MixLog : IEquatable
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected MixLog() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// id (required).
+ /// description (required).
+ /// mixDate (required).
+ /// shopId.
+ /// totalPrice.
+ /// totalRecalculations (required).
+ /// totalOverPoors (required).
+ /// totalSkips (required).
+ /// totalUnderPours (required).
+ /// formulaVersionDate (required).
+ /// SomeCode is only required for color mixes.
+ /// batchNumber.
+ /// BrandCode is only required for non-color mixes.
+ /// BrandId is only required for color mixes.
+ /// BrandName is only required for color mixes.
+ /// CategoryCode is not used anymore.
+ /// Color is only required for color mixes.
+ /// colorDescription.
+ /// comment.
+ /// commercialProductCode.
+ /// ProductLineCode is only required for color mixes.
+ /// country.
+ /// createdBy.
+ /// createdByFirstName.
+ /// createdByLastName.
+ /// deltaECalculationRepaired.
+ /// deltaECalculationSprayout.
+ /// ownColorVariantNumber.
+ /// primerProductId.
+ /// ProductId is only required for color mixes.
+ /// ProductName is only required for color mixes.
+ /// selectedVersionIndex.
+ public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid shopId = default(Guid), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int selectedVersionIndex = default(int))
+ {
+ this.Id = id;
+ // to ensure "description" is required (not null)
+ if (description == null)
+ {
+ throw new ArgumentNullException("description is a required property for MixLog and cannot be null");
+ }
+ this.Description = description;
+ this.MixDate = mixDate;
+ this.TotalRecalculations = totalRecalculations;
+ this.TotalOverPoors = totalOverPoors;
+ this.TotalSkips = totalSkips;
+ this.TotalUnderPours = totalUnderPours;
+ this.FormulaVersionDate = formulaVersionDate;
+ this.ShopId = shopId;
+ this.TotalPrice = totalPrice;
+ this.SomeCode = someCode;
+ this.BatchNumber = batchNumber;
+ this.BrandCode = brandCode;
+ this.BrandId = brandId;
+ this.BrandName = brandName;
+ this.CategoryCode = categoryCode;
+ this.Color = color;
+ this.ColorDescription = colorDescription;
+ this.Comment = comment;
+ this.CommercialProductCode = commercialProductCode;
+ this.ProductLineCode = productLineCode;
+ this.Country = country;
+ this.CreatedBy = createdBy;
+ this.CreatedByFirstName = createdByFirstName;
+ this.CreatedByLastName = createdByLastName;
+ this.DeltaECalculationRepaired = deltaECalculationRepaired;
+ this.DeltaECalculationSprayout = deltaECalculationSprayout;
+ this.OwnColorVariantNumber = ownColorVariantNumber;
+ this.PrimerProductId = primerProductId;
+ this.ProductId = productId;
+ this.ProductName = productName;
+ this.SelectedVersionIndex = selectedVersionIndex;
+ }
+
+ ///
+ /// Gets or Sets Id
+ ///
+ [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
+ public Guid Id { get; set; }
+
+ ///
+ /// Gets or Sets Description
+ ///
+ [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
+ public string Description { get; set; }
+
+ ///
+ /// Gets or Sets MixDate
+ ///
+ [DataMember(Name = "mixDate", IsRequired = true, EmitDefaultValue = true)]
+ public DateTime MixDate { get; set; }
+
+ ///
+ /// Gets or Sets ShopId
+ ///
+ [DataMember(Name = "shopId", EmitDefaultValue = false)]
+ public Guid ShopId { get; set; }
+
+ ///
+ /// Gets or Sets TotalPrice
+ ///
+ [DataMember(Name = "totalPrice", EmitDefaultValue = true)]
+ public float? TotalPrice { get; set; }
+
+ ///
+ /// Gets or Sets TotalRecalculations
+ ///
+ [DataMember(Name = "totalRecalculations", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalRecalculations { get; set; }
+
+ ///
+ /// Gets or Sets TotalOverPoors
+ ///
+ [DataMember(Name = "totalOverPoors", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalOverPoors { get; set; }
+
+ ///
+ /// Gets or Sets TotalSkips
+ ///
+ [DataMember(Name = "totalSkips", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalSkips { get; set; }
+
+ ///
+ /// Gets or Sets TotalUnderPours
+ ///
+ [DataMember(Name = "totalUnderPours", IsRequired = true, EmitDefaultValue = true)]
+ public int TotalUnderPours { get; set; }
+
+ ///
+ /// Gets or Sets FormulaVersionDate
+ ///
+ [DataMember(Name = "formulaVersionDate", IsRequired = true, EmitDefaultValue = true)]
+ public DateTime FormulaVersionDate { get; set; }
+
+ ///
+ /// SomeCode is only required for color mixes
+ ///
+ /// SomeCode is only required for color mixes
+ [DataMember(Name = "someCode", EmitDefaultValue = true)]
+ public string SomeCode { get; set; }
+
+ ///
+ /// Gets or Sets BatchNumber
+ ///
+ [DataMember(Name = "batchNumber", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// BrandId is only required for color mixes
+ ///
+ /// BrandId is only required for color mixes
+ [DataMember(Name = "brandId", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// CategoryCode is not used anymore
+ ///
+ /// CategoryCode is not used anymore
+ [DataMember(Name = "categoryCode", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// Gets or Sets ColorDescription
+ ///
+ [DataMember(Name = "colorDescription", EmitDefaultValue = false)]
+ public string ColorDescription { get; set; }
+
+ ///
+ /// Gets or Sets Comment
+ ///
+ [DataMember(Name = "comment", EmitDefaultValue = false)]
+ public string Comment { get; set; }
+
+ ///
+ /// Gets or Sets CommercialProductCode
+ ///
+ [DataMember(Name = "commercialProductCode", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// Gets or Sets Country
+ ///
+ [DataMember(Name = "country", EmitDefaultValue = false)]
+ public string Country { get; set; }
+
+ ///
+ /// Gets or Sets CreatedBy
+ ///
+ [DataMember(Name = "createdBy", EmitDefaultValue = false)]
+ public string CreatedBy { get; set; }
+
+ ///
+ /// Gets or Sets CreatedByFirstName
+ ///
+ [DataMember(Name = "createdByFirstName", EmitDefaultValue = false)]
+ public string CreatedByFirstName { get; set; }
+
+ ///
+ /// Gets or Sets CreatedByLastName
+ ///
+ [DataMember(Name = "createdByLastName", EmitDefaultValue = false)]
+ public string CreatedByLastName { get; set; }
+
+ ///
+ /// Gets or Sets DeltaECalculationRepaired
+ ///
+ [DataMember(Name = "deltaECalculationRepaired", EmitDefaultValue = false)]
+ public string DeltaECalculationRepaired { get; set; }
+
+ ///
+ /// Gets or Sets DeltaECalculationSprayout
+ ///
+ [DataMember(Name = "deltaECalculationSprayout", EmitDefaultValue = false)]
+ public string DeltaECalculationSprayout { get; set; }
+
+ ///
+ /// Gets or Sets OwnColorVariantNumber
+ ///
+ [DataMember(Name = "ownColorVariantNumber", EmitDefaultValue = true)]
+ public int? OwnColorVariantNumber { get; set; }
+
+ ///
+ /// Gets or Sets PrimerProductId
+ ///
+ [DataMember(Name = "primerProductId", EmitDefaultValue = false)]
+ 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; }
+
+ ///
+ /// ProductName is only required for color mixes
+ ///
+ /// ProductName is only required for color mixes
+ [DataMember(Name = "productName", EmitDefaultValue = false)]
+ public string ProductName { get; set; }
+
+ ///
+ /// Gets or Sets SelectedVersionIndex
+ ///
+ [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)]
+ public int? SelectedVersionIndex { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class MixLog {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Description: ").Append(Description).Append("\n");
+ sb.Append(" MixDate: ").Append(MixDate).Append("\n");
+ sb.Append(" ShopId: ").Append(ShopId).Append("\n");
+ sb.Append(" TotalPrice: ").Append(TotalPrice).Append("\n");
+ sb.Append(" TotalRecalculations: ").Append(TotalRecalculations).Append("\n");
+ sb.Append(" TotalOverPoors: ").Append(TotalOverPoors).Append("\n");
+ sb.Append(" TotalSkips: ").Append(TotalSkips).Append("\n");
+ sb.Append(" TotalUnderPours: ").Append(TotalUnderPours).Append("\n");
+ sb.Append(" FormulaVersionDate: ").Append(FormulaVersionDate).Append("\n");
+ sb.Append(" SomeCode: ").Append(SomeCode).Append("\n");
+ sb.Append(" BatchNumber: ").Append(BatchNumber).Append("\n");
+ sb.Append(" BrandCode: ").Append(BrandCode).Append("\n");
+ sb.Append(" BrandId: ").Append(BrandId).Append("\n");
+ sb.Append(" BrandName: ").Append(BrandName).Append("\n");
+ sb.Append(" CategoryCode: ").Append(CategoryCode).Append("\n");
+ sb.Append(" Color: ").Append(Color).Append("\n");
+ sb.Append(" ColorDescription: ").Append(ColorDescription).Append("\n");
+ sb.Append(" Comment: ").Append(Comment).Append("\n");
+ sb.Append(" CommercialProductCode: ").Append(CommercialProductCode).Append("\n");
+ sb.Append(" ProductLineCode: ").Append(ProductLineCode).Append("\n");
+ sb.Append(" Country: ").Append(Country).Append("\n");
+ sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n");
+ sb.Append(" CreatedByFirstName: ").Append(CreatedByFirstName).Append("\n");
+ sb.Append(" CreatedByLastName: ").Append(CreatedByLastName).Append("\n");
+ sb.Append(" DeltaECalculationRepaired: ").Append(DeltaECalculationRepaired).Append("\n");
+ sb.Append(" DeltaECalculationSprayout: ").Append(DeltaECalculationSprayout).Append("\n");
+ sb.Append(" OwnColorVariantNumber: ").Append(OwnColorVariantNumber).Append("\n");
+ sb.Append(" PrimerProductId: ").Append(PrimerProductId).Append("\n");
+ sb.Append(" ProductId: ").Append(ProductId).Append("\n");
+ sb.Append(" ProductName: ").Append(ProductName).Append("\n");
+ sb.Append(" SelectedVersionIndex: ").Append(SelectedVersionIndex).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as MixLog);
+ }
+
+ ///
+ /// Returns true if MixLog instances are equal
+ ///
+ /// Instance of MixLog to be compared
+ /// Boolean
+ public bool Equals(MixLog input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Id == input.Id ||
+ (this.Id != null &&
+ this.Id.Equals(input.Id))
+ ) &&
+ (
+ this.Description == input.Description ||
+ (this.Description != null &&
+ this.Description.Equals(input.Description))
+ ) &&
+ (
+ this.MixDate == input.MixDate ||
+ (this.MixDate != null &&
+ this.MixDate.Equals(input.MixDate))
+ ) &&
+ (
+ this.ShopId == input.ShopId ||
+ (this.ShopId != null &&
+ this.ShopId.Equals(input.ShopId))
+ ) &&
+ (
+ this.TotalPrice == input.TotalPrice ||
+ (this.TotalPrice != null &&
+ this.TotalPrice.Equals(input.TotalPrice))
+ ) &&
+ (
+ this.TotalRecalculations == input.TotalRecalculations ||
+ this.TotalRecalculations.Equals(input.TotalRecalculations)
+ ) &&
+ (
+ this.TotalOverPoors == input.TotalOverPoors ||
+ this.TotalOverPoors.Equals(input.TotalOverPoors)
+ ) &&
+ (
+ this.TotalSkips == input.TotalSkips ||
+ this.TotalSkips.Equals(input.TotalSkips)
+ ) &&
+ (
+ this.TotalUnderPours == input.TotalUnderPours ||
+ this.TotalUnderPours.Equals(input.TotalUnderPours)
+ ) &&
+ (
+ this.FormulaVersionDate == input.FormulaVersionDate ||
+ (this.FormulaVersionDate != null &&
+ this.FormulaVersionDate.Equals(input.FormulaVersionDate))
+ ) &&
+ (
+ this.SomeCode == input.SomeCode ||
+ (this.SomeCode != null &&
+ this.SomeCode.Equals(input.SomeCode))
+ ) &&
+ (
+ this.BatchNumber == input.BatchNumber ||
+ (this.BatchNumber != null &&
+ this.BatchNumber.Equals(input.BatchNumber))
+ ) &&
+ (
+ this.BrandCode == input.BrandCode ||
+ (this.BrandCode != null &&
+ this.BrandCode.Equals(input.BrandCode))
+ ) &&
+ (
+ this.BrandId == input.BrandId ||
+ (this.BrandId != null &&
+ this.BrandId.Equals(input.BrandId))
+ ) &&
+ (
+ this.BrandName == input.BrandName ||
+ (this.BrandName != null &&
+ this.BrandName.Equals(input.BrandName))
+ ) &&
+ (
+ this.CategoryCode == input.CategoryCode ||
+ (this.CategoryCode != null &&
+ this.CategoryCode.Equals(input.CategoryCode))
+ ) &&
+ (
+ this.Color == input.Color ||
+ (this.Color != null &&
+ this.Color.Equals(input.Color))
+ ) &&
+ (
+ this.ColorDescription == input.ColorDescription ||
+ (this.ColorDescription != null &&
+ this.ColorDescription.Equals(input.ColorDescription))
+ ) &&
+ (
+ this.Comment == input.Comment ||
+ (this.Comment != null &&
+ this.Comment.Equals(input.Comment))
+ ) &&
+ (
+ this.CommercialProductCode == input.CommercialProductCode ||
+ (this.CommercialProductCode != null &&
+ this.CommercialProductCode.Equals(input.CommercialProductCode))
+ ) &&
+ (
+ this.ProductLineCode == input.ProductLineCode ||
+ (this.ProductLineCode != null &&
+ this.ProductLineCode.Equals(input.ProductLineCode))
+ ) &&
+ (
+ this.Country == input.Country ||
+ (this.Country != null &&
+ this.Country.Equals(input.Country))
+ ) &&
+ (
+ this.CreatedBy == input.CreatedBy ||
+ (this.CreatedBy != null &&
+ this.CreatedBy.Equals(input.CreatedBy))
+ ) &&
+ (
+ this.CreatedByFirstName == input.CreatedByFirstName ||
+ (this.CreatedByFirstName != null &&
+ this.CreatedByFirstName.Equals(input.CreatedByFirstName))
+ ) &&
+ (
+ this.CreatedByLastName == input.CreatedByLastName ||
+ (this.CreatedByLastName != null &&
+ this.CreatedByLastName.Equals(input.CreatedByLastName))
+ ) &&
+ (
+ this.DeltaECalculationRepaired == input.DeltaECalculationRepaired ||
+ (this.DeltaECalculationRepaired != null &&
+ this.DeltaECalculationRepaired.Equals(input.DeltaECalculationRepaired))
+ ) &&
+ (
+ this.DeltaECalculationSprayout == input.DeltaECalculationSprayout ||
+ (this.DeltaECalculationSprayout != null &&
+ this.DeltaECalculationSprayout.Equals(input.DeltaECalculationSprayout))
+ ) &&
+ (
+ this.OwnColorVariantNumber == input.OwnColorVariantNumber ||
+ (this.OwnColorVariantNumber != null &&
+ this.OwnColorVariantNumber.Equals(input.OwnColorVariantNumber))
+ ) &&
+ (
+ this.PrimerProductId == input.PrimerProductId ||
+ (this.PrimerProductId != null &&
+ this.PrimerProductId.Equals(input.PrimerProductId))
+ ) &&
+ (
+ this.ProductId == input.ProductId ||
+ (this.ProductId != null &&
+ this.ProductId.Equals(input.ProductId))
+ ) &&
+ (
+ this.ProductName == input.ProductName ||
+ (this.ProductName != null &&
+ this.ProductName.Equals(input.ProductName))
+ ) &&
+ (
+ this.SelectedVersionIndex == input.SelectedVersionIndex ||
+ (this.SelectedVersionIndex != null &&
+ this.SelectedVersionIndex.Equals(input.SelectedVersionIndex))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Id != null)
+ {
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ }
+ if (this.Description != null)
+ {
+ hashCode = (hashCode * 59) + this.Description.GetHashCode();
+ }
+ if (this.MixDate != null)
+ {
+ hashCode = (hashCode * 59) + this.MixDate.GetHashCode();
+ }
+ if (this.ShopId != null)
+ {
+ hashCode = (hashCode * 59) + this.ShopId.GetHashCode();
+ }
+ if (this.TotalPrice != null)
+ {
+ hashCode = (hashCode * 59) + this.TotalPrice.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.TotalRecalculations.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalOverPoors.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalSkips.GetHashCode();
+ hashCode = (hashCode * 59) + this.TotalUnderPours.GetHashCode();
+ if (this.FormulaVersionDate != null)
+ {
+ hashCode = (hashCode * 59) + this.FormulaVersionDate.GetHashCode();
+ }
+ if (this.SomeCode != null)
+ {
+ hashCode = (hashCode * 59) + this.SomeCode.GetHashCode();
+ }
+ if (this.BatchNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.BatchNumber.GetHashCode();
+ }
+ if (this.BrandCode != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandCode.GetHashCode();
+ }
+ if (this.BrandId != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandId.GetHashCode();
+ }
+ if (this.BrandName != null)
+ {
+ hashCode = (hashCode * 59) + this.BrandName.GetHashCode();
+ }
+ if (this.CategoryCode != null)
+ {
+ hashCode = (hashCode * 59) + this.CategoryCode.GetHashCode();
+ }
+ if (this.Color != null)
+ {
+ hashCode = (hashCode * 59) + this.Color.GetHashCode();
+ }
+ if (this.ColorDescription != null)
+ {
+ hashCode = (hashCode * 59) + this.ColorDescription.GetHashCode();
+ }
+ if (this.Comment != null)
+ {
+ hashCode = (hashCode * 59) + this.Comment.GetHashCode();
+ }
+ if (this.CommercialProductCode != null)
+ {
+ hashCode = (hashCode * 59) + this.CommercialProductCode.GetHashCode();
+ }
+ if (this.ProductLineCode != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductLineCode.GetHashCode();
+ }
+ if (this.Country != null)
+ {
+ hashCode = (hashCode * 59) + this.Country.GetHashCode();
+ }
+ if (this.CreatedBy != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedBy.GetHashCode();
+ }
+ if (this.CreatedByFirstName != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedByFirstName.GetHashCode();
+ }
+ if (this.CreatedByLastName != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedByLastName.GetHashCode();
+ }
+ if (this.DeltaECalculationRepaired != null)
+ {
+ hashCode = (hashCode * 59) + this.DeltaECalculationRepaired.GetHashCode();
+ }
+ if (this.DeltaECalculationSprayout != null)
+ {
+ hashCode = (hashCode * 59) + this.DeltaECalculationSprayout.GetHashCode();
+ }
+ if (this.OwnColorVariantNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.OwnColorVariantNumber.GetHashCode();
+ }
+ if (this.PrimerProductId != null)
+ {
+ hashCode = (hashCode * 59) + this.PrimerProductId.GetHashCode();
+ }
+ if (this.ProductId != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductId.GetHashCode();
+ }
+ if (this.ProductName != null)
+ {
+ hashCode = (hashCode * 59) + this.ProductName.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 5ebae913605a..eff25e70c2d2 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 12d0eca05173..5a37cd03805c 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 3230dcc91933..2377352391cc 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 05bb2ca8de6c..e899cec7584d 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 24a19990a2e9..8b0410416dd6 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 56abf7969479..3a5d939ab2e5 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 18a5bfabe2b9..6d9bcce593f6 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 5c3f9047a911..653410e527ee 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 e878ddab0b92..582bce46fc08 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 4a637be16619..53497817a8d1 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 5699133e6672..10a95ca329ab 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 03599102829c..6fbf2f28d114 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 19775ac703bc..3f7f7e00a2b7 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();