From 0d18b0b3fb1bbca43a47e3642a06e1b85bea336a Mon Sep 17 00:00:00 2001 From: Mattias-Sehlstedt <60173714+Mattias-Sehlstedt@users.noreply.github.com> Date: Fri, 3 Oct 2025 17:50:27 +0200 Subject: [PATCH 1/2] Fix how the type is calculated for deep inline arrays --- .../languages/AbstractCSharpCodegen.java | 2 +- .../csharpnetcore/CSharpModelTest.java | 29 ++++++-- ...odels-for-testing-with-http-signature.yaml | 10 +++ .../net4.7/FormModels/api/openapi.yaml | 10 +++ .../net4.7/FormModels/docs/models/Result.md | 2 + .../FormModels/docs/models/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 66 ++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 ++++++++++++++++- .../net4.7/Petstore/api/openapi.yaml | 10 +++ .../net4.7/Petstore/docs/models/Result.md | 2 + .../net4.7/Petstore/docs/models/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 66 ++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 ++++++++++++++++- .../net4.8/FormModels/api/openapi.yaml | 10 +++ .../net4.8/FormModels/docs/models/Result.md | 2 + .../FormModels/docs/models/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 66 ++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 ++++++++++++++++- .../net4.8/Petstore/api/openapi.yaml | 10 +++ .../net4.8/Petstore/docs/models/Result.md | 2 + .../net4.8/Petstore/docs/models/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 66 ++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 ++++++++++++++++- .../net8/FormModels/api/openapi.yaml | 10 +++ .../net8/FormModels/docs/models/Result.md | 2 + .../net8/FormModels/docs/models/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 66 ++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 ++++++++++++++++- .../net8/NullReferenceTypes/api/openapi.yaml | 10 +++ .../NullReferenceTypes/docs/models/Result.md | 2 + .../docs/models/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 66 ++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 ++++++++++++++++- .../net8/Petstore/api/openapi.yaml | 10 +++ .../net8/Petstore/docs/models/Result.md | 2 + .../net8/Petstore/docs/models/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 66 ++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 ++++++++++++++++- .../net8/SourceGeneration/api/openapi.yaml | 10 +++ .../SourceGeneration/docs/models/Result.md | 2 + .../docs/models/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 66 ++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 ++++++++++++++++- .../net9/FormModels/api/openapi.yaml | 10 +++ .../net9/FormModels/docs/models/Result.md | 2 + .../net9/FormModels/docs/models/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 66 ++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 ++++++++++++++++- .../net9/NullReferenceTypes/api/openapi.yaml | 10 +++ .../NullReferenceTypes/docs/models/Result.md | 2 + .../docs/models/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 66 ++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 ++++++++++++++++- .../net9/Petstore/api/openapi.yaml | 10 +++ .../net9/Petstore/docs/models/Result.md | 2 + .../net9/Petstore/docs/models/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 66 ++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 ++++++++++++++++- .../net9/SourceGeneration/api/openapi.yaml | 10 +++ .../SourceGeneration/docs/models/Result.md | 2 + .../docs/models/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 66 ++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 ++++++++++++++++- .../standard2.0/Petstore/api/openapi.yaml | 10 +++ .../Petstore/docs/models/Result.md | 2 + .../Petstore/docs/models/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 66 ++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 ++++++++++++++++- .../httpclient/net9/Petstore/api/openapi.yaml | 10 +++ .../httpclient/net9/Petstore/docs/Result.md | 2 + .../net9/Petstore/docs/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 28 +++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 28 +++++++- .../standard2.0/Petstore/api/openapi.yaml | 10 +++ .../standard2.0/Petstore/docs/Result.md | 2 + .../standard2.0/Petstore/docs/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 28 +++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 28 +++++++- .../restsharp/net8/Petstore/api/openapi.yaml | 10 +++ .../restsharp/net8/Petstore/docs/Result.md | 2 + .../net8/Petstore/docs/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 28 +++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 28 +++++++- .../ConditionalSerialization/api/openapi.yaml | 10 +++ .../ConditionalSerialization/docs/Result.md | 2 + .../docs/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 72 ++++++++++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 72 ++++++++++++++++++- .../net9/Petstore/api/openapi.yaml | 10 +++ .../net9/Petstore/docs/Result.md | 2 + .../net9/Petstore/docs/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 40 ++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 40 ++++++++++- .../standard2.0/Petstore/api/openapi.yaml | 10 +++ .../standard2.0/Petstore/docs/Result.md | 2 + .../standard2.0/Petstore/docs/TestResult.md | 2 + .../src/Org.OpenAPITools/Model/Result.cs | 40 ++++++++++- .../src/Org.OpenAPITools/Model/TestResult.cs | 40 ++++++++++- 98 files changed, 2425 insertions(+), 70 deletions(-) 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 178e54ec589f..ec07161ff199 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 @@ -1628,7 +1628,7 @@ public String getTypeDeclaration(Schema p) { Schema target = ModelUtils.isGenerateAliasAsModel() ? p : schema; if (ModelUtils.isArraySchema(target)) { Schema items = getSchemaItems(schema); - return getSchemaType(target) + "<" + getTypeDeclarationForArray(items) + ">"; + return typeMapping.get("array") + "<" + getTypeDeclarationForArray(items) + ">"; } else if (ModelUtils.isMapSchema(p)) { // Should we also support maps of maps? Schema inner = ModelUtils.getAdditionalProperties(p); 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 36bb4a9e4a8c..e258d5bb8339 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 @@ -368,11 +368,19 @@ public void nullablePropertyWithoutNullableReferenceTypesTest() { public void nullablePropertyWithNullableReferenceTypesTest() { final Schema model = new Schema() .description("a sample model") - .addProperties("id", new IntegerSchema().format(SchemaTypeUtil.INTEGER64_FORMAT).nullable(true)) + .addProperties("id", new IntegerSchema().format(SchemaTypeUtil.INTEGER64_FORMAT) + .nullable(true)) .addProperties("urls", new ArraySchema() - .items(new StringSchema()).nullable(true)) + .items(new StringSchema()) + .nullable(true)) .addProperties("name", new StringSchema().nullable(true)) - .addProperties("subObject", new Schema().addProperties("name", new StringSchema()).nullable(true)) + .addProperties("subObject", new Schema().addProperties("name", new StringSchema()) + .nullable(true)) + .addProperties("deepAliasArray", new ArraySchema() + .items(new ArraySchema() + .items(new StringSchema()) + .nullable(true)) + .nullable(true)) .addRequiredItem("id"); final DefaultCodegen codegen = new AspNetServerCodegen(); codegen.processOpts(); @@ -385,7 +393,7 @@ public void nullablePropertyWithNullableReferenceTypesTest() { Assert.assertEquals(cm.name, "sample"); Assert.assertEquals(cm.classname, "Sample"); Assert.assertEquals(cm.description, "a sample model"); - Assert.assertEquals(cm.vars.size(), 4); + Assert.assertEquals(cm.vars.size(), 5); final CodegenProperty property1 = cm.vars.get(0); Assert.assertEquals(property1.baseName, "id"); @@ -398,7 +406,7 @@ public void nullablePropertyWithNullableReferenceTypesTest() { final CodegenProperty property2 = cm.vars.get(1); Assert.assertEquals(property2.baseName, "urls"); - Assert.assertEquals(property2.dataType, "List?"); + Assert.assertEquals(property2.dataType, "List"); Assert.assertEquals(property2.name, "Urls"); Assert.assertNull(property2.defaultValue); Assert.assertEquals(property2.baseType, "List?"); @@ -424,6 +432,17 @@ public void nullablePropertyWithNullableReferenceTypesTest() { Assert.assertEquals(property4.baseType, "Object?"); Assert.assertFalse(property4.required); Assert.assertFalse(property4.isPrimitiveType); + + final CodegenProperty property5 = cm.vars.get(4); + Assert.assertEquals(property5.baseName, "deepAliasArray"); + Assert.assertEquals(property5.dataType, "List>"); + Assert.assertEquals(property5.name, "DeepAliasArray"); + Assert.assertNull(property5.defaultValue); + Assert.assertEquals(property5.baseType, "List?"); + Assert.assertEquals(property5.containerType, "array"); + Assert.assertFalse(property5.required); + Assert.assertFalse(property5.isPrimitiveType); + Assert.assertTrue(property5.isContainer); } @Test(description = "convert a model with list property") diff --git a/modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml b/modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml index 6b565788598b..a6495372e452 100644 --- a/modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml @@ -2935,6 +2935,16 @@ components: description: list of named parameters for current message additionalProperties: type: string + list: + type: array + items: + type: string + deepList: + type: array + items: + type: array + items: + type: string TestResult: type: object allOf: diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net4.7/FormModels/api/openapi.yaml index 98095354ea32..e16b320a7093 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/api/openapi.yaml @@ -2686,6 +2686,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/Result.md index fa828d5d34d4..0c2cc47b3993 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/Result.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/TestResult.md index 7e9e1e7cf5d9..717978e6212d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/TestResult.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..396e3f73a5c6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -34,12 +34,16 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -74,6 +78,32 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } + /// /// Used to track the state of Uuid /// @@ -104,6 +134,8 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -145,6 +177,8 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -168,6 +202,12 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -183,10 +223,16 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, uuid); + return new Result(code, data, deepList, list, uuid); } /// @@ -219,6 +265,12 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); + if (result.DeepListOption.IsSet && result.DeepList == null) + throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); + + if (result.ListOption.IsSet && result.List == null) + throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); + if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } + if (result.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); + } + if (result.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); + } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index cfa1aee10f8d..38e2cd5659c6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,12 +34,16 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -73,6 +77,32 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } + /// /// Used to track the state of Uuid /// @@ -103,6 +133,8 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -144,6 +176,8 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -169,6 +203,12 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -184,10 +224,16 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, uuid); + return new TestResult(code, data, deepList, list, uuid); } /// @@ -217,6 +263,12 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); + if (testResult.DeepListOption.IsSet && testResult.DeepList == null) + throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); + + if (testResult.ListOption.IsSet && testResult.List == null) + throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); + if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } + if (testResult.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); + } + if (testResult.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); + } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net4.7/Petstore/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/Result.md index fa828d5d34d4..0c2cc47b3993 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/Result.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/TestResult.md index 7e9e1e7cf5d9..717978e6212d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/TestResult.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..396e3f73a5c6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -34,12 +34,16 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -74,6 +78,32 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } + /// /// Used to track the state of Uuid /// @@ -104,6 +134,8 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -145,6 +177,8 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -168,6 +202,12 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -183,10 +223,16 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, uuid); + return new Result(code, data, deepList, list, uuid); } /// @@ -219,6 +265,12 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); + if (result.DeepListOption.IsSet && result.DeepList == null) + throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); + + if (result.ListOption.IsSet && result.List == null) + throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); + if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } + if (result.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); + } + if (result.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); + } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index cfa1aee10f8d..38e2cd5659c6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,12 +34,16 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -73,6 +77,32 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } + /// /// Used to track the state of Uuid /// @@ -103,6 +133,8 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -144,6 +176,8 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -169,6 +203,12 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -184,10 +224,16 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, uuid); + return new TestResult(code, data, deepList, list, uuid); } /// @@ -217,6 +263,12 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); + if (testResult.DeepListOption.IsSet && testResult.DeepList == null) + throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); + + if (testResult.ListOption.IsSet && testResult.List == null) + throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); + if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } + if (testResult.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); + } + if (testResult.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); + } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net4.8/FormModels/api/openapi.yaml index 98095354ea32..e16b320a7093 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/api/openapi.yaml @@ -2686,6 +2686,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/Result.md index fa828d5d34d4..0c2cc47b3993 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/Result.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/TestResult.md index 7e9e1e7cf5d9..717978e6212d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/TestResult.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..396e3f73a5c6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -34,12 +34,16 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -74,6 +78,32 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } + /// /// Used to track the state of Uuid /// @@ -104,6 +134,8 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -145,6 +177,8 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -168,6 +202,12 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -183,10 +223,16 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, uuid); + return new Result(code, data, deepList, list, uuid); } /// @@ -219,6 +265,12 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); + if (result.DeepListOption.IsSet && result.DeepList == null) + throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); + + if (result.ListOption.IsSet && result.List == null) + throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); + if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } + if (result.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); + } + if (result.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); + } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index cfa1aee10f8d..38e2cd5659c6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,12 +34,16 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -73,6 +77,32 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } + /// /// Used to track the state of Uuid /// @@ -103,6 +133,8 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -144,6 +176,8 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -169,6 +203,12 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -184,10 +224,16 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, uuid); + return new TestResult(code, data, deepList, list, uuid); } /// @@ -217,6 +263,12 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); + if (testResult.DeepListOption.IsSet && testResult.DeepList == null) + throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); + + if (testResult.ListOption.IsSet && testResult.List == null) + throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); + if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } + if (testResult.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); + } + if (testResult.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); + } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net4.8/Petstore/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/Result.md index fa828d5d34d4..0c2cc47b3993 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/Result.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/TestResult.md index 7e9e1e7cf5d9..717978e6212d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/TestResult.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..396e3f73a5c6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -34,12 +34,16 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -74,6 +78,32 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } + /// /// Used to track the state of Uuid /// @@ -104,6 +134,8 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -145,6 +177,8 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -168,6 +202,12 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -183,10 +223,16 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, uuid); + return new Result(code, data, deepList, list, uuid); } /// @@ -219,6 +265,12 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); + if (result.DeepListOption.IsSet && result.DeepList == null) + throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); + + if (result.ListOption.IsSet && result.List == null) + throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); + if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } + if (result.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); + } + if (result.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); + } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index cfa1aee10f8d..38e2cd5659c6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,12 +34,16 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -73,6 +77,32 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } + /// /// Used to track the state of Uuid /// @@ -103,6 +133,8 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -144,6 +176,8 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -169,6 +203,12 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -184,10 +224,16 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, uuid); + return new TestResult(code, data, deepList, list, uuid); } /// @@ -217,6 +263,12 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); + if (testResult.DeepListOption.IsSet && testResult.DeepList == null) + throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); + + if (testResult.ListOption.IsSet && testResult.List == null) + throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); + if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } + if (testResult.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); + } + if (testResult.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); + } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net8/FormModels/api/openapi.yaml index 98095354ea32..e16b320a7093 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/api/openapi.yaml @@ -2686,6 +2686,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/Result.md index fa828d5d34d4..0c2cc47b3993 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/Result.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/TestResult.md index 7e9e1e7cf5d9..717978e6212d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/TestResult.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..dc6cbfbac18e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -34,12 +34,16 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -74,6 +78,32 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -104,6 +134,8 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -145,6 +177,8 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -168,6 +202,12 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -183,10 +223,16 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, uuid); + return new Result(code, data, deepList, list, uuid); } /// @@ -219,6 +265,12 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); + if (result.DeepListOption.IsSet && result.DeepList == null) + throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); + + if (result.ListOption.IsSet && result.List == null) + throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); + if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } + if (result.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); + } + if (result.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); + } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 508d19f2807e..e565a09cf3c6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,12 +34,16 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -73,6 +77,32 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -103,6 +133,8 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -144,6 +176,8 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -169,6 +203,12 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -184,10 +224,16 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, uuid); + return new TestResult(code, data, deepList, list, uuid); } /// @@ -217,6 +263,12 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); + if (testResult.DeepListOption.IsSet && testResult.DeepList == null) + throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); + + if (testResult.ListOption.IsSet && testResult.List == null) + throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); + if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } + if (testResult.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); + } + if (testResult.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); + } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/Result.md index fa828d5d34d4..0c2cc47b3993 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/Result.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/TestResult.md index 7e9e1e7cf5d9..717978e6212d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/TestResult.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs index 6119748b2992..048cf825469d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs @@ -36,12 +36,16 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option?> data = default, Option uuid = default) + public Result(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -76,6 +80,32 @@ public Result(Option code = default, Option? [JsonPropertyName("data")] public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>?> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option?> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -106,6 +136,8 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -147,6 +179,8 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option?> data = default; + Option>?> deepList = default; + Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -170,6 +204,12 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; + case "deepList": + deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); + break; + case "list": + list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -185,10 +225,16 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, uuid); + return new Result(code, data, deepList, list, uuid); } /// @@ -221,6 +267,12 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); + if (result.DeepListOption.IsSet && result.DeepList == null) + throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); + + if (result.ListOption.IsSet && result.List == null) + throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); + if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -232,6 +284,16 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } + if (result.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); + } + if (result.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); + } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs index e7829b5974ee..9f90ffe69116 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs @@ -36,12 +36,16 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option?> data = default, Option uuid = default) + public TestResult(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -75,6 +79,32 @@ public TestResult(Option code = default, Option? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>?> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option?> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -105,6 +135,8 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -146,6 +178,8 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option?> data = default; + Option>?> deepList = default; + Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -171,6 +205,12 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; + case "deepList": + deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); + break; + case "list": + list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -186,10 +226,16 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, uuid); + return new TestResult(code, data, deepList, list, uuid); } /// @@ -219,6 +265,12 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); + if (testResult.DeepListOption.IsSet && testResult.DeepList == null) + throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); + + if (testResult.ListOption.IsSet && testResult.List == null) + throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); + if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -232,6 +284,16 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } + if (testResult.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); + } + if (testResult.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); + } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net8/Petstore/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/Result.md index fa828d5d34d4..0c2cc47b3993 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/Result.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/TestResult.md index 7e9e1e7cf5d9..717978e6212d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/TestResult.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..dc6cbfbac18e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -34,12 +34,16 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -74,6 +78,32 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -104,6 +134,8 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -145,6 +177,8 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -168,6 +202,12 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -183,10 +223,16 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, uuid); + return new Result(code, data, deepList, list, uuid); } /// @@ -219,6 +265,12 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); + if (result.DeepListOption.IsSet && result.DeepList == null) + throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); + + if (result.ListOption.IsSet && result.List == null) + throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); + if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } + if (result.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); + } + if (result.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); + } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 508d19f2807e..e565a09cf3c6 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,12 +34,16 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -73,6 +77,32 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -103,6 +133,8 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -144,6 +176,8 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -169,6 +203,12 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -184,10 +224,16 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, uuid); + return new TestResult(code, data, deepList, list, uuid); } /// @@ -217,6 +263,12 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); + if (testResult.DeepListOption.IsSet && testResult.DeepList == null) + throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); + + if (testResult.ListOption.IsSet && testResult.List == null) + throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); + if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } + if (testResult.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); + } + if (testResult.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); + } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/Result.md index fa828d5d34d4..0c2cc47b3993 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/Result.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/TestResult.md index 7e9e1e7cf5d9..717978e6212d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/TestResult.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs index 1c1f18fd1dec..26595a76102a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs @@ -37,12 +37,16 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option?> data = default, Option uuid = default) + public Result(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -77,6 +81,32 @@ public Result(Option code = default, Option? [JsonPropertyName("data")] public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>?> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option?> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -107,6 +137,8 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -148,6 +180,8 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option?> data = default; + Option>?> deepList = default; + Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -171,6 +205,12 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; + case "deepList": + deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); + break; + case "list": + list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -186,10 +226,16 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, uuid); + return new Result(code, data, deepList, list, uuid); } /// @@ -222,6 +268,12 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); + if (result.DeepListOption.IsSet && result.DeepList == null) + throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); + + if (result.ListOption.IsSet && result.List == null) + throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); + if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -233,6 +285,16 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } + if (result.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); + } + if (result.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); + } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs index df0deacac70e..e9d9b8c46acf 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs @@ -37,12 +37,16 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option?> data = default, Option uuid = default) + public TestResult(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -76,6 +80,32 @@ public TestResult(Option code = default, Option? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>?> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option?> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -106,6 +136,8 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -147,6 +179,8 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option?> data = default; + Option>?> deepList = default; + Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -172,6 +206,12 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; + case "deepList": + deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); + break; + case "list": + list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -187,10 +227,16 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, uuid); + return new TestResult(code, data, deepList, list, uuid); } /// @@ -220,6 +266,12 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); + if (testResult.DeepListOption.IsSet && testResult.DeepList == null) + throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); + + if (testResult.ListOption.IsSet && testResult.List == null) + throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); + if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -233,6 +285,16 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } + if (testResult.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); + } + if (testResult.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); + } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net9/FormModels/api/openapi.yaml index 98095354ea32..e16b320a7093 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/api/openapi.yaml @@ -2686,6 +2686,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/Result.md index fa828d5d34d4..0c2cc47b3993 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/Result.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/TestResult.md index 7e9e1e7cf5d9..717978e6212d 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/TestResult.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..dc6cbfbac18e 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -34,12 +34,16 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -74,6 +78,32 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -104,6 +134,8 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -145,6 +177,8 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -168,6 +202,12 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -183,10 +223,16 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, uuid); + return new Result(code, data, deepList, list, uuid); } /// @@ -219,6 +265,12 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); + if (result.DeepListOption.IsSet && result.DeepList == null) + throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); + + if (result.ListOption.IsSet && result.List == null) + throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); + if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } + if (result.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); + } + if (result.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); + } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 508d19f2807e..e565a09cf3c6 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,12 +34,16 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -73,6 +77,32 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -103,6 +133,8 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -144,6 +176,8 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -169,6 +203,12 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -184,10 +224,16 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, uuid); + return new TestResult(code, data, deepList, list, uuid); } /// @@ -217,6 +263,12 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); + if (testResult.DeepListOption.IsSet && testResult.DeepList == null) + throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); + + if (testResult.ListOption.IsSet && testResult.List == null) + throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); + if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } + if (testResult.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); + } + if (testResult.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); + } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/Result.md index fa828d5d34d4..0c2cc47b3993 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/Result.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/TestResult.md index 7e9e1e7cf5d9..717978e6212d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/TestResult.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs index 6119748b2992..048cf825469d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs @@ -36,12 +36,16 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option?> data = default, Option uuid = default) + public Result(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -76,6 +80,32 @@ public Result(Option code = default, Option? [JsonPropertyName("data")] public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>?> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option?> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -106,6 +136,8 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -147,6 +179,8 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option?> data = default; + Option>?> deepList = default; + Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -170,6 +204,12 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; + case "deepList": + deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); + break; + case "list": + list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -185,10 +225,16 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, uuid); + return new Result(code, data, deepList, list, uuid); } /// @@ -221,6 +267,12 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); + if (result.DeepListOption.IsSet && result.DeepList == null) + throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); + + if (result.ListOption.IsSet && result.List == null) + throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); + if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -232,6 +284,16 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } + if (result.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); + } + if (result.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); + } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs index e7829b5974ee..9f90ffe69116 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs @@ -36,12 +36,16 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option?> data = default, Option uuid = default) + public TestResult(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -75,6 +79,32 @@ public TestResult(Option code = default, Option? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>?> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option?> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -105,6 +135,8 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -146,6 +178,8 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option?> data = default; + Option>?> deepList = default; + Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -171,6 +205,12 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; + case "deepList": + deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); + break; + case "list": + list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -186,10 +226,16 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, uuid); + return new TestResult(code, data, deepList, list, uuid); } /// @@ -219,6 +265,12 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); + if (testResult.DeepListOption.IsSet && testResult.DeepList == null) + throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); + + if (testResult.ListOption.IsSet && testResult.List == null) + throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); + if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -232,6 +284,16 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } + if (testResult.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); + } + if (testResult.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); + } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net9/Petstore/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/Result.md index fa828d5d34d4..0c2cc47b3993 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/Result.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/TestResult.md index 7e9e1e7cf5d9..717978e6212d 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/TestResult.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..dc6cbfbac18e 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -34,12 +34,16 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -74,6 +78,32 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -104,6 +134,8 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -145,6 +177,8 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -168,6 +202,12 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -183,10 +223,16 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, uuid); + return new Result(code, data, deepList, list, uuid); } /// @@ -219,6 +265,12 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); + if (result.DeepListOption.IsSet && result.DeepList == null) + throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); + + if (result.ListOption.IsSet && result.List == null) + throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); + if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } + if (result.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); + } + if (result.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); + } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 508d19f2807e..e565a09cf3c6 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,12 +34,16 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -73,6 +77,32 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -103,6 +133,8 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -144,6 +176,8 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -169,6 +203,12 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -184,10 +224,16 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, uuid); + return new TestResult(code, data, deepList, list, uuid); } /// @@ -217,6 +263,12 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); + if (testResult.DeepListOption.IsSet && testResult.DeepList == null) + throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); + + if (testResult.ListOption.IsSet && testResult.List == null) + throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); + if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } + if (testResult.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); + } + if (testResult.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); + } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/Result.md index fa828d5d34d4..0c2cc47b3993 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/Result.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/TestResult.md index 7e9e1e7cf5d9..717978e6212d 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/TestResult.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs index 1c1f18fd1dec..26595a76102a 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs @@ -37,12 +37,16 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option?> data = default, Option uuid = default) + public Result(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -77,6 +81,32 @@ public Result(Option code = default, Option? [JsonPropertyName("data")] public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>?> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option?> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -107,6 +137,8 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -148,6 +180,8 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option?> data = default; + Option>?> deepList = default; + Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -171,6 +205,12 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; + case "deepList": + deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); + break; + case "list": + list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -186,10 +226,16 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, uuid); + return new Result(code, data, deepList, list, uuid); } /// @@ -222,6 +268,12 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); + if (result.DeepListOption.IsSet && result.DeepList == null) + throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); + + if (result.ListOption.IsSet && result.List == null) + throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); + if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -233,6 +285,16 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } + if (result.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); + } + if (result.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); + } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs index df0deacac70e..e9d9b8c46acf 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs @@ -37,12 +37,16 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option?> data = default, Option uuid = default) + public TestResult(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -76,6 +80,32 @@ public TestResult(Option code = default, Option? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>?> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option?> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } + /// /// Used to track the state of Uuid /// @@ -106,6 +136,8 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -147,6 +179,8 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option?> data = default; + Option>?> deepList = default; + Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -172,6 +206,12 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; + case "deepList": + deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); + break; + case "list": + list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -187,10 +227,16 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, uuid); + return new TestResult(code, data, deepList, list, uuid); } /// @@ -220,6 +266,12 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); + if (testResult.DeepListOption.IsSet && testResult.DeepList == null) + throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); + + if (testResult.ListOption.IsSet && testResult.List == null) + throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); + if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -233,6 +285,16 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } + if (testResult.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); + } + if (testResult.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); + } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/Result.md b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/Result.md index fa828d5d34d4..0c2cc47b3993 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/Result.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/TestResult.md index 7e9e1e7cf5d9..717978e6212d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/TestResult.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**DeepList** | **List<List<string>>** | | [optional] +**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..396e3f73a5c6 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -34,12 +34,16 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -74,6 +78,32 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } + /// /// Used to track the state of Uuid /// @@ -104,6 +134,8 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -145,6 +177,8 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -168,6 +202,12 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -183,10 +223,16 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, uuid); + return new Result(code, data, deepList, list, uuid); } /// @@ -219,6 +265,12 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); + if (result.DeepListOption.IsSet && result.DeepList == null) + throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); + + if (result.ListOption.IsSet && result.List == null) + throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); + if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } + if (result.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); + } + if (result.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); + } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index cfa1aee10f8d..38e2cd5659c6 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,12 +34,16 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message + /// deepList + /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) { CodeOption = code; DataOption = data; + DeepListOption = deepList; + ListOption = list; UuidOption = uuid; OnCreated(); } @@ -73,6 +77,32 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + /// + /// Used to track the state of DeepList + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option>> DeepListOption { get; private set; } + + /// + /// Gets or Sets DeepList + /// + [JsonPropertyName("deepList")] + public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } + + /// + /// Used to track the state of List + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option> ListOption { get; private set; } + + /// + /// Gets or Sets List + /// + [JsonPropertyName("list")] + public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } + /// /// Used to track the state of Uuid /// @@ -103,6 +133,8 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -144,6 +176,8 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; + Option>> deepList = default; + Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -169,6 +203,12 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; + case "deepList": + deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); + break; + case "list": + list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); + break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -184,10 +224,16 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + if (deepList.IsSet && deepList.Value == null) + throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); + + if (list.IsSet && list.Value == null) + throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); + if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, uuid); + return new TestResult(code, data, deepList, list, uuid); } /// @@ -217,6 +263,12 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); + if (testResult.DeepListOption.IsSet && testResult.DeepList == null) + throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); + + if (testResult.ListOption.IsSet && testResult.List == null) + throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); + if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -230,6 +282,16 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } + if (testResult.DeepListOption.IsSet) + { + writer.WritePropertyName("deepList"); + JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); + } + if (testResult.ListOption.IsSet) + { + writer.WritePropertyName("list"); + JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); + } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/httpclient/net9/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/httpclient/net9/Petstore/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/httpclient/net9/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: 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..df822e6a5810 100644 --- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Result.md +++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Result.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Code** | **string** | Result code | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**List** | **List<string>** | | [optional] +**DeepList** | **List<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/TestResult.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/TestResult.md index d70eaf2b64a1..29166bee7304 100644 --- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/TestResult.md +++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/TestResult.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Code** | **TestResultCode** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**List** | **List<string>** | | [optional] +**DeepList** | **List<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/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs index 8e00fc89a6f2..3562a2ff213c 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 @@ -39,11 +39,15 @@ public partial class Result : IEquatable, IValidatableObject /// Result code. /// Result unique identifier. /// list of named parameters for current message. - public Result(string code = default, string uuid = default, Dictionary data = default) + /// list. + /// deepList. + public Result(string code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) { this.Code = code; this.Uuid = uuid; this.Data = data; + this.List = list; + this.DeepList = deepList; this.AdditionalProperties = new Dictionary(); } @@ -68,6 +72,18 @@ public Result(string code = default, string uuid = default, Dictionary Data { get; set; } + /// + /// Gets or Sets List + /// + [DataMember(Name = "list", EmitDefaultValue = false)] + public List List { get; set; } + + /// + /// Gets or Sets DeepList + /// + [DataMember(Name = "deepList", EmitDefaultValue = false)] + public List> DeepList { get; set; } + /// /// Gets or Sets additional properties /// @@ -85,6 +101,8 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -140,6 +158,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } + if (this.List != null) + { + hashCode = (hashCode * 59) + this.List.GetHashCode(); + } + if (this.DeepList != null) + { + hashCode = (hashCode * 59) + this.DeepList.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/TestResult.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 7023e1e52574..340333818288 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 @@ -45,11 +45,15 @@ public partial class TestResult : IEquatable, IValidatableObject /// code. /// Result unique identifier. /// list of named parameters for current message. - public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default) + /// list. + /// deepList. + public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) { this.Code = code; this.Uuid = uuid; this.Data = data; + this.List = list; + this.DeepList = deepList; this.AdditionalProperties = new Dictionary(); } @@ -67,6 +71,18 @@ public TestResult(TestResultCode? code = default, string uuid = default, Diction [DataMember(Name = "data", EmitDefaultValue = false)] public Dictionary Data { get; set; } + /// + /// Gets or Sets List + /// + [DataMember(Name = "list", EmitDefaultValue = false)] + public List List { get; set; } + + /// + /// Gets or Sets DeepList + /// + [DataMember(Name = "deepList", EmitDefaultValue = false)] + public List> DeepList { get; set; } + /// /// Gets or Sets additional properties /// @@ -84,6 +100,8 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -136,6 +154,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } + if (this.List != null) + { + hashCode = (hashCode * 59) + this.List.GetHashCode(); + } + if (this.DeepList != null) + { + hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Result.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Result.md index d2de0c7ac041..df822e6a5810 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Result.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Result.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Code** | **string** | Result code | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**List** | **List<string>** | | [optional] +**DeepList** | **List<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/standard2.0/Petstore/docs/TestResult.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/TestResult.md index d70eaf2b64a1..29166bee7304 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/TestResult.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/TestResult.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Code** | **TestResultCode** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**List** | **List<string>** | | [optional] +**DeepList** | **List<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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs index 8e00fc89a6f2..3562a2ff213c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -39,11 +39,15 @@ public partial class Result : IEquatable, IValidatableObject /// Result code. /// Result unique identifier. /// list of named parameters for current message. - public Result(string code = default, string uuid = default, Dictionary data = default) + /// list. + /// deepList. + public Result(string code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) { this.Code = code; this.Uuid = uuid; this.Data = data; + this.List = list; + this.DeepList = deepList; this.AdditionalProperties = new Dictionary(); } @@ -68,6 +72,18 @@ public Result(string code = default, string uuid = default, Dictionary Data { get; set; } + /// + /// Gets or Sets List + /// + [DataMember(Name = "list", EmitDefaultValue = false)] + public List List { get; set; } + + /// + /// Gets or Sets DeepList + /// + [DataMember(Name = "deepList", EmitDefaultValue = false)] + public List> DeepList { get; set; } + /// /// Gets or Sets additional properties /// @@ -85,6 +101,8 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -140,6 +158,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } + if (this.List != null) + { + hashCode = (hashCode * 59) + this.List.GetHashCode(); + } + if (this.DeepList != null) + { + hashCode = (hashCode * 59) + this.DeepList.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/TestResult.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 7023e1e52574..340333818288 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -45,11 +45,15 @@ public partial class TestResult : IEquatable, IValidatableObject /// code. /// Result unique identifier. /// list of named parameters for current message. - public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default) + /// list. + /// deepList. + public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) { this.Code = code; this.Uuid = uuid; this.Data = data; + this.List = list; + this.DeepList = deepList; this.AdditionalProperties = new Dictionary(); } @@ -67,6 +71,18 @@ public TestResult(TestResultCode? code = default, string uuid = default, Diction [DataMember(Name = "data", EmitDefaultValue = false)] public Dictionary Data { get; set; } + /// + /// Gets or Sets List + /// + [DataMember(Name = "list", EmitDefaultValue = false)] + public List List { get; set; } + + /// + /// Gets or Sets DeepList + /// + [DataMember(Name = "deepList", EmitDefaultValue = false)] + public List> DeepList { get; set; } + /// /// Gets or Sets additional properties /// @@ -84,6 +100,8 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -136,6 +154,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } + if (this.List != null) + { + hashCode = (hashCode * 59) + this.List.GetHashCode(); + } + if (this.DeepList != null) + { + hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net8/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/restsharp/net8/Petstore/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/restsharp/net8/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: 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..df822e6a5810 100644 --- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Result.md +++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Result.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Code** | **string** | Result code | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**List** | **List<string>** | | [optional] +**DeepList** | **List<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/TestResult.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/TestResult.md index d70eaf2b64a1..29166bee7304 100644 --- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/TestResult.md +++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/TestResult.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Code** | **TestResultCode** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**List** | **List<string>** | | [optional] +**DeepList** | **List<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/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs index 0e98c9e6adda..27c9c4d9e5d4 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 @@ -38,11 +38,15 @@ public partial class Result : IEquatable, IValidatableObject /// Result code. /// Result unique identifier. /// list of named parameters for current message. - public Result(string code = default, string uuid = default, Dictionary data = default) + /// list. + /// deepList. + public Result(string code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) { this.Code = code; this.Uuid = uuid; this.Data = data; + this.List = list; + this.DeepList = deepList; } /// @@ -66,6 +70,18 @@ public Result(string code = default, string uuid = default, Dictionary Data { get; set; } + /// + /// Gets or Sets List + /// + [DataMember(Name = "list", EmitDefaultValue = false)] + public List List { get; set; } + + /// + /// Gets or Sets DeepList + /// + [DataMember(Name = "deepList", EmitDefaultValue = false)] + public List> DeepList { get; set; } + /// /// Returns the string presentation of the object /// @@ -77,6 +93,8 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -131,6 +149,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } + if (this.List != null) + { + hashCode = (hashCode * 59) + this.List.GetHashCode(); + } + if (this.DeepList != null) + { + hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); + } return hashCode; } } 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 59e120b99b4e..5fc062af6bae 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 @@ -44,11 +44,15 @@ public partial class TestResult : IEquatable, IValidatableObject /// code. /// Result unique identifier. /// list of named parameters for current message. - public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default) + /// list. + /// deepList. + public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) { this.Code = code; this.Uuid = uuid; this.Data = data; + this.List = list; + this.DeepList = deepList; } /// @@ -65,6 +69,18 @@ public TestResult(TestResultCode? code = default, string uuid = default, Diction [DataMember(Name = "data", EmitDefaultValue = false)] public Dictionary Data { get; set; } + /// + /// Gets or Sets List + /// + [DataMember(Name = "list", EmitDefaultValue = false)] + public List List { get; set; } + + /// + /// Gets or Sets DeepList + /// + [DataMember(Name = "deepList", EmitDefaultValue = false)] + public List> DeepList { get; set; } + /// /// Returns the string presentation of the object /// @@ -76,6 +92,8 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -127,6 +145,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } + if (this.List != null) + { + hashCode = (hashCode * 59) + this.List.GetHashCode(); + } + if (this.DeepList != null) + { + hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/api/openapi.yaml b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/api/openapi.yaml +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Result.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Result.md index d2de0c7ac041..df822e6a5810 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Result.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Result.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Code** | **string** | Result code | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**List** | **List<string>** | | [optional] +**DeepList** | **List<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/standard2.0/ConditionalSerialization/docs/TestResult.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/TestResult.md index d70eaf2b64a1..29166bee7304 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/TestResult.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/TestResult.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Code** | **TestResultCode** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**List** | **List<string>** | | [optional] +**DeepList** | **List<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/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Result.cs index 1fd86b15b269..25d612115119 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Result.cs @@ -38,7 +38,9 @@ public partial class Result : IEquatable, IValidatableObject /// Result code. /// Result unique identifier. /// list of named parameters for current message. - public Result(string code = default, string uuid = default, Dictionary data = default) + /// list. + /// deepList. + public Result(string code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) { this._Code = code; if (this.Code != null) @@ -55,6 +57,16 @@ public Result(string code = default, string uuid = default, Dictionary(); } @@ -134,6 +146,54 @@ public bool ShouldSerializeData() return _flagData; } /// + /// Gets or Sets List + /// + [DataMember(Name = "list", EmitDefaultValue = false)] + public List List + { + get{ return _List;} + set + { + _List = value; + _flagList = true; + } + } + private List _List; + private bool _flagList; + + /// + /// Returns false as List should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeList() + { + return _flagList; + } + /// + /// Gets or Sets DeepList + /// + [DataMember(Name = "deepList", EmitDefaultValue = false)] + public List> DeepList + { + get{ return _DeepList;} + set + { + _DeepList = value; + _flagDeepList = true; + } + } + private List> _DeepList; + private bool _flagDeepList; + + /// + /// Returns false as DeepList should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeDeepList() + { + return _flagDeepList; + } + /// /// Gets or Sets additional properties /// [JsonExtensionData] @@ -150,6 +210,8 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -205,6 +267,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } + if (this.List != null) + { + hashCode = (hashCode * 59) + this.List.GetHashCode(); + } + if (this.DeepList != null) + { + hashCode = (hashCode * 59) + this.DeepList.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/TestResult.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestResult.cs index a91f85d19849..99b1391df31b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestResult.cs @@ -64,7 +64,9 @@ public bool ShouldSerializeCode() /// code. /// Result unique identifier. /// list of named parameters for current message. - public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default) + /// list. + /// deepList. + public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) { this._Code = code; if (this.Code != null) @@ -81,6 +83,16 @@ public TestResult(TestResultCode? code = default, string uuid = default, Diction { this._flagData = true; } + this._List = list; + if (this.List != null) + { + this._flagList = true; + } + this._DeepList = deepList; + if (this.DeepList != null) + { + this._flagDeepList = true; + } this.AdditionalProperties = new Dictionary(); } @@ -135,6 +147,54 @@ public bool ShouldSerializeData() return _flagData; } /// + /// Gets or Sets List + /// + [DataMember(Name = "list", EmitDefaultValue = false)] + public List List + { + get{ return _List;} + set + { + _List = value; + _flagList = true; + } + } + private List _List; + private bool _flagList; + + /// + /// Returns false as List should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeList() + { + return _flagList; + } + /// + /// Gets or Sets DeepList + /// + [DataMember(Name = "deepList", EmitDefaultValue = false)] + public List> DeepList + { + get{ return _DeepList;} + set + { + _DeepList = value; + _flagDeepList = true; + } + } + private List> _DeepList; + private bool _flagDeepList; + + /// + /// Returns false as DeepList should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeDeepList() + { + return _flagDeepList; + } + /// /// Gets or Sets additional properties /// [JsonExtensionData] @@ -151,6 +211,8 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -203,6 +265,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } + if (this.List != null) + { + hashCode = (hashCode * 59) + this.List.GetHashCode(); + } + if (this.DeepList != null) + { + hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: 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..df822e6a5810 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Result.md +++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Result.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Code** | **string** | Result code | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**List** | **List<string>** | | [optional] +**DeepList** | **List<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/TestResult.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/TestResult.md index d70eaf2b64a1..29166bee7304 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/TestResult.md +++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/TestResult.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Code** | **TestResultCode** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**List** | **List<string>** | | [optional] +**DeepList** | **List<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/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs index 5b0350f617d1..e7648fa54796 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 @@ -36,11 +36,15 @@ public partial class Result : IEquatable /// Result code. /// Result unique identifier. /// list of named parameters for current message. - public Result(string code = default, string uuid = default, Dictionary data = default) + /// list. + /// deepList. + public Result(string code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) { this.Code = code; this.Uuid = uuid; this.Data = data; + this.List = list; + this.DeepList = deepList; } /// @@ -64,6 +68,18 @@ public Result(string code = default, string uuid = default, Dictionary Data { get; set; } + /// + /// Gets or Sets List + /// + [DataMember(Name = "list", EmitDefaultValue = false)] + public List List { get; set; } + + /// + /// Gets or Sets DeepList + /// + [DataMember(Name = "deepList", EmitDefaultValue = false)] + public List> DeepList { get; set; } + /// /// Returns the string presentation of the object /// @@ -75,6 +91,8 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -125,6 +143,18 @@ public bool Equals(Result input) this.Data != null && input.Data != null && this.Data.SequenceEqual(input.Data) + ) && + ( + this.List == input.List || + this.List != null && + input.List != null && + this.List.SequenceEqual(input.List) + ) && + ( + this.DeepList == input.DeepList || + this.DeepList != null && + input.DeepList != null && + this.DeepList.SequenceEqual(input.DeepList) ); } @@ -149,6 +179,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } + if (this.List != null) + { + hashCode = (hashCode * 59) + this.List.GetHashCode(); + } + if (this.DeepList != null) + { + hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); + } return hashCode; } } 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 66835279015a..a65a855385c8 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 @@ -42,11 +42,15 @@ public partial class TestResult : IEquatable /// code. /// Result unique identifier. /// list of named parameters for current message. - public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default) + /// list. + /// deepList. + public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) { this.Code = code; this.Uuid = uuid; this.Data = data; + this.List = list; + this.DeepList = deepList; } /// @@ -63,6 +67,18 @@ public TestResult(TestResultCode? code = default, string uuid = default, Diction [DataMember(Name = "data", EmitDefaultValue = false)] public Dictionary Data { get; set; } + /// + /// Gets or Sets List + /// + [DataMember(Name = "list", EmitDefaultValue = false)] + public List List { get; set; } + + /// + /// Gets or Sets DeepList + /// + [DataMember(Name = "deepList", EmitDefaultValue = false)] + public List> DeepList { get; set; } + /// /// Returns the string presentation of the object /// @@ -74,6 +90,8 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -123,6 +141,18 @@ public bool Equals(TestResult input) this.Data != null && input.Data != null && this.Data.SequenceEqual(input.Data) + ) && + ( + this.List == input.List || + this.List != null && + input.List != null && + this.List.SequenceEqual(input.List) + ) && + ( + this.DeepList == input.DeepList || + this.DeepList != null && + input.DeepList != null && + this.DeepList.SequenceEqual(input.DeepList) ); } @@ -144,6 +174,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } + if (this.List != null) + { + hashCode = (hashCode * 59) + this.List.GetHashCode(); + } + if (this.DeepList != null) + { + hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/api/openapi.yaml index 9d3b1ee3ad39..ee54cebea8ac 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/api/openapi.yaml @@ -2867,6 +2867,16 @@ components: type: string description: list of named parameters for current message type: object + list: + items: + type: string + type: array + deepList: + items: + items: + type: string + type: array + type: array type: object TestResult: allOf: diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Result.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Result.md index d2de0c7ac041..df822e6a5810 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Result.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Result.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Code** | **string** | Result code | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**List** | **List<string>** | | [optional] +**DeepList** | **List<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/standard2.0/Petstore/docs/TestResult.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/TestResult.md index d70eaf2b64a1..29166bee7304 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/TestResult.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/TestResult.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Code** | **TestResultCode** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] +**List** | **List<string>** | | [optional] +**DeepList** | **List<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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs index 5b0350f617d1..e7648fa54796 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -36,11 +36,15 @@ public partial class Result : IEquatable /// Result code. /// Result unique identifier. /// list of named parameters for current message. - public Result(string code = default, string uuid = default, Dictionary data = default) + /// list. + /// deepList. + public Result(string code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) { this.Code = code; this.Uuid = uuid; this.Data = data; + this.List = list; + this.DeepList = deepList; } /// @@ -64,6 +68,18 @@ public Result(string code = default, string uuid = default, Dictionary Data { get; set; } + /// + /// Gets or Sets List + /// + [DataMember(Name = "list", EmitDefaultValue = false)] + public List List { get; set; } + + /// + /// Gets or Sets DeepList + /// + [DataMember(Name = "deepList", EmitDefaultValue = false)] + public List> DeepList { get; set; } + /// /// Returns the string presentation of the object /// @@ -75,6 +91,8 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -125,6 +143,18 @@ public bool Equals(Result input) this.Data != null && input.Data != null && this.Data.SequenceEqual(input.Data) + ) && + ( + this.List == input.List || + this.List != null && + input.List != null && + this.List.SequenceEqual(input.List) + ) && + ( + this.DeepList == input.DeepList || + this.DeepList != null && + input.DeepList != null && + this.DeepList.SequenceEqual(input.DeepList) ); } @@ -149,6 +179,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } + if (this.List != null) + { + hashCode = (hashCode * 59) + this.List.GetHashCode(); + } + if (this.DeepList != null) + { + hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 66835279015a..a65a855385c8 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -42,11 +42,15 @@ public partial class TestResult : IEquatable /// code. /// Result unique identifier. /// list of named parameters for current message. - public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default) + /// list. + /// deepList. + public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) { this.Code = code; this.Uuid = uuid; this.Data = data; + this.List = list; + this.DeepList = deepList; } /// @@ -63,6 +67,18 @@ public TestResult(TestResultCode? code = default, string uuid = default, Diction [DataMember(Name = "data", EmitDefaultValue = false)] public Dictionary Data { get; set; } + /// + /// Gets or Sets List + /// + [DataMember(Name = "list", EmitDefaultValue = false)] + public List List { get; set; } + + /// + /// Gets or Sets DeepList + /// + [DataMember(Name = "deepList", EmitDefaultValue = false)] + public List> DeepList { get; set; } + /// /// Returns the string presentation of the object /// @@ -74,6 +90,8 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -123,6 +141,18 @@ public bool Equals(TestResult input) this.Data != null && input.Data != null && this.Data.SequenceEqual(input.Data) + ) && + ( + this.List == input.List || + this.List != null && + input.List != null && + this.List.SequenceEqual(input.List) + ) && + ( + this.DeepList == input.DeepList || + this.DeepList != null && + input.DeepList != null && + this.DeepList.SequenceEqual(input.DeepList) ); } @@ -144,6 +174,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } + if (this.List != null) + { + hashCode = (hashCode * 59) + this.List.GetHashCode(); + } + if (this.DeepList != null) + { + hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); + } return hashCode; } } From 98cb9cdad50333858d8ac040e0ad2a0020fb38d2 Mon Sep 17 00:00:00 2001 From: Mattias-Sehlstedt <60173714+Mattias-Sehlstedt@users.noreply.github.com> Date: Sun, 12 Oct 2025 12:22:46 +0200 Subject: [PATCH 2/2] Add list alias objects to petstore specification and regenerate samples --- .../csharpnetcore/CSharpModelTest.java | 36 ++++++++-- ...odels-for-testing-with-http-signature.yaml | 20 +++--- .../net4.7/FormModels/api/openapi.yaml | 20 +++--- .../net4.7/FormModels/docs/models/Result.md | 2 - .../FormModels/docs/models/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 66 +---------------- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 +---------------- .../net4.7/Petstore/api/openapi.yaml | 20 +++--- .../net4.7/Petstore/docs/models/Result.md | 2 - .../net4.7/Petstore/docs/models/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 66 +---------------- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 +---------------- .../net4.8/FormModels/api/openapi.yaml | 20 +++--- .../net4.8/FormModels/docs/models/Result.md | 2 - .../FormModels/docs/models/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 66 +---------------- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 +---------------- .../net4.8/Petstore/api/openapi.yaml | 20 +++--- .../net4.8/Petstore/docs/models/Result.md | 2 - .../net4.8/Petstore/docs/models/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 66 +---------------- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 +---------------- .../net8/FormModels/api/openapi.yaml | 20 +++--- .../net8/FormModels/docs/models/Result.md | 2 - .../net8/FormModels/docs/models/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 66 +---------------- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 +---------------- .../net8/NullReferenceTypes/api/openapi.yaml | 20 +++--- .../NullReferenceTypes/docs/models/Result.md | 2 - .../docs/models/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 66 +---------------- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 +---------------- .../net8/Petstore/api/openapi.yaml | 20 +++--- .../net8/Petstore/docs/models/Result.md | 2 - .../net8/Petstore/docs/models/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 66 +---------------- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 +---------------- .../net8/SourceGeneration/api/openapi.yaml | 20 +++--- .../SourceGeneration/docs/models/Result.md | 2 - .../docs/models/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 66 +---------------- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 +---------------- .../net9/FormModels/api/openapi.yaml | 20 +++--- .../net9/FormModels/docs/models/Result.md | 2 - .../net9/FormModels/docs/models/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 66 +---------------- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 +---------------- .../net9/NullReferenceTypes/api/openapi.yaml | 20 +++--- .../NullReferenceTypes/docs/models/Result.md | 2 - .../docs/models/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 66 +---------------- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 +---------------- .../net9/Petstore/api/openapi.yaml | 20 +++--- .../net9/Petstore/docs/models/Result.md | 2 - .../net9/Petstore/docs/models/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 66 +---------------- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 +---------------- .../net9/SourceGeneration/api/openapi.yaml | 20 +++--- .../SourceGeneration/docs/models/Result.md | 2 - .../docs/models/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 66 +---------------- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 +---------------- .../standard2.0/Petstore/api/openapi.yaml | 20 +++--- .../Petstore/docs/models/Result.md | 2 - .../Petstore/docs/models/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 66 +---------------- .../src/Org.OpenAPITools/Model/TestResult.cs | 66 +---------------- .../httpclient/net9/Petstore/api/openapi.yaml | 20 +++--- .../httpclient/net9/Petstore/docs/Result.md | 2 - .../net9/Petstore/docs/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 28 +------- .../src/Org.OpenAPITools/Model/TestResult.cs | 28 +------- .../standard2.0/Petstore/api/openapi.yaml | 20 +++--- .../standard2.0/Petstore/docs/Result.md | 2 - .../standard2.0/Petstore/docs/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 28 +------- .../src/Org.OpenAPITools/Model/TestResult.cs | 28 +------- .../restsharp/net8/Petstore/api/openapi.yaml | 20 +++--- .../restsharp/net8/Petstore/docs/Result.md | 2 - .../net8/Petstore/docs/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 28 +------- .../src/Org.OpenAPITools/Model/TestResult.cs | 28 +------- .../ConditionalSerialization/api/openapi.yaml | 20 +++--- .../ConditionalSerialization/docs/Result.md | 2 - .../docs/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 72 +------------------ .../src/Org.OpenAPITools/Model/TestResult.cs | 72 +------------------ .../net9/Petstore/api/openapi.yaml | 20 +++--- .../net9/Petstore/docs/Result.md | 2 - .../net9/Petstore/docs/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 40 +---------- .../src/Org.OpenAPITools/Model/TestResult.cs | 40 +---------- .../standard2.0/Petstore/api/openapi.yaml | 20 +++--- .../standard2.0/Petstore/docs/Result.md | 2 - .../standard2.0/Petstore/docs/TestResult.md | 2 - .../src/Org.OpenAPITools/Model/Result.cs | 40 +---------- .../src/Org.OpenAPITools/Model/TestResult.cs | 40 +---------- 97 files changed, 294 insertions(+), 2406 deletions(-) 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 e258d5bb8339..c9a085b71e2b 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 @@ -376,11 +376,19 @@ public void nullablePropertyWithNullableReferenceTypesTest() { .addProperties("name", new StringSchema().nullable(true)) .addProperties("subObject", new Schema().addProperties("name", new StringSchema()) .nullable(true)) - .addProperties("deepAliasArray", new ArraySchema() + .addProperties("deepNullableAliasArray", new ArraySchema() .items(new ArraySchema() - .items(new StringSchema()) + .items(new StringSchema() + .nullable(true)) .nullable(true)) .nullable(true)) + .addProperties("deepAliasArray", new ArraySchema() + .items(new ArraySchema() + .items(new StringSchema()))) + .addProperties("deepIntermediateNullableAliasArray", new ArraySchema() + .items(new ArraySchema() + .items(new StringSchema()) + .nullable(true))) .addRequiredItem("id"); final DefaultCodegen codegen = new AspNetServerCodegen(); codegen.processOpts(); @@ -393,7 +401,7 @@ public void nullablePropertyWithNullableReferenceTypesTest() { Assert.assertEquals(cm.name, "sample"); Assert.assertEquals(cm.classname, "Sample"); Assert.assertEquals(cm.description, "a sample model"); - Assert.assertEquals(cm.vars.size(), 5); + Assert.assertEquals(cm.vars.size(), 7); final CodegenProperty property1 = cm.vars.get(0); Assert.assertEquals(property1.baseName, "id"); @@ -434,15 +442,31 @@ public void nullablePropertyWithNullableReferenceTypesTest() { Assert.assertFalse(property4.isPrimitiveType); final CodegenProperty property5 = cm.vars.get(4); - Assert.assertEquals(property5.baseName, "deepAliasArray"); - Assert.assertEquals(property5.dataType, "List>"); - Assert.assertEquals(property5.name, "DeepAliasArray"); + Assert.assertEquals(property5.baseName, "deepNullableAliasArray"); + Assert.assertEquals(property5.dataType, "List>"); + Assert.assertEquals(property5.name, "DeepNullableAliasArray"); Assert.assertNull(property5.defaultValue); Assert.assertEquals(property5.baseType, "List?"); Assert.assertEquals(property5.containerType, "array"); Assert.assertFalse(property5.required); Assert.assertFalse(property5.isPrimitiveType); Assert.assertTrue(property5.isContainer); + + final CodegenProperty property6 = cm.vars.get(5); + Assert.assertEquals(property6.baseName, "deepAliasArray"); + Assert.assertEquals(property6.dataType, "List>"); + Assert.assertEquals(property6.name, "DeepAliasArray"); + Assert.assertEquals(property6.baseType, "List"); + Assert.assertEquals(property6.containerType, "array"); + Assert.assertTrue(property6.isContainer); + + final CodegenProperty property7 = cm.vars.get(6); + Assert.assertEquals(property7.baseName, "deepIntermediateNullableAliasArray"); + Assert.assertEquals(property7.dataType, "List>"); + Assert.assertEquals(property7.name, "DeepIntermediateNullableAliasArray"); + Assert.assertEquals(property7.baseType, "List"); + Assert.assertEquals(property7.containerType, "array"); + Assert.assertTrue(property7.isContainer); } @Test(description = "convert a model with list property") diff --git a/modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml b/modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml index a6495372e452..a9b677c1740b 100644 --- a/modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml @@ -2935,16 +2935,16 @@ components: description: list of named parameters for current message additionalProperties: type: string - list: - type: array - items: - type: string - deepList: - type: array - items: - type: array - items: - type: string + ListAlias: + type: array + items: + type: string + DeepListAlias: + type: array + items: + type: array + items: + type: string TestResult: type: object allOf: diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net4.7/FormModels/api/openapi.yaml index e16b320a7093..dc3c6d2ecf6b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/api/openapi.yaml @@ -2686,17 +2686,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/Result.md index 0c2cc47b3993..fa828d5d34d4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/Result.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/TestResult.md index 717978e6212d..7e9e1e7cf5d9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/TestResult.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs index 396e3f73a5c6..fb1b3546a031 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -34,16 +34,12 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -78,32 +74,6 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } - /// /// Used to track the state of Uuid /// @@ -134,8 +104,6 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -177,8 +145,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -202,12 +168,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -223,16 +183,10 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, deepList, list, uuid); + return new Result(code, data, uuid); } /// @@ -265,12 +219,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); - if (result.DeepListOption.IsSet && result.DeepList == null) - throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); - - if (result.ListOption.IsSet && result.List == null) - throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); - if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } - if (result.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); - } - if (result.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); - } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 38e2cd5659c6..cfa1aee10f8d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,16 +34,12 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -77,32 +73,6 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } - /// /// Used to track the state of Uuid /// @@ -133,8 +103,6 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -176,8 +144,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -203,12 +169,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -224,16 +184,10 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, deepList, list, uuid); + return new TestResult(code, data, uuid); } /// @@ -263,12 +217,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); - if (testResult.DeepListOption.IsSet && testResult.DeepList == null) - throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); - - if (testResult.ListOption.IsSet && testResult.List == null) - throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); - if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } - if (testResult.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); - } - if (testResult.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); - } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net4.7/Petstore/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/Result.md index 0c2cc47b3993..fa828d5d34d4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/Result.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/TestResult.md index 717978e6212d..7e9e1e7cf5d9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/TestResult.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs index 396e3f73a5c6..fb1b3546a031 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -34,16 +34,12 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -78,32 +74,6 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } - /// /// Used to track the state of Uuid /// @@ -134,8 +104,6 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -177,8 +145,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -202,12 +168,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -223,16 +183,10 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, deepList, list, uuid); + return new Result(code, data, uuid); } /// @@ -265,12 +219,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); - if (result.DeepListOption.IsSet && result.DeepList == null) - throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); - - if (result.ListOption.IsSet && result.List == null) - throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); - if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } - if (result.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); - } - if (result.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); - } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 38e2cd5659c6..cfa1aee10f8d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,16 +34,12 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -77,32 +73,6 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } - /// /// Used to track the state of Uuid /// @@ -133,8 +103,6 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -176,8 +144,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -203,12 +169,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -224,16 +184,10 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, deepList, list, uuid); + return new TestResult(code, data, uuid); } /// @@ -263,12 +217,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); - if (testResult.DeepListOption.IsSet && testResult.DeepList == null) - throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); - - if (testResult.ListOption.IsSet && testResult.List == null) - throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); - if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } - if (testResult.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); - } - if (testResult.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); - } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net4.8/FormModels/api/openapi.yaml index e16b320a7093..dc3c6d2ecf6b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/api/openapi.yaml @@ -2686,17 +2686,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/Result.md index 0c2cc47b3993..fa828d5d34d4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/Result.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/TestResult.md index 717978e6212d..7e9e1e7cf5d9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/TestResult.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs index 396e3f73a5c6..fb1b3546a031 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -34,16 +34,12 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -78,32 +74,6 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } - /// /// Used to track the state of Uuid /// @@ -134,8 +104,6 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -177,8 +145,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -202,12 +168,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -223,16 +183,10 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, deepList, list, uuid); + return new Result(code, data, uuid); } /// @@ -265,12 +219,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); - if (result.DeepListOption.IsSet && result.DeepList == null) - throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); - - if (result.ListOption.IsSet && result.List == null) - throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); - if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } - if (result.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); - } - if (result.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); - } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 38e2cd5659c6..cfa1aee10f8d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,16 +34,12 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -77,32 +73,6 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } - /// /// Used to track the state of Uuid /// @@ -133,8 +103,6 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -176,8 +144,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -203,12 +169,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -224,16 +184,10 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, deepList, list, uuid); + return new TestResult(code, data, uuid); } /// @@ -263,12 +217,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); - if (testResult.DeepListOption.IsSet && testResult.DeepList == null) - throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); - - if (testResult.ListOption.IsSet && testResult.List == null) - throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); - if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } - if (testResult.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); - } - if (testResult.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); - } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net4.8/Petstore/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/Result.md index 0c2cc47b3993..fa828d5d34d4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/Result.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/TestResult.md index 717978e6212d..7e9e1e7cf5d9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/TestResult.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs index 396e3f73a5c6..fb1b3546a031 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -34,16 +34,12 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -78,32 +74,6 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } - /// /// Used to track the state of Uuid /// @@ -134,8 +104,6 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -177,8 +145,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -202,12 +168,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -223,16 +183,10 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, deepList, list, uuid); + return new Result(code, data, uuid); } /// @@ -265,12 +219,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); - if (result.DeepListOption.IsSet && result.DeepList == null) - throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); - - if (result.ListOption.IsSet && result.List == null) - throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); - if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } - if (result.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); - } - if (result.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); - } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 38e2cd5659c6..cfa1aee10f8d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,16 +34,12 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -77,32 +73,6 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } - /// /// Used to track the state of Uuid /// @@ -133,8 +103,6 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -176,8 +144,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -203,12 +169,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -224,16 +184,10 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, deepList, list, uuid); + return new TestResult(code, data, uuid); } /// @@ -263,12 +217,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); - if (testResult.DeepListOption.IsSet && testResult.DeepList == null) - throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); - - if (testResult.ListOption.IsSet && testResult.List == null) - throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); - if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } - if (testResult.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); - } - if (testResult.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); - } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net8/FormModels/api/openapi.yaml index e16b320a7093..dc3c6d2ecf6b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/api/openapi.yaml @@ -2686,17 +2686,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/Result.md index 0c2cc47b3993..fa828d5d34d4 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/Result.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/TestResult.md index 717978e6212d..7e9e1e7cf5d9 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/TestResult.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs index dc6cbfbac18e..d29f16225c9a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -34,16 +34,12 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -78,32 +74,6 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -134,8 +104,6 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -177,8 +145,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -202,12 +168,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -223,16 +183,10 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, deepList, list, uuid); + return new Result(code, data, uuid); } /// @@ -265,12 +219,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); - if (result.DeepListOption.IsSet && result.DeepList == null) - throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); - - if (result.ListOption.IsSet && result.List == null) - throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); - if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } - if (result.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); - } - if (result.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); - } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index e565a09cf3c6..508d19f2807e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,16 +34,12 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -77,32 +73,6 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -133,8 +103,6 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -176,8 +144,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -203,12 +169,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -224,16 +184,10 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, deepList, list, uuid); + return new TestResult(code, data, uuid); } /// @@ -263,12 +217,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); - if (testResult.DeepListOption.IsSet && testResult.DeepList == null) - throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); - - if (testResult.ListOption.IsSet && testResult.List == null) - throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); - if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } - if (testResult.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); - } - if (testResult.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); - } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/Result.md index 0c2cc47b3993..fa828d5d34d4 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/Result.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/TestResult.md index 717978e6212d..7e9e1e7cf5d9 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/TestResult.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs index 048cf825469d..6119748b2992 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs @@ -36,16 +36,12 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) + public Result(Option code = default, Option?> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -80,32 +76,6 @@ public Result(Option code = default, Option? [JsonPropertyName("data")] public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>?> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option?> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -136,8 +106,6 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -179,8 +147,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option?> data = default; - Option>?> deepList = default; - Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -204,12 +170,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; - case "deepList": - deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); - break; - case "list": - list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -225,16 +185,10 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, deepList, list, uuid); + return new Result(code, data, uuid); } /// @@ -267,12 +221,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); - if (result.DeepListOption.IsSet && result.DeepList == null) - throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); - - if (result.ListOption.IsSet && result.List == null) - throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); - if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -284,16 +232,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } - if (result.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); - } - if (result.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); - } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs index 9f90ffe69116..e7829b5974ee 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs @@ -36,16 +36,12 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) + public TestResult(Option code = default, Option?> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -79,32 +75,6 @@ public TestResult(Option code = default, Option? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>?> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option?> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -135,8 +105,6 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -178,8 +146,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option?> data = default; - Option>?> deepList = default; - Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -205,12 +171,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; - case "deepList": - deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); - break; - case "list": - list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -226,16 +186,10 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, deepList, list, uuid); + return new TestResult(code, data, uuid); } /// @@ -265,12 +219,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); - if (testResult.DeepListOption.IsSet && testResult.DeepList == null) - throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); - - if (testResult.ListOption.IsSet && testResult.List == null) - throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); - if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -284,16 +232,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } - if (testResult.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); - } - if (testResult.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); - } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net8/Petstore/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/Result.md index 0c2cc47b3993..fa828d5d34d4 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/Result.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/TestResult.md index 717978e6212d..7e9e1e7cf5d9 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/TestResult.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs index dc6cbfbac18e..d29f16225c9a 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -34,16 +34,12 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -78,32 +74,6 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -134,8 +104,6 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -177,8 +145,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -202,12 +168,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -223,16 +183,10 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, deepList, list, uuid); + return new Result(code, data, uuid); } /// @@ -265,12 +219,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); - if (result.DeepListOption.IsSet && result.DeepList == null) - throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); - - if (result.ListOption.IsSet && result.List == null) - throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); - if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } - if (result.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); - } - if (result.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); - } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index e565a09cf3c6..508d19f2807e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,16 +34,12 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -77,32 +73,6 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -133,8 +103,6 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -176,8 +144,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -203,12 +169,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -224,16 +184,10 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, deepList, list, uuid); + return new TestResult(code, data, uuid); } /// @@ -263,12 +217,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); - if (testResult.DeepListOption.IsSet && testResult.DeepList == null) - throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); - - if (testResult.ListOption.IsSet && testResult.List == null) - throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); - if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } - if (testResult.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); - } - if (testResult.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); - } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/Result.md index 0c2cc47b3993..fa828d5d34d4 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/Result.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/TestResult.md index 717978e6212d..7e9e1e7cf5d9 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/TestResult.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs index 26595a76102a..1c1f18fd1dec 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs @@ -37,16 +37,12 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) + public Result(Option code = default, Option?> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -81,32 +77,6 @@ public Result(Option code = default, Option? [JsonPropertyName("data")] public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>?> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option?> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -137,8 +107,6 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -180,8 +148,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option?> data = default; - Option>?> deepList = default; - Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -205,12 +171,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; - case "deepList": - deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); - break; - case "list": - list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -226,16 +186,10 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, deepList, list, uuid); + return new Result(code, data, uuid); } /// @@ -268,12 +222,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); - if (result.DeepListOption.IsSet && result.DeepList == null) - throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); - - if (result.ListOption.IsSet && result.List == null) - throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); - if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -285,16 +233,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } - if (result.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); - } - if (result.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); - } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs index e9d9b8c46acf..df0deacac70e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs @@ -37,16 +37,12 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) + public TestResult(Option code = default, Option?> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -80,32 +76,6 @@ public TestResult(Option code = default, Option? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>?> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option?> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -136,8 +106,6 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -179,8 +147,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option?> data = default; - Option>?> deepList = default; - Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -206,12 +172,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; - case "deepList": - deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); - break; - case "list": - list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -227,16 +187,10 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, deepList, list, uuid); + return new TestResult(code, data, uuid); } /// @@ -266,12 +220,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); - if (testResult.DeepListOption.IsSet && testResult.DeepList == null) - throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); - - if (testResult.ListOption.IsSet && testResult.List == null) - throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); - if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -285,16 +233,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } - if (testResult.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); - } - if (testResult.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); - } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net9/FormModels/api/openapi.yaml index e16b320a7093..dc3c6d2ecf6b 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/api/openapi.yaml @@ -2686,17 +2686,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/Result.md index 0c2cc47b3993..fa828d5d34d4 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/Result.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/TestResult.md index 717978e6212d..7e9e1e7cf5d9 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/TestResult.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs index dc6cbfbac18e..d29f16225c9a 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -34,16 +34,12 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -78,32 +74,6 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -134,8 +104,6 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -177,8 +145,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -202,12 +168,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -223,16 +183,10 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, deepList, list, uuid); + return new Result(code, data, uuid); } /// @@ -265,12 +219,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); - if (result.DeepListOption.IsSet && result.DeepList == null) - throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); - - if (result.ListOption.IsSet && result.List == null) - throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); - if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } - if (result.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); - } - if (result.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); - } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index e565a09cf3c6..508d19f2807e 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,16 +34,12 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -77,32 +73,6 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -133,8 +103,6 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -176,8 +144,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -203,12 +169,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -224,16 +184,10 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, deepList, list, uuid); + return new TestResult(code, data, uuid); } /// @@ -263,12 +217,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); - if (testResult.DeepListOption.IsSet && testResult.DeepList == null) - throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); - - if (testResult.ListOption.IsSet && testResult.List == null) - throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); - if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } - if (testResult.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); - } - if (testResult.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); - } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/Result.md index 0c2cc47b3993..fa828d5d34d4 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/Result.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/TestResult.md index 717978e6212d..7e9e1e7cf5d9 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/TestResult.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs index 048cf825469d..6119748b2992 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs @@ -36,16 +36,12 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) + public Result(Option code = default, Option?> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -80,32 +76,6 @@ public Result(Option code = default, Option? [JsonPropertyName("data")] public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>?> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option?> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -136,8 +106,6 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -179,8 +147,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option?> data = default; - Option>?> deepList = default; - Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -204,12 +170,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; - case "deepList": - deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); - break; - case "list": - list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -225,16 +185,10 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, deepList, list, uuid); + return new Result(code, data, uuid); } /// @@ -267,12 +221,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); - if (result.DeepListOption.IsSet && result.DeepList == null) - throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); - - if (result.ListOption.IsSet && result.List == null) - throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); - if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -284,16 +232,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } - if (result.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); - } - if (result.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); - } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs index 9f90ffe69116..e7829b5974ee 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs @@ -36,16 +36,12 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) + public TestResult(Option code = default, Option?> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -79,32 +75,6 @@ public TestResult(Option code = default, Option? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>?> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option?> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -135,8 +105,6 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -178,8 +146,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option?> data = default; - Option>?> deepList = default; - Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -205,12 +171,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; - case "deepList": - deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); - break; - case "list": - list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -226,16 +186,10 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, deepList, list, uuid); + return new TestResult(code, data, uuid); } /// @@ -265,12 +219,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); - if (testResult.DeepListOption.IsSet && testResult.DeepList == null) - throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); - - if (testResult.ListOption.IsSet && testResult.List == null) - throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); - if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -284,16 +232,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } - if (testResult.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); - } - if (testResult.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); - } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net9/Petstore/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/Result.md index 0c2cc47b3993..fa828d5d34d4 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/Result.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/TestResult.md index 717978e6212d..7e9e1e7cf5d9 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/TestResult.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs index dc6cbfbac18e..d29f16225c9a 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -34,16 +34,12 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -78,32 +74,6 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -134,8 +104,6 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -177,8 +145,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -202,12 +168,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -223,16 +183,10 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, deepList, list, uuid); + return new Result(code, data, uuid); } /// @@ -265,12 +219,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); - if (result.DeepListOption.IsSet && result.DeepList == null) - throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); - - if (result.ListOption.IsSet && result.List == null) - throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); - if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } - if (result.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); - } - if (result.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); - } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index e565a09cf3c6..508d19f2807e 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,16 +34,12 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -77,32 +73,6 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -133,8 +103,6 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -176,8 +144,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -203,12 +169,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -224,16 +184,10 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, deepList, list, uuid); + return new TestResult(code, data, uuid); } /// @@ -263,12 +217,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); - if (testResult.DeepListOption.IsSet && testResult.DeepList == null) - throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); - - if (testResult.ListOption.IsSet && testResult.List == null) - throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); - if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } - if (testResult.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); - } - if (testResult.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); - } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/Result.md b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/Result.md index 0c2cc47b3993..fa828d5d34d4 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/Result.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/TestResult.md index 717978e6212d..7e9e1e7cf5d9 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/TestResult.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs index 26595a76102a..1c1f18fd1dec 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs @@ -37,16 +37,12 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) + public Result(Option code = default, Option?> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -81,32 +77,6 @@ public Result(Option code = default, Option? [JsonPropertyName("data")] public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>?> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option?> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -137,8 +107,6 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -180,8 +148,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option?> data = default; - Option>?> deepList = default; - Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -205,12 +171,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; - case "deepList": - deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); - break; - case "list": - list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -226,16 +186,10 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, deepList, list, uuid); + return new Result(code, data, uuid); } /// @@ -268,12 +222,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); - if (result.DeepListOption.IsSet && result.DeepList == null) - throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); - - if (result.ListOption.IsSet && result.List == null) - throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); - if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -285,16 +233,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } - if (result.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); - } - if (result.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); - } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs index e9d9b8c46acf..df0deacac70e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs @@ -37,16 +37,12 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option?> data = default, Option>?> deepList = default, Option?> list = default, Option uuid = default) + public TestResult(Option code = default, Option?> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -80,32 +76,6 @@ public TestResult(Option code = default, Option? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>?> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List>? DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option?> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List? List { get { return this.ListOption; } set { this.ListOption = new(value); } } - /// /// Used to track the state of Uuid /// @@ -136,8 +106,6 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -179,8 +147,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option?> data = default; - Option>?> deepList = default; - Option?> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -206,12 +172,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); break; - case "deepList": - deepList = new Option>?>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)!); - break; - case "list": - list = new Option?>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)!); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()!); break; @@ -227,16 +187,10 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, deepList, list, uuid); + return new TestResult(code, data, uuid); } /// @@ -266,12 +220,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); - if (testResult.DeepListOption.IsSet && testResult.DeepList == null) - throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); - - if (testResult.ListOption.IsSet && testResult.List == null) - throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); - if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -285,16 +233,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } - if (testResult.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); - } - if (testResult.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); - } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/Result.md b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/Result.md index 0c2cc47b3993..fa828d5d34d4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/Result.md +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/Result.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Result code | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/TestResult.md b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/TestResult.md index 717978e6212d..7e9e1e7cf5d9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/TestResult.md +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/TestResult.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **TestResultCode** | | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**DeepList** | **List<List<string>>** | | [optional] -**List** | **List<string>** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs index 396e3f73a5c6..fb1b3546a031 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -34,16 +34,12 @@ public partial class Result : IValidatableObject /// /// Result code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public Result(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public Result(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -78,32 +74,6 @@ public Result(Option code = default, Option> [JsonPropertyName("data")] public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } - /// /// Used to track the state of Uuid /// @@ -134,8 +104,6 @@ public override string ToString() sb.Append("class Result {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -177,8 +145,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -202,12 +168,6 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -223,16 +183,10 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class Result."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class Result."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); - return new Result(code, data, deepList, list, uuid); + return new Result(code, data, uuid); } /// @@ -265,12 +219,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer if (result.DataOption.IsSet && result.Data == null) throw new ArgumentNullException(nameof(result.Data), "Property is required for class Result."); - if (result.DeepListOption.IsSet && result.DeepList == null) - throw new ArgumentNullException(nameof(result.DeepList), "Property is required for class Result."); - - if (result.ListOption.IsSet && result.List == null) - throw new ArgumentNullException(nameof(result.List), "Property is required for class Result."); - if (result.UuidOption.IsSet && result.Uuid == null) throw new ArgumentNullException(nameof(result.Uuid), "Property is required for class Result."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, Result result, JsonSerializer writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, result.Data, jsonSerializerOptions); } - if (result.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, result.DeepList, jsonSerializerOptions); - } - if (result.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, result.List, jsonSerializerOptions); - } if (result.UuidOption.IsSet) writer.WriteString("uuid", result.Uuid); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 38e2cd5659c6..cfa1aee10f8d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -34,16 +34,12 @@ public partial class TestResult : IValidatableObject /// /// code /// list of named parameters for current message - /// deepList - /// list /// Result unique identifier [JsonConstructor] - public TestResult(Option code = default, Option> data = default, Option>> deepList = default, Option> list = default, Option uuid = default) + public TestResult(Option code = default, Option> data = default, Option uuid = default) { CodeOption = code; DataOption = data; - DeepListOption = deepList; - ListOption = list; UuidOption = uuid; OnCreated(); } @@ -77,32 +73,6 @@ public TestResult(Option code = default, Option Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } - /// - /// Used to track the state of DeepList - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option>> DeepListOption { get; private set; } - - /// - /// Gets or Sets DeepList - /// - [JsonPropertyName("deepList")] - public List> DeepList { get { return this.DeepListOption; } set { this.DeepListOption = new Option>>(value); } } - - /// - /// Used to track the state of List - /// - [JsonIgnore] - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public Option> ListOption { get; private set; } - - /// - /// Gets or Sets List - /// - [JsonPropertyName("list")] - public List List { get { return this.ListOption; } set { this.ListOption = new Option>(value); } } - /// /// Used to track the state of Uuid /// @@ -133,8 +103,6 @@ public override string ToString() sb.Append("class TestResult {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -176,8 +144,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo Option code = default; Option> data = default; - Option>> deepList = default; - Option> list = default; Option uuid = default; while (utf8JsonReader.Read()) @@ -203,12 +169,6 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo case "data": data = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); break; - case "deepList": - deepList = new Option>>(JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions)); - break; - case "list": - list = new Option>(JsonSerializer.Deserialize>(ref utf8JsonReader, jsonSerializerOptions)); - break; case "uuid": uuid = new Option(utf8JsonReader.GetString()); break; @@ -224,16 +184,10 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo if (data.IsSet && data.Value == null) throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); - if (deepList.IsSet && deepList.Value == null) - throw new ArgumentNullException(nameof(deepList), "Property is not nullable for class TestResult."); - - if (list.IsSet && list.Value == null) - throw new ArgumentNullException(nameof(list), "Property is not nullable for class TestResult."); - if (uuid.IsSet && uuid.Value == null) throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); - return new TestResult(code, data, deepList, list, uuid); + return new TestResult(code, data, uuid); } /// @@ -263,12 +217,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe if (testResult.DataOption.IsSet && testResult.Data == null) throw new ArgumentNullException(nameof(testResult.Data), "Property is required for class TestResult."); - if (testResult.DeepListOption.IsSet && testResult.DeepList == null) - throw new ArgumentNullException(nameof(testResult.DeepList), "Property is required for class TestResult."); - - if (testResult.ListOption.IsSet && testResult.List == null) - throw new ArgumentNullException(nameof(testResult.List), "Property is required for class TestResult."); - if (testResult.UuidOption.IsSet && testResult.Uuid == null) throw new ArgumentNullException(nameof(testResult.Uuid), "Property is required for class TestResult."); @@ -282,16 +230,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestResult testResult, JsonSe writer.WritePropertyName("data"); JsonSerializer.Serialize(writer, testResult.Data, jsonSerializerOptions); } - if (testResult.DeepListOption.IsSet) - { - writer.WritePropertyName("deepList"); - JsonSerializer.Serialize(writer, testResult.DeepList, jsonSerializerOptions); - } - if (testResult.ListOption.IsSet) - { - writer.WritePropertyName("list"); - JsonSerializer.Serialize(writer, testResult.List, jsonSerializerOptions); - } if (testResult.UuidOption.IsSet) writer.WriteString("uuid", testResult.Uuid); } diff --git a/samples/client/petstore/csharp/httpclient/net9/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/httpclient/net9/Petstore/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/httpclient/net9/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" 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 df822e6a5810..d2de0c7ac041 100644 --- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Result.md +++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Result.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Code** | **string** | Result code | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**List** | **List<string>** | | [optional] -**DeepList** | **List<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/TestResult.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/TestResult.md index 29166bee7304..d70eaf2b64a1 100644 --- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/TestResult.md +++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/TestResult.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Code** | **TestResultCode** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**List** | **List<string>** | | [optional] -**DeepList** | **List<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/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs index 3562a2ff213c..8e00fc89a6f2 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 @@ -39,15 +39,11 @@ public partial class Result : IEquatable, IValidatableObject /// Result code. /// Result unique identifier. /// list of named parameters for current message. - /// list. - /// deepList. - public Result(string code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) + public Result(string code = default, string uuid = default, Dictionary data = default) { this.Code = code; this.Uuid = uuid; this.Data = data; - this.List = list; - this.DeepList = deepList; this.AdditionalProperties = new Dictionary(); } @@ -72,18 +68,6 @@ public Result(string code = default, string uuid = default, Dictionary Data { get; set; } - /// - /// Gets or Sets List - /// - [DataMember(Name = "list", EmitDefaultValue = false)] - public List List { get; set; } - - /// - /// Gets or Sets DeepList - /// - [DataMember(Name = "deepList", EmitDefaultValue = false)] - public List> DeepList { get; set; } - /// /// Gets or Sets additional properties /// @@ -101,8 +85,6 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -158,14 +140,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } - if (this.List != null) - { - hashCode = (hashCode * 59) + this.List.GetHashCode(); - } - if (this.DeepList != null) - { - hashCode = (hashCode * 59) + this.DeepList.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/TestResult.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 340333818288..7023e1e52574 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 @@ -45,15 +45,11 @@ public partial class TestResult : IEquatable, IValidatableObject /// code. /// Result unique identifier. /// list of named parameters for current message. - /// list. - /// deepList. - public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) + public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default) { this.Code = code; this.Uuid = uuid; this.Data = data; - this.List = list; - this.DeepList = deepList; this.AdditionalProperties = new Dictionary(); } @@ -71,18 +67,6 @@ public TestResult(TestResultCode? code = default, string uuid = default, Diction [DataMember(Name = "data", EmitDefaultValue = false)] public Dictionary Data { get; set; } - /// - /// Gets or Sets List - /// - [DataMember(Name = "list", EmitDefaultValue = false)] - public List List { get; set; } - - /// - /// Gets or Sets DeepList - /// - [DataMember(Name = "deepList", EmitDefaultValue = false)] - public List> DeepList { get; set; } - /// /// Gets or Sets additional properties /// @@ -100,8 +84,6 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -154,14 +136,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } - if (this.List != null) - { - hashCode = (hashCode * 59) + this.List.GetHashCode(); - } - if (this.DeepList != null) - { - hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); - } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Result.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Result.md index df822e6a5810..d2de0c7ac041 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Result.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Result.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Code** | **string** | Result code | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**List** | **List<string>** | | [optional] -**DeepList** | **List<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/standard2.0/Petstore/docs/TestResult.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/TestResult.md index 29166bee7304..d70eaf2b64a1 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/TestResult.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/TestResult.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Code** | **TestResultCode** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**List** | **List<string>** | | [optional] -**DeepList** | **List<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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs index 3562a2ff213c..8e00fc89a6f2 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -39,15 +39,11 @@ public partial class Result : IEquatable, IValidatableObject /// Result code. /// Result unique identifier. /// list of named parameters for current message. - /// list. - /// deepList. - public Result(string code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) + public Result(string code = default, string uuid = default, Dictionary data = default) { this.Code = code; this.Uuid = uuid; this.Data = data; - this.List = list; - this.DeepList = deepList; this.AdditionalProperties = new Dictionary(); } @@ -72,18 +68,6 @@ public Result(string code = default, string uuid = default, Dictionary Data { get; set; } - /// - /// Gets or Sets List - /// - [DataMember(Name = "list", EmitDefaultValue = false)] - public List List { get; set; } - - /// - /// Gets or Sets DeepList - /// - [DataMember(Name = "deepList", EmitDefaultValue = false)] - public List> DeepList { get; set; } - /// /// Gets or Sets additional properties /// @@ -101,8 +85,6 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -158,14 +140,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } - if (this.List != null) - { - hashCode = (hashCode * 59) + this.List.GetHashCode(); - } - if (this.DeepList != null) - { - hashCode = (hashCode * 59) + this.DeepList.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/TestResult.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 340333818288..7023e1e52574 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -45,15 +45,11 @@ public partial class TestResult : IEquatable, IValidatableObject /// code. /// Result unique identifier. /// list of named parameters for current message. - /// list. - /// deepList. - public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) + public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default) { this.Code = code; this.Uuid = uuid; this.Data = data; - this.List = list; - this.DeepList = deepList; this.AdditionalProperties = new Dictionary(); } @@ -71,18 +67,6 @@ public TestResult(TestResultCode? code = default, string uuid = default, Diction [DataMember(Name = "data", EmitDefaultValue = false)] public Dictionary Data { get; set; } - /// - /// Gets or Sets List - /// - [DataMember(Name = "list", EmitDefaultValue = false)] - public List List { get; set; } - - /// - /// Gets or Sets DeepList - /// - [DataMember(Name = "deepList", EmitDefaultValue = false)] - public List> DeepList { get; set; } - /// /// Gets or Sets additional properties /// @@ -100,8 +84,6 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -154,14 +136,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } - if (this.List != null) - { - hashCode = (hashCode * 59) + this.List.GetHashCode(); - } - if (this.DeepList != null) - { - hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); - } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net8/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/restsharp/net8/Petstore/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/restsharp/net8/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" 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 df822e6a5810..d2de0c7ac041 100644 --- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Result.md +++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Result.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Code** | **string** | Result code | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**List** | **List<string>** | | [optional] -**DeepList** | **List<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/TestResult.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/TestResult.md index 29166bee7304..d70eaf2b64a1 100644 --- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/TestResult.md +++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/TestResult.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Code** | **TestResultCode** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**List** | **List<string>** | | [optional] -**DeepList** | **List<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/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs index 27c9c4d9e5d4..0e98c9e6adda 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 @@ -38,15 +38,11 @@ public partial class Result : IEquatable, IValidatableObject /// Result code. /// Result unique identifier. /// list of named parameters for current message. - /// list. - /// deepList. - public Result(string code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) + public Result(string code = default, string uuid = default, Dictionary data = default) { this.Code = code; this.Uuid = uuid; this.Data = data; - this.List = list; - this.DeepList = deepList; } /// @@ -70,18 +66,6 @@ public Result(string code = default, string uuid = default, Dictionary Data { get; set; } - /// - /// Gets or Sets List - /// - [DataMember(Name = "list", EmitDefaultValue = false)] - public List List { get; set; } - - /// - /// Gets or Sets DeepList - /// - [DataMember(Name = "deepList", EmitDefaultValue = false)] - public List> DeepList { get; set; } - /// /// Returns the string presentation of the object /// @@ -93,8 +77,6 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -149,14 +131,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } - if (this.List != null) - { - hashCode = (hashCode * 59) + this.List.GetHashCode(); - } - if (this.DeepList != null) - { - hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); - } return hashCode; } } 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 5fc062af6bae..59e120b99b4e 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 @@ -44,15 +44,11 @@ public partial class TestResult : IEquatable, IValidatableObject /// code. /// Result unique identifier. /// list of named parameters for current message. - /// list. - /// deepList. - public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) + public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default) { this.Code = code; this.Uuid = uuid; this.Data = data; - this.List = list; - this.DeepList = deepList; } /// @@ -69,18 +65,6 @@ public TestResult(TestResultCode? code = default, string uuid = default, Diction [DataMember(Name = "data", EmitDefaultValue = false)] public Dictionary Data { get; set; } - /// - /// Gets or Sets List - /// - [DataMember(Name = "list", EmitDefaultValue = false)] - public List List { get; set; } - - /// - /// Gets or Sets DeepList - /// - [DataMember(Name = "deepList", EmitDefaultValue = false)] - public List> DeepList { get; set; } - /// /// Returns the string presentation of the object /// @@ -92,8 +76,6 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -145,14 +127,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } - if (this.List != null) - { - hashCode = (hashCode * 59) + this.List.GetHashCode(); - } - if (this.DeepList != null) - { - hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); - } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/api/openapi.yaml b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/api/openapi.yaml +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Result.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Result.md index df822e6a5810..d2de0c7ac041 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Result.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Result.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Code** | **string** | Result code | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**List** | **List<string>** | | [optional] -**DeepList** | **List<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/standard2.0/ConditionalSerialization/docs/TestResult.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/TestResult.md index 29166bee7304..d70eaf2b64a1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/TestResult.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/TestResult.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Code** | **TestResultCode** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**List** | **List<string>** | | [optional] -**DeepList** | **List<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/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Result.cs index 25d612115119..1fd86b15b269 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Result.cs @@ -38,9 +38,7 @@ public partial class Result : IEquatable, IValidatableObject /// Result code. /// Result unique identifier. /// list of named parameters for current message. - /// list. - /// deepList. - public Result(string code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) + public Result(string code = default, string uuid = default, Dictionary data = default) { this._Code = code; if (this.Code != null) @@ -57,16 +55,6 @@ public Result(string code = default, string uuid = default, Dictionary(); } @@ -146,54 +134,6 @@ public bool ShouldSerializeData() return _flagData; } /// - /// Gets or Sets List - /// - [DataMember(Name = "list", EmitDefaultValue = false)] - public List List - { - get{ return _List;} - set - { - _List = value; - _flagList = true; - } - } - private List _List; - private bool _flagList; - - /// - /// Returns false as List should not be serialized given that it's read-only. - /// - /// false (boolean) - public bool ShouldSerializeList() - { - return _flagList; - } - /// - /// Gets or Sets DeepList - /// - [DataMember(Name = "deepList", EmitDefaultValue = false)] - public List> DeepList - { - get{ return _DeepList;} - set - { - _DeepList = value; - _flagDeepList = true; - } - } - private List> _DeepList; - private bool _flagDeepList; - - /// - /// Returns false as DeepList should not be serialized given that it's read-only. - /// - /// false (boolean) - public bool ShouldSerializeDeepList() - { - return _flagDeepList; - } - /// /// Gets or Sets additional properties /// [JsonExtensionData] @@ -210,8 +150,6 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -267,14 +205,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } - if (this.List != null) - { - hashCode = (hashCode * 59) + this.List.GetHashCode(); - } - if (this.DeepList != null) - { - hashCode = (hashCode * 59) + this.DeepList.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/TestResult.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestResult.cs index 99b1391df31b..a91f85d19849 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestResult.cs @@ -64,9 +64,7 @@ public bool ShouldSerializeCode() /// code. /// Result unique identifier. /// list of named parameters for current message. - /// list. - /// deepList. - public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) + public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default) { this._Code = code; if (this.Code != null) @@ -83,16 +81,6 @@ public TestResult(TestResultCode? code = default, string uuid = default, Diction { this._flagData = true; } - this._List = list; - if (this.List != null) - { - this._flagList = true; - } - this._DeepList = deepList; - if (this.DeepList != null) - { - this._flagDeepList = true; - } this.AdditionalProperties = new Dictionary(); } @@ -147,54 +135,6 @@ public bool ShouldSerializeData() return _flagData; } /// - /// Gets or Sets List - /// - [DataMember(Name = "list", EmitDefaultValue = false)] - public List List - { - get{ return _List;} - set - { - _List = value; - _flagList = true; - } - } - private List _List; - private bool _flagList; - - /// - /// Returns false as List should not be serialized given that it's read-only. - /// - /// false (boolean) - public bool ShouldSerializeList() - { - return _flagList; - } - /// - /// Gets or Sets DeepList - /// - [DataMember(Name = "deepList", EmitDefaultValue = false)] - public List> DeepList - { - get{ return _DeepList;} - set - { - _DeepList = value; - _flagDeepList = true; - } - } - private List> _DeepList; - private bool _flagDeepList; - - /// - /// Returns false as DeepList should not be serialized given that it's read-only. - /// - /// false (boolean) - public bool ShouldSerializeDeepList() - { - return _flagDeepList; - } - /// /// Gets or Sets additional properties /// [JsonExtensionData] @@ -211,8 +151,6 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -265,14 +203,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } - if (this.List != null) - { - hashCode = (hashCode * 59) + this.List.GetHashCode(); - } - if (this.DeepList != null) - { - hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); - } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" 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 df822e6a5810..d2de0c7ac041 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Result.md +++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Result.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Code** | **string** | Result code | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**List** | **List<string>** | | [optional] -**DeepList** | **List<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/TestResult.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/TestResult.md index 29166bee7304..d70eaf2b64a1 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/TestResult.md +++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/TestResult.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Code** | **TestResultCode** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**List** | **List<string>** | | [optional] -**DeepList** | **List<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/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs index e7648fa54796..5b0350f617d1 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 @@ -36,15 +36,11 @@ public partial class Result : IEquatable /// Result code. /// Result unique identifier. /// list of named parameters for current message. - /// list. - /// deepList. - public Result(string code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) + public Result(string code = default, string uuid = default, Dictionary data = default) { this.Code = code; this.Uuid = uuid; this.Data = data; - this.List = list; - this.DeepList = deepList; } /// @@ -68,18 +64,6 @@ public Result(string code = default, string uuid = default, Dictionary Data { get; set; } - /// - /// Gets or Sets List - /// - [DataMember(Name = "list", EmitDefaultValue = false)] - public List List { get; set; } - - /// - /// Gets or Sets DeepList - /// - [DataMember(Name = "deepList", EmitDefaultValue = false)] - public List> DeepList { get; set; } - /// /// Returns the string presentation of the object /// @@ -91,8 +75,6 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -143,18 +125,6 @@ public bool Equals(Result input) this.Data != null && input.Data != null && this.Data.SequenceEqual(input.Data) - ) && - ( - this.List == input.List || - this.List != null && - input.List != null && - this.List.SequenceEqual(input.List) - ) && - ( - this.DeepList == input.DeepList || - this.DeepList != null && - input.DeepList != null && - this.DeepList.SequenceEqual(input.DeepList) ); } @@ -179,14 +149,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } - if (this.List != null) - { - hashCode = (hashCode * 59) + this.List.GetHashCode(); - } - if (this.DeepList != null) - { - hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); - } return hashCode; } } 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 a65a855385c8..66835279015a 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 @@ -42,15 +42,11 @@ public partial class TestResult : IEquatable /// code. /// Result unique identifier. /// list of named parameters for current message. - /// list. - /// deepList. - public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) + public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default) { this.Code = code; this.Uuid = uuid; this.Data = data; - this.List = list; - this.DeepList = deepList; } /// @@ -67,18 +63,6 @@ public TestResult(TestResultCode? code = default, string uuid = default, Diction [DataMember(Name = "data", EmitDefaultValue = false)] public Dictionary Data { get; set; } - /// - /// Gets or Sets List - /// - [DataMember(Name = "list", EmitDefaultValue = false)] - public List List { get; set; } - - /// - /// Gets or Sets DeepList - /// - [DataMember(Name = "deepList", EmitDefaultValue = false)] - public List> DeepList { get; set; } - /// /// Returns the string presentation of the object /// @@ -90,8 +74,6 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -141,18 +123,6 @@ public bool Equals(TestResult input) this.Data != null && input.Data != null && this.Data.SequenceEqual(input.Data) - ) && - ( - this.List == input.List || - this.List != null && - input.List != null && - this.List.SequenceEqual(input.List) - ) && - ( - this.DeepList == input.DeepList || - this.DeepList != null && - input.DeepList != null && - this.DeepList.SequenceEqual(input.DeepList) ); } @@ -174,14 +144,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } - if (this.List != null) - { - hashCode = (hashCode * 59) + this.List.GetHashCode(); - } - if (this.DeepList != null) - { - hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); - } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/api/openapi.yaml b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/api/openapi.yaml index ee54cebea8ac..5966b9f8a330 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/api/openapi.yaml @@ -2867,17 +2867,17 @@ components: type: string description: list of named parameters for current message type: object - list: - items: - type: string - type: array - deepList: - items: - items: - type: string - type: array - type: array type: object + ListAlias: + items: + type: string + type: array + DeepListAlias: + items: + items: + type: string + type: array + type: array TestResult: allOf: - $ref: "#/components/schemas/Result" diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Result.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Result.md index df822e6a5810..d2de0c7ac041 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Result.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Result.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Code** | **string** | Result code | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**List** | **List<string>** | | [optional] -**DeepList** | **List<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/standard2.0/Petstore/docs/TestResult.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/TestResult.md index 29166bee7304..d70eaf2b64a1 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/TestResult.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/TestResult.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Code** | **TestResultCode** | | [optional] **Uuid** | **string** | Result unique identifier | [optional] **Data** | **Dictionary<string, string>** | list of named parameters for current message | [optional] -**List** | **List<string>** | | [optional] -**DeepList** | **List<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/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs index e7648fa54796..5b0350f617d1 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -36,15 +36,11 @@ public partial class Result : IEquatable /// Result code. /// Result unique identifier. /// list of named parameters for current message. - /// list. - /// deepList. - public Result(string code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) + public Result(string code = default, string uuid = default, Dictionary data = default) { this.Code = code; this.Uuid = uuid; this.Data = data; - this.List = list; - this.DeepList = deepList; } /// @@ -68,18 +64,6 @@ public Result(string code = default, string uuid = default, Dictionary Data { get; set; } - /// - /// Gets or Sets List - /// - [DataMember(Name = "list", EmitDefaultValue = false)] - public List List { get; set; } - - /// - /// Gets or Sets DeepList - /// - [DataMember(Name = "deepList", EmitDefaultValue = false)] - public List> DeepList { get; set; } - /// /// Returns the string presentation of the object /// @@ -91,8 +75,6 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -143,18 +125,6 @@ public bool Equals(Result input) this.Data != null && input.Data != null && this.Data.SequenceEqual(input.Data) - ) && - ( - this.List == input.List || - this.List != null && - input.List != null && - this.List.SequenceEqual(input.List) - ) && - ( - this.DeepList == input.DeepList || - this.DeepList != null && - input.DeepList != null && - this.DeepList.SequenceEqual(input.DeepList) ); } @@ -179,14 +149,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } - if (this.List != null) - { - hashCode = (hashCode * 59) + this.List.GetHashCode(); - } - if (this.DeepList != null) - { - hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); - } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index a65a855385c8..66835279015a 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -42,15 +42,11 @@ public partial class TestResult : IEquatable /// code. /// Result unique identifier. /// list of named parameters for current message. - /// list. - /// deepList. - public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default, List list = default, List> deepList = default) + public TestResult(TestResultCode? code = default, string uuid = default, Dictionary data = default) { this.Code = code; this.Uuid = uuid; this.Data = data; - this.List = list; - this.DeepList = deepList; } /// @@ -67,18 +63,6 @@ public TestResult(TestResultCode? code = default, string uuid = default, Diction [DataMember(Name = "data", EmitDefaultValue = false)] public Dictionary Data { get; set; } - /// - /// Gets or Sets List - /// - [DataMember(Name = "list", EmitDefaultValue = false)] - public List List { get; set; } - - /// - /// Gets or Sets DeepList - /// - [DataMember(Name = "deepList", EmitDefaultValue = false)] - public List> DeepList { get; set; } - /// /// Returns the string presentation of the object /// @@ -90,8 +74,6 @@ public override string ToString() sb.Append(" Code: ").Append(Code).Append("\n"); sb.Append(" Uuid: ").Append(Uuid).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" List: ").Append(List).Append("\n"); - sb.Append(" DeepList: ").Append(DeepList).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -141,18 +123,6 @@ public bool Equals(TestResult input) this.Data != null && input.Data != null && this.Data.SequenceEqual(input.Data) - ) && - ( - this.List == input.List || - this.List != null && - input.List != null && - this.List.SequenceEqual(input.List) - ) && - ( - this.DeepList == input.DeepList || - this.DeepList != null && - input.DeepList != null && - this.DeepList.SequenceEqual(input.DeepList) ); } @@ -174,14 +144,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } - if (this.List != null) - { - hashCode = (hashCode * 59) + this.List.GetHashCode(); - } - if (this.DeepList != null) - { - hashCode = (hashCode * 59) + this.DeepList.GetHashCode(); - } return hashCode; } }