From c89c8898807857efe3b0b92403c53e449eda2834 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 1c81b4bbcdd9..24be366d5d0c 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 @@ -1624,7 +1624,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 611f10ce7af8aadedc350d991fad3a675974d763 Mon Sep 17 00:00:00 2001 From: Mattias-Sehlstedt <60173714+Mattias-Sehlstedt@users.noreply.github.com> Date: Fri, 3 Oct 2025 20:08:14 +0200 Subject: [PATCH 2/2] duplicate petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml and make slight adjustments to include more complex inline array scenarios for NullReferenceTypes --- bin/configs/csharp-generichost-net8-nrt.yaml | 2 +- ...odels-for-testing-with-http-signature.yaml | 10 - ...for-testing-with-null-reference-types.yaml | 2960 +++++++++++++++++ .../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 +- .../Model/ResultTests.cs | 18 + .../Model/TestResultTests.cs | 18 + .../src/Org.OpenAPITools/README.md | 2 +- .../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 +- 96 files changed, 3058 insertions(+), 2260 deletions(-) create mode 100644 modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-null-reference-types.yaml diff --git a/bin/configs/csharp-generichost-net8-nrt.yaml b/bin/configs/csharp-generichost-net8-nrt.yaml index 2bae5182d770..159eba690b01 100644 --- a/bin/configs/csharp-generichost-net8-nrt.yaml +++ b/bin/configs/csharp-generichost-net8-nrt.yaml @@ -1,7 +1,7 @@ # for csharp generichost generatorName: csharp outputDir: samples/client/petstore/csharp/generichost/net8/NullReferenceTypes -inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml +inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-null-reference-types.yaml templateDir: modules/openapi-generator/src/main/resources/csharp additionalProperties: packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' 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..6b565788598b 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,6 @@ 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/modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-null-reference-types.yaml b/modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-null-reference-types.yaml new file mode 100644 index 000000000000..a6495372e452 --- /dev/null +++ b/modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-null-reference-types.yaml @@ -0,0 +1,2960 @@ +openapi: 3.0.0 +info: + description: >- + This spec is mainly for testing Petstore server and contains fake endpoints, + models. Please do not use this for any other purpose. Special characters: " + \ + version: 1.0.0 + title: OpenAPI Petstore + license: + name: Apache-2.0 + url: 'https://www.apache.org/licenses/LICENSE-2.0.html' +tags: + - name: pet + description: Everything about your Pets + - name: store + description: Access to Petstore orders + - name: user + description: Operations about user +paths: + /roles/report: + get: + responses: + '200': + description: returns report + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/RolesReport' + /hello: + get: + summary: Hello + description: Hello + operationId: Hello + responses: + '200': + description: UUIDs + content: + application/json: + schema: + type: array + items: + type: string + format: uuid + /foo: + get: + responses: + default: + description: response + content: + application/json: + schema: + type: object + properties: + string: + $ref: '#/components/schemas/Foo' + /pet: + servers: + - url: 'http://petstore.swagger.io/v2' + - url: 'http://path-server-test.petstore.local/v2' + post: + tags: + - pet + summary: Add a new pet to the store + description: '' + operationId: addPet + responses: + '405': + description: Invalid input + security: + - http_signature_test: [] + - petstore_auth: + - 'write:pets' + - 'read:pets' + requestBody: + $ref: '#/components/requestBodies/Pet' + put: + tags: + - pet + summary: Update an existing pet + description: '' + operationId: updatePet + responses: + '400': + description: Invalid ID supplied + '404': + description: Pet not found + '405': + description: Validation exception + security: + - http_signature_test: [] + - petstore_auth: + - 'write:pets' + - 'read:pets' + requestBody: + $ref: '#/components/requestBodies/Pet' + /pet/findByStatus: + get: + tags: + - pet + summary: Finds Pets by status + description: Multiple status values can be provided with comma separated strings + operationId: findPetsByStatus + parameters: + - name: status + in: query + description: Status values that need to be considered for filter + required: true + style: form + explode: false + deprecated: true + schema: + type: array + items: + type: string + enum: + - available + - pending + - sold + default: available + responses: + '2XX': + description: Anything within 200-299 + '200': + description: successful operation + content: + application/xml: + schema: + type: array + items: + $ref: '#/components/schemas/Pet' + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Pet' + '400': + description: Invalid status value + '4XX': + description: Anything within 400-499 + security: + - http_signature_test: [] + - petstore_auth: + - 'write:pets' + - 'read:pets' + /pet/findByTags: + get: + tags: + - pet + summary: Finds Pets by tags + description: >- + Multiple tags can be provided with comma separated strings. Use tag1, + tag2, tag3 for testing. + operationId: findPetsByTags + parameters: + - name: tags + in: query + description: Tags to filter by + required: true + style: form + explode: false + schema: + type: array + items: + type: string + responses: + '200': + description: successful operation + content: + application/xml: + schema: + type: array + items: + $ref: '#/components/schemas/Pet' + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Pet' + '400': + description: Invalid tag value + security: + - http_signature_test: [] + - petstore_auth: + - 'write:pets' + - 'read:pets' + deprecated: true + '/pet/{petId}': + get: + tags: + - pet + summary: Find pet by ID + description: Returns a single pet + operationId: getPetById + parameters: + - name: petId + in: path + description: ID of pet to return + required: true + schema: + type: integer + format: int64 + responses: + '200': + description: successful operation + content: + application/xml: + schema: + $ref: '#/components/schemas/Pet' + application/json: + schema: + $ref: '#/components/schemas/Pet' + '400': + description: Invalid ID supplied + '404': + description: Pet not found + security: + - api_key: [] + - api_key_query: [] + post: + tags: + - pet + summary: Updates a pet in the store with form data + description: '' + operationId: updatePetWithForm + parameters: + - name: petId + in: path + description: ID of pet that needs to be updated + required: true + schema: + type: integer + format: int64 + responses: + '405': + description: Invalid input + security: + - petstore_auth: + - 'write:pets' + - 'read:pets' + requestBody: + content: + application/x-www-form-urlencoded: + schema: + type: object + properties: + name: + description: Updated name of the pet + type: string + status: + description: Updated status of the pet + type: string + delete: + tags: + - pet + summary: Deletes a pet + description: '' + operationId: deletePet + parameters: + - name: api_key + in: header + required: false + schema: + type: string + - name: petId + in: path + description: Pet id to delete + required: true + schema: + type: integer + format: int64 + responses: + '400': + description: Invalid pet value + security: + - petstore_auth: + - 'write:pets' + - 'read:pets' + '/pet/{petId}/uploadImage': + post: + tags: + - pet + summary: uploads an image + description: '' + operationId: uploadFile + parameters: + - name: petId + in: path + description: ID of pet to update + required: true + schema: + type: integer + format: int64 + responses: + '200': + description: successful operation + content: + application/json: + schema: + $ref: '#/components/schemas/ApiResponse' + security: + - petstore_auth: + - 'write:pets' + - 'read:pets' + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + additionalMetadata: + description: Additional data to pass to server + type: string + file: + description: file to upload + type: string + format: binary + /store/inventory: + get: + tags: + - store + summary: Returns pet inventories by status + description: Returns a map of status codes to quantities + operationId: getInventory + responses: + '200': + description: successful operation + content: + application/json: + schema: + type: object + additionalProperties: + type: integer + format: int32 + security: + - api_key: [] + /store/order: + post: + tags: + - store + summary: Place an order for a pet + description: '' + operationId: placeOrder + responses: + '200': + description: successful operation + content: + application/xml: + schema: + $ref: '#/components/schemas/Order' + application/json: + schema: + $ref: '#/components/schemas/Order' + '400': + description: Invalid Order + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Order' + description: order placed for purchasing the pet + required: true + '/store/order/{order_id}': + get: + tags: + - store + summary: Find purchase order by ID + description: >- + For valid response try integer IDs with value <= 5 or > 10. Other values + will generate exceptions + operationId: getOrderById + parameters: + - name: order_id + in: path + description: ID of pet that needs to be fetched + required: true + schema: + type: integer + format: int64 + minimum: 1 + maximum: 5 + responses: + '200': + description: successful operation + content: + application/xml: + schema: + $ref: '#/components/schemas/Order' + application/json: + schema: + $ref: '#/components/schemas/Order' + '400': + description: Invalid ID supplied + '404': + description: Order not found + delete: + tags: + - store + summary: Delete purchase order by ID + description: >- + For valid response try integer IDs with value < 1000. Anything above + 1000 or nonintegers will generate API errors + operationId: deleteOrder + parameters: + - name: order_id + in: path + description: ID of the order that needs to be deleted + required: true + schema: + type: string + responses: + '400': + description: Invalid ID supplied + '404': + description: Order not found + /user: + post: + tags: + - user + summary: Create user + description: This can only be done by the logged in user. + operationId: createUser + responses: + default: + description: successful operation + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/User' + description: Created user object + required: true + /user/createWithArray: + post: + tags: + - user + summary: Creates list of users with given input array + description: '' + operationId: createUsersWithArrayInput + responses: + default: + description: successful operation + requestBody: + $ref: '#/components/requestBodies/UserArray' + /user/createWithList: + post: + tags: + - user + summary: Creates list of users with given input array + description: '' + operationId: createUsersWithListInput + responses: + default: + description: successful operation + requestBody: + $ref: '#/components/requestBodies/UserArray' + /user/login: + get: + tags: + - user + summary: Logs user into the system + description: '' + operationId: loginUser + parameters: + - name: username + in: query + description: The user name for login + required: true + schema: + type: string + - name: password + in: query + description: The password for login in clear text + required: true + schema: + type: string + responses: + '200': + description: successful operation + headers: + Set-Cookie: + description: >- + Cookie authentication key for use with the `api_key` + apiKey authentication. + schema: + type: string + example: AUTH_KEY=abcde12345; Path=/; HttpOnly + X-Rate-Limit: + description: calls per hour allowed by the user + schema: + type: integer + format: int32 + X-Expires-After: + description: date in UTC when token expires + schema: + type: string + format: date-time + content: + application/xml: + schema: + type: string + application/json: + schema: + type: string + '400': + description: Invalid username/password supplied + /user/logout: + get: + tags: + - user + summary: Logs out current logged in user session + description: '' + operationId: logoutUser + responses: + default: + description: successful operation + '/user/{username}': + get: + tags: + - user + summary: Get user by user name + description: '' + operationId: getUserByName + parameters: + - name: username + in: path + description: The name that needs to be fetched. Use user1 for testing. + required: true + schema: + type: string + responses: + '200': + description: successful operation + content: + application/xml: + schema: + $ref: '#/components/schemas/User' + application/json: + schema: + $ref: '#/components/schemas/User' + '400': + description: Invalid username supplied + '404': + description: User not found + '598': + description: Not a real HTTP status code + '599': + description: Not a real HTTP status code with a return object + content: + application/json: + schema: + $ref: '#/components/schemas/User' + put: + tags: + - user + summary: Updated user + description: This can only be done by the logged in user. + operationId: updateUser + parameters: + - name: username + in: path + description: name that need to be deleted + required: true + schema: + type: string + responses: + '400': + description: Invalid user supplied + '404': + description: User not found + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/User' + description: Updated user object + required: true + delete: + tags: + - user + summary: Delete user + description: This can only be done by the logged in user. + operationId: deleteUser + parameters: + - name: username + in: path + description: The name that needs to be deleted + required: true + schema: + type: string + responses: + '400': + description: Invalid username supplied + '404': + description: User not found + /fake_classname_test: + patch: + tags: + - 'fake_classname_tags 123#$%^' + summary: To test class name in snake case + description: To test class name in snake case + operationId: testClassname + responses: + '200': + description: successful operation + content: + application/json: + schema: + $ref: '#/components/schemas/Client' + security: + - api_key_query: [] + requestBody: + $ref: '#/components/requestBodies/Client' + /redirectOrDefault: + get: + operationId: redirectOrDefault + responses: + '301': + description: redirect + # response that does not provide any content + default: + description: default + content: + application/json: + schema: + $ref: '#/components/schemas/Bar' + /fake: + patch: + tags: + - fake + summary: To test "client" model + description: To test "client" model + operationId: testClientModel + responses: + '200': + description: successful operation + content: + application/json: + schema: + $ref: '#/components/schemas/Client' + requestBody: + $ref: '#/components/requestBodies/Client' + get: + tags: + - fake + summary: To test enum parameters + description: To test enum parameters + operationId: testEnumParameters + parameters: + - name: enum_header_string_array + in: header + description: Header parameter enum test (string array) + schema: + type: array + items: + type: string + default: $ + enum: + - '>' + - $ + - name: enum_header_string + in: header + description: Header parameter enum test (string) + schema: + type: string + enum: + - _abc + - '-efg' + - (xyz) + default: '-efg' + - name: enum_query_string_array + in: query + description: Query parameter enum test (string array) + schema: + type: array + items: + type: string + default: $ + enum: + - '>' + - $ + - name: enum_query_string + in: query + description: Query parameter enum test (string) + schema: + type: string + enum: + - _abc + - '-efg' + - (xyz) + default: '-efg' + - name: enum_query_integer + in: query + description: Query parameter enum test (double) + schema: + type: integer + format: int32 + enum: + - 1 + - -2 + - name: enum_query_double + in: query + description: Query parameter enum test (double) + schema: + type: number + format: double + enum: + - 1.1 + - -1.2 + responses: + '400': + description: Invalid request + '404': + description: Not found + requestBody: + content: + application/x-www-form-urlencoded: + schema: + type: object + properties: + enum_form_string_array: + description: Form parameter enum test (string array) + type: array + items: + type: string + default: $ + enum: + - '>' + - $ + enum_form_string: + description: Form parameter enum test (string) + type: string + enum: + - _abc + - '-efg' + - (xyz) + default: '-efg' + post: + tags: + - fake + summary: | + Fake endpoint for testing various parameters + 假端點 + 偽のエンドポイント + 가짜 엔드 포인트 + description: | + Fake endpoint for testing various parameters + 假端點 + 偽のエンドポイント + 가짜 엔드 포인트 + operationId: testEndpointParameters + responses: + '400': + description: Invalid username supplied + '404': + description: User not found + security: + - http_basic_test: [] + requestBody: + content: + application/x-www-form-urlencoded: + schema: + type: object + properties: + integer: + description: None + type: integer + minimum: 10 + maximum: 100 + int32: + description: None + type: integer + format: int32 + minimum: 20 + maximum: 200 + int64: + description: None + type: integer + format: int64 + number: + description: None + type: number + minimum: 32.1 + maximum: 543.2 + float: + description: None + type: number + format: float + maximum: 987.6 + double: + description: None + type: number + format: double + minimum: 67.8 + maximum: 123.4 + string: + description: None + type: string + pattern: '/[a-z]/i' + pattern_without_delimiter: + description: None + type: string + pattern: '^[A-Z].*' + byte: + description: None + type: string + format: byte + binary: + description: None + type: string + format: binary + date: + description: None + type: string + format: date + dateTime: + description: None + type: string + format: date-time + default: '2010-02-01T10:20:10.11111+01:00' + example: '2020-02-02T20:20:20.22222Z' + password: + description: None + type: string + format: password + minLength: 10 + maxLength: 64 + callback: + description: None + type: string + required: + - number + - double + - pattern_without_delimiter + - byte + delete: + tags: + - fake + security: + - bearer_test: [] + summary: Fake endpoint to test group parameters (optional) + description: Fake endpoint to test group parameters (optional) + operationId: testGroupParameters + x-group-parameters: true + parameters: + - name: required_string_group + in: query + description: Required String in group parameters + required: true + schema: + type: integer + - name: required_boolean_group + in: header + description: Required Boolean in group parameters + required: true + schema: + type: boolean + - name: required_int64_group + in: query + description: Required Integer in group parameters + required: true + schema: + type: integer + format: int64 + - name: string_group + in: query + description: String in group parameters + schema: + type: integer + - name: boolean_group + in: header + description: Boolean in group parameters + schema: + type: boolean + - name: int64_group + in: query + description: Integer in group parameters + schema: + type: integer + format: int64 + responses: + '400': + description: Something wrong + /fake/outer/number: + post: + tags: + - fake + description: Test serialization of outer number types + operationId: fakeOuterNumberSerialize + responses: + '200': + description: Output number + content: + '*/*': + schema: + $ref: '#/components/schemas/OuterNumber' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OuterNumber' + description: Input number as post body + /fake/outer/string: + post: + tags: + - fake + description: Test serialization of outer string types + operationId: fakeOuterStringSerialize + parameters: + - name: required_string_uuid + in: query + description: Required UUID String + required: true + schema: + type: string + format: uuid + responses: + '200': + description: Output string + content: + '*/*': + schema: + $ref: '#/components/schemas/OuterString' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OuterString' + description: Input string as post body + /fake/outer/boolean: + post: + tags: + - fake + description: Test serialization of outer boolean types + operationId: fakeOuterBooleanSerialize + responses: + '200': + description: Output boolean + content: + '*/*': + schema: + $ref: '#/components/schemas/OuterBoolean' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OuterBoolean' + description: Input boolean as post body + /fake/outer/composite: + post: + tags: + - fake + description: Test serialization of object with outer number type + operationId: fakeOuterCompositeSerialize + responses: + '200': + description: Output composite + content: + '*/*': + schema: + $ref: '#/components/schemas/OuterComposite' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OuterComposite' + description: Input composite as post body + /fake/jsonFormData: + get: + tags: + - fake + summary: test json serialization of form data + description: '' + operationId: testJsonFormData + responses: + '200': + description: successful operation + requestBody: + content: + application/x-www-form-urlencoded: + schema: + type: object + properties: + param: + description: field1 + type: string + param2: + description: field2 + type: string + required: + - param + - param2 + /fake/additionalProperties-reference: + post: + tags: + - fake + summary: test referenced additionalProperties + description: '' + operationId: testAdditionalPropertiesReference + responses: + '200': + description: successful operation + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FreeFormObject' + description: request body + required: true + /fake/stringMap-reference: + post: + tags: + - fake + summary: test referenced string map + description: '' + operationId: testStringMapReference + responses: + '200': + description: successful operation + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MapOfString' + description: request body + required: true + /fake/inline-additionalProperties: + post: + tags: + - fake + summary: test inline additionalProperties + description: '' + operationId: testInlineAdditionalProperties + responses: + '200': + description: successful operation + requestBody: + content: + application/json: + schema: + type: object + additionalProperties: + type: string + description: request body + required: true + /fake/inline-freeform-additionalProperties: + post: + tags: + - fake + summary: test inline free-form additionalProperties + description: '' + operationId: testInlineFreeformAdditionalProperties + responses: + '200': + description: successful operation + requestBody: + content: + application/json: + schema: + type: object + properties: + someProperty: + type: string + additionalProperties: true + description: request body + required: true + /fake/body-with-query-params: + put: + tags: + - fake + operationId: testBodyWithQueryParams + parameters: + - name: query + in: query + required: true + schema: + type: string + responses: + '200': + description: Success + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/User' + required: true + /another-fake/dummy: + patch: + tags: + - $another-fake? + summary: To test special tags + description: To test special tags and operation ID starting with number + operationId: '123_test_@#$%_special_tags' + responses: + '200': + description: successful operation + content: + application/json: + schema: + $ref: '#/components/schemas/Client' + requestBody: + $ref: '#/components/requestBodies/Client' + /fake/body-with-file-schema: + put: + tags: + - fake + description: >- + For this test, the body for this request much reference a schema named + `File`. + operationId: testBodyWithFileSchema + responses: + '200': + description: Success + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FileSchemaTestClass' + required: true + /fake/test-query-parameters: + put: + tags: + - fake + description: To test the collection format in query parameters + operationId: testQueryParameterCollectionFormat + parameters: + - name: pipe + in: query + required: true + schema: + type: array + items: + type: string + - name: ioutil + in: query + required: true + style: form + explode: false + schema: + type: array + items: + type: string + - name: http + in: query + required: true + style: spaceDelimited + schema: + type: array + items: + type: string + - name: url + in: query + required: true + style: form + explode: false + schema: + type: array + items: + type: string + - name: context + in: query + required: true + explode: true + schema: + type: array + items: + type: string + - name: requiredNotNullable + in: query + required: true + explode: true + schema: + type: string + nullable: false + - name: requiredNullable + in: query + required: true + explode: true + schema: + type: string + nullable: true + - name: notRequiredNotNullable + in: query + required: false + explode: true + schema: + type: string + nullable: false + - name: notRequiredNullable + in: query + required: false + explode: true + schema: + type: string + nullable: true + responses: + "200": + description: Success + '/fake/{petId}/uploadImageWithRequiredFile': + post: + tags: + - pet + summary: uploads an image (required) + description: '' + operationId: uploadFileWithRequiredFile + parameters: + - name: petId + in: path + description: ID of pet to update + required: true + schema: + type: integer + format: int64 + responses: + '200': + description: successful operation + content: + application/json: + schema: + $ref: '#/components/schemas/ApiResponse' + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: + # Export data as Excel spreadsheet. + schema: + $ref: '#/components/schemas/ApiResponse' + security: + - petstore_auth: + - 'write:pets' + - 'read:pets' + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + additionalMetadata: + description: Additional data to pass to server + type: string + requiredFile: + description: file to upload + type: string + format: binary + required: + - requiredFile + /fake/health: + get: + tags: + - fake + summary: Health check endpoint + responses: + 200: + description: The instance started successfully + content: + application/json: + schema: + $ref: '#/components/schemas/HealthCheckResult' + /fake/array-of-enums: + get: + tags: + - fake + summary: Array of Enums + operationId: getArrayOfEnums + responses: + 200: + description: Got named array of enums + content: + application/json: + schema: + $ref: '#/components/schemas/ArrayOfEnums' + /fake/mixed/anyOf: + get: + tags: + - fake + summary: Test mixed type anyOf deserialization + operationId: getMixedAnyOf + responses: + 200: + description: Got mixed anyOf + content: + application/json: + schema: + $ref: '#/components/schemas/MixedAnyOf' + /fake/mixed/oneOf: + get: + tags: + - fake + summary: Test mixed type oneOf deserialization + operationId: getMixedOneOf + responses: + 200: + description: Got mixed oneOf + content: + application/json: + schema: + $ref: '#/components/schemas/MixedOneOf' + /country: + post: + operationId: getCountry + requestBody: + content: + application/x-www-form-urlencoded: + schema: + allOf: + - required: + - country + type: object + properties: + country: + type: string + responses: + '200': + description: OK + /test: + get: + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload' + description: Successful response + operationId: Test + summary: Retrieve an existing Notificationtest's Elements +servers: + - url: 'http://{server}.swagger.io:{port}/v2' + description: petstore server + variables: + server: + enum: + - 'petstore' + - 'qa-petstore' + - 'dev-petstore' + default: 'petstore' + port: + enum: + - 80 + - 8080 + default: 80 + - url: https://localhost:8080/{version} + description: The local server + variables: + version: + enum: + - 'v1' + - 'v2' + default: 'v2' + - url: https://127.0.0.1/no_variable + description: The local server without variables +components: + requestBodies: + UserArray: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/User' + examples: + simple-list: + summary: Simple list example + description: Should not get into code examples + value: + - username: foo + - username: bar + description: List of user object + required: true + Client: + content: + application/json: + schema: + $ref: '#/components/schemas/Client' + description: client model + required: true + Pet: + content: + application/json: + schema: + $ref: '#/components/schemas/Pet' + application/xml: + schema: + $ref: '#/components/schemas/Pet' + description: Pet object that needs to be added to the store + required: true + securitySchemes: + petstore_auth: + type: oauth2 + flows: + implicit: + authorizationUrl: 'http://petstore.swagger.io/api/oauth/dialog' + scopes: + 'write:pets': modify pets in your account + 'read:pets': read your pets + api_key: + type: apiKey + name: api-key + in: header + api_key_query: + type: apiKey + name: api_key_query + in: query + http_basic_test: + type: http + scheme: basic + bearer_test: + type: http + scheme: bearer + bearerFormat: JWT + http_signature_test: + # Test the 'HTTP signature' security scheme. + # Each HTTP request is cryptographically signed as specified + # in https://datatracker.ietf.org/doc/draft-cavage-http-signatures/ + type: http + scheme: signature + schemas: + RolesReport: + description: Roles report + type: array + items: + $ref: '#/components/schemas/RolesReportsHash' + RolesReportsHash: + description: Role report Hash + type: object + properties: + role_uuid: + type: string + format: uuid + role: + type: object + properties: + name: + type: string + Foo: + type: object + properties: + bar: + $ref: '#/components/schemas/Bar' + Bar: + type: string + default: bar + Order: + type: object + properties: + id: + type: integer + format: int64 + petId: + type: integer + format: int64 + quantity: + type: integer + format: int32 + shipDate: + type: string + format: date-time + example: '2020-02-02T20:20:20.000222Z' + status: + type: string + description: Order Status + enum: + - placed + - approved + - delivered + complete: + type: boolean + default: false + xml: + name: Order + Category: + type: object + required: + - name + properties: + id: + type: integer + format: int64 + name: + type: string + default: default-name + xml: + name: Category + User: + type: object + properties: + id: + type: integer + format: int64 + x-is-unique: true + username: + type: string + firstName: + type: string + lastName: + type: string + email: + type: string + password: + type: string + phone: + type: string + userStatus: + type: integer + format: int32 + description: User Status + objectWithNoDeclaredProps: + type: object + # Note: the 'additionalProperties' keyword is not specified, which is + # equivalent to allowing undeclared properties of any type. + description: test code generation for objects + Value must be a map of strings to values. It cannot be the 'null' value. + objectWithNoDeclaredPropsNullable: + type: object + # Note: the 'additionalProperties' keyword is not specified, which is + # equivalent to allowing undeclared properties of any type. + description: test code generation for nullable objects. + Value must be a map of strings to values or the 'null' value. + nullable: true + anyTypeProp: + description: test code generation for any type + Here the 'type' attribute is not specified, which means the value can be anything, + including the null value, string, number, boolean, array or object. + See https://github.com/OAI/OpenAPI-Specification/issues/1389 + # TODO: this should be supported, currently there are some issues in the code generation. + #anyTypeExceptNullProp: + # description: any type except 'null' + # Here the 'type' attribute is not specified, which means the value can be anything, + # including the null value, string, number, boolean, array or object. + # not: + # type: 'null' + anyTypePropNullable: + description: test code generation for any type + Here the 'type' attribute is not specified, which means the value can be anything, + including the null value, string, number, boolean, array or object. + The 'nullable' attribute does not change the allowed values. + nullable: true + xml: + name: User + Tag: + type: object + properties: + id: + type: integer + format: int64 + name: + type: string + xml: + name: Tag + Pet: + type: object + required: + - name + - photoUrls + properties: + id: + type: integer + format: int64 + x-is-unique: true + category: + $ref: '#/components/schemas/Category' + name: + type: string + example: doggie + photoUrls: + type: array + xml: + name: photoUrl + wrapped: true + items: + type: string + tags: + type: array + xml: + name: tag + wrapped: true + items: + $ref: '#/components/schemas/Tag' + status: + type: string + description: pet status in the store + enum: + - available + - pending + - sold + xml: + name: Pet + ApiResponse: + type: object + properties: + code: + type: integer + format: int32 + type: + type: string + message: + type: string + Return: + description: Model for testing reserved words + properties: + return: + type: integer + format: int32 + lock: + type: string + abstract: + type: string + nullable: true + unsafe: + type: string + required: + - lock + - abstract + xml: + name: Return + Name: + description: Model for testing model name same as property name + required: + - name + properties: + name: + type: integer + format: int32 + snake_case: + readOnly: true + type: integer + format: int32 + property: + type: string + 123Number: + type: integer + readOnly: true + xml: + name: Name + 200_response: + description: Model for testing model name starting with number + properties: + name: + type: integer + format: int32 + class: + type: string + xml: + name: Name + ClassModel: + description: Model for testing model with "_class" property + properties: + _class: + type: string + Dog: + allOf: + - $ref: '#/components/schemas/Animal' + - type: object + properties: + breed: + type: string + Cat: + allOf: + - $ref: '#/components/schemas/Animal' + - $ref: '#/components/schemas/Address' + - type: object + properties: + declawed: + type: boolean + Address: + type: object + additionalProperties: + type: integer + Animal: + type: object + discriminator: + propertyName: className + required: + - className + properties: + className: + type: string + color: + type: string + default: red + AnimalFarm: + type: array + items: + $ref: '#/components/schemas/Animal' + format_test: + type: object + required: + - number + - byte + - date + - password + - string_formatted_as_decimal_required + properties: + integer: + type: integer + maximum: 100 + minimum: 10 + multipleOf: 2 + int32: + type: integer + format: int32 + maximum: 200 + minimum: 20 + int32Range: + type: integer + maximum: 2147483647 + minimum: -2147483648 + int64Positive: + type: integer + minimum: 2147483648 # int.MaxValue + 1 + int64Negative: + type: integer + maximum: -2147483649 # int.MinValue - 1 + int64PositiveExclusive: + type: integer + minimum: 2147483647 + exclusiveMinimum: true + int64NegativeExclusive: + type: integer + maximum: -2147483648 + exclusiveMaximum: true + unsigned_integer: + type: integer + format: int32 + maximum: 200 + minimum: 20 + x-unsigned: true + int64: + type: integer + format: int64 + unsigned_long: + type: integer + format: int64 + x-unsigned: true + number: + maximum: 543.2 + minimum: 32.1 + type: number + multipleOf: 32.5 + float: + type: number + format: float + maximum: 987.6 + minimum: 54.3 + double: + type: number + format: double + maximum: 123.4 + minimum: 67.8 + decimal: + type: string + format: number + string: + type: string + pattern: '/[a-z]/i' + byte: + type: string + format: byte + binary: + type: string + format: binary + date: + type: string + format: date + example: '2020-02-02' + minLength: 1 + maxLength: 1 + dateTime: + type: string + format: date-time + example: '2007-12-03T10:15:30+01:00' + uuid: + type: string + format: uuid + example: 72f98069-206d-4f12-9f12-3d1e525a8e84 + password: + type: string + format: password + maxLength: 64 + minLength: 10 + pattern_with_digits: + description: A string that is a 10 digit number. Can have leading zeros. + type: string + pattern: '^\d{10}$' + pattern_with_digits_and_delimiter: + description: A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. + type: string + pattern: '/^image_\d{1,3}$/i' + pattern_with_backslash: + description: None + type: string + pattern: '^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$' + string_formatted_as_decimal: + format: decimal + type: string + string_formatted_as_decimal_required: + format: decimal + type: string + duplicate_property_name: + type: string + '@duplicate_property_name': + type: string + EnumClass: + type: string + default: '-efg' + enum: + - _abc + - '-efg' + - (xyz) + Outer_Enum_Test: + type: string + enum: + - UPPER + - lower + - '' + - "Value\twith tab" + - 'Value with " quote' + - 'Value with escaped \" quote' + - "Duplicate\nvalue" + - "Duplicate\r\nvalue" + Enum_Test: + type: object + required: + - enum_string_required + properties: + enum_string: + type: string + enum: + - UPPER + - lower + - '' + - "Value\twith tab" + - 'Value with " quote' + - 'Value with escaped \" quote' + - "Duplicate\nvalue" + - "Duplicate\r\nvalue" + enum_string_required: + type: string + enum: + - UPPER + - lower + - '' + - "Value\twith tab" + - 'Value with " quote' + - 'Value with escaped \" quote' + - "Duplicate\nvalue" + - "Duplicate\r\nvalue" + enum_integer: + type: integer + format: int32 + enum: + - 1 + - -1 + enum_integer_only: + type: integer + enum: + - 2 + - -2 + enum_number: + type: number + format: double + enum: + - 1.1 + - -1.2 + outerEnum: + $ref: '#/components/schemas/OuterEnum' + outerEnumInteger: + $ref: '#/components/schemas/OuterEnumInteger' + outerEnumDefaultValue: + $ref: '#/components/schemas/OuterEnumDefaultValue' + outerEnumIntegerDefaultValue: + $ref: '#/components/schemas/OuterEnumIntegerDefaultValue' + AdditionalPropertiesClass: + type: object + properties: + map_property: + type: object + additionalProperties: + type: string + map_of_map_property: + type: object + additionalProperties: + type: object + additionalProperties: + type: string + anytype_1: {} + map_with_undeclared_properties_anytype_1: + type: object + map_with_undeclared_properties_anytype_2: + type: object + properties: {} + map_with_undeclared_properties_anytype_3: + type: object + additionalProperties: true + empty_map: + type: object + description: an object with no declared properties and no undeclared + properties, hence it's an empty map. + additionalProperties: false + map_with_undeclared_properties_string: + type: object + additionalProperties: + type: string + MixedPropertiesAndAdditionalPropertiesClass: + type: object + properties: + uuid_with_pattern: + type: string + format: uuid + pattern: "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + uuid: + type: string + format: uuid + dateTime: + type: string + format: date-time + map: + type: object + additionalProperties: + $ref: '#/components/schemas/Animal' + List: + type: object + properties: + 123-list: + type: string + Client: + type: object + properties: + client: + type: string + ReadOnlyFirst: + type: object + properties: + bar: + type: string + readOnly: true + baz: + type: string + hasOnlyReadOnly: + type: object + properties: + bar: + type: string + readOnly: true + foo: + type: string + readOnly: true + Capitalization: + type: object + properties: + smallCamel: + type: string + CapitalCamel: + type: string + small_Snake: + type: string + Capital_Snake: + type: string + SCA_ETH_Flow_Points: + type: string + ATT_NAME: + description: | + Name of the pet + type: string + MapTest: + type: object + properties: + map_map_of_string: + type: object + additionalProperties: + type: object + additionalProperties: + type: string + map_of_enum_string: + type: object + additionalProperties: + type: string + enum: + - UPPER + - lower + direct_map: + type: object + additionalProperties: + type: boolean + indirect_map: + $ref: '#/components/schemas/StringBooleanMap' + ArrayTest: + type: object + properties: + array_of_string: + type: array + items: + type: string + array_array_of_integer: + type: array + items: + type: array + items: + type: integer + format: int64 + array_array_of_model: + type: array + items: + type: array + items: + $ref: '#/components/schemas/ReadOnlyFirst' + NumberOnly: + x-cls-compliant: true + x-com-visible: true + type: object + properties: + JustNumber: + type: number + ArrayOfNumberOnly: + type: object + properties: + ArrayNumber: + type: array + items: + type: number + ArrayOfArrayOfNumberOnly: + type: object + properties: + ArrayArrayNumber: + type: array + items: + type: array + items: + type: number + EnumArrays: + type: object + properties: + just_symbol: + type: string + enum: + - '>=' + - $ + array_enum: + type: array + items: + type: string + enum: + - fish + - crab + FreeFormObject: + type: object + description: A schema consisting only of additional properties + additionalProperties: true + MapOfString: + type: object + description: A schema consisting only of additional properties of type string + additionalProperties: + type: string + OuterEnum: + nullable: true + type: string + enum: + - placed + - approved + - delivered + OuterEnumInteger: + type: integer + enum: + - 0 + - 1 + - 2 + OuterEnumDefaultValue: + type: string + enum: + - placed + - approved + - delivered + default: placed + OuterEnumIntegerDefaultValue: + type: integer + enum: + - 0 + - 1 + - 2 + default: 0 + OuterComposite: + type: object + properties: + my_number: + $ref: '#/components/schemas/OuterNumber' + my_string: + $ref: '#/components/schemas/OuterString' + my_boolean: + $ref: '#/components/schemas/OuterBoolean' + OuterNumber: + type: number + OuterString: + type: string + OuterBoolean: + type: boolean + x-codegen-body-parameter-name: boolean_post_body + StringBooleanMap: + additionalProperties: + type: boolean + FileSchemaTestClass: + type: object + properties: + file: + $ref: '#/components/schemas/File' + files: + type: array + items: + $ref: '#/components/schemas/File' + File: + type: object + description: Must be named `File` for test. + properties: + sourceURI: + description: Test capitalization + type: string + _special_model.name_: + properties: + '$special[property.name]': + type: integer + format: int64 + '_special_model.name_': + type: string + xml: + name: '$special[model.name]' + HealthCheckResult: + type: object + properties: + NullableMessage: + nullable: true + type: string + description: Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. + RequiredClass: + type: object + properties: + required_nullable_integer_prop: + type: integer + nullable: true + required_notnullableinteger_prop: + type: integer + nullable: false + not_required_nullable_integer_prop: + type: integer + nullable: true + not_required_notnullableinteger_prop: + type: integer + nullable: false + + required_nullable_string_prop: + type: string + nullable: true + required_notnullable_string_prop: + type: string + nullable: false + notrequired_nullable_string_prop: + type: string + nullable: true + notrequired_notnullable_string_prop: + type: string + nullable: false + + required_nullable_boolean_prop: + type: boolean + nullable: true + required_notnullable_boolean_prop: + type: boolean + nullable: false + notrequired_nullable_boolean_prop: + type: boolean + nullable: true + notrequired_notnullable_boolean_prop: + type: boolean + nullable: false + + required_nullable_date_prop: + type: string + format: date + nullable: true + required_not_nullable_date_prop: + type: string + format: date + nullable: false + not_required_nullable_date_prop: + type: string + format: date + nullable: true + not_required_notnullable_date_prop: + type: string + format: date + nullable: false + + required_notnullable_datetime_prop: + type: string + format: date-time + nullable: false + required_nullable_datetime_prop: + type: string + format: date-time + nullable: true + notrequired_nullable_datetime_prop: + type: string + format: date-time + nullable: true + notrequired_notnullable_datetime_prop: + type: string + format: date-time + nullable: false + + required_nullable_enum_integer: + type: integer + format: int32 + nullable: true + enum: + - 1 + - -1 + required_notnullable_enum_integer: + type: integer + format: int32 + nullable: false + enum: + - 1 + - -1 + notrequired_nullable_enum_integer: + type: integer + format: int32 + nullable: true + enum: + - 1 + - -1 + notrequired_notnullable_enum_integer: + type: integer + format: int32 + nullable: false + enum: + - 1 + - -1 + + required_nullable_enum_integer_only: + type: integer + nullable: true + enum: + - 2 + - -2 + required_notnullable_enum_integer_only: + type: integer + nullable: false + enum: + - 2 + - -2 + notrequired_nullable_enum_integer_only: + type: integer + nullable: true + enum: + - 2 + - -2 + notrequired_notnullable_enum_integer_only: + type: integer + nullable: false + enum: + - 2 + - -2 + + required_notnullable_enum_string: + type: string + nullable: false + enum: + - UPPER + - lower + - '' + - "Value\twith tab" + - 'Value with " quote' + - 'Value with escaped \" quote' + - "Duplicate\nvalue" + - "Duplicate\r\nvalue" + required_nullable_enum_string: + type: string + nullable: true + enum: + - UPPER + - lower + - '' + - "Value\twith tab" + - 'Value with " quote' + - 'Value with escaped \" quote' + - "Duplicate\nvalue" + - "Duplicate\r\nvalue" + notrequired_nullable_enum_string: + type: string + nullable: true + enum: + - UPPER + - lower + - '' + - "Value\twith tab" + - 'Value with " quote' + - 'Value with escaped \" quote' + - "Duplicate\nvalue" + - "Duplicate\r\nvalue" + notrequired_notnullable_enum_string: + type: string + nullable: false + enum: + - UPPER + - lower + - '' + - "Value\twith tab" + - 'Value with " quote' + - 'Value with escaped \" quote' + - "Duplicate\nvalue" + - "Duplicate\r\nvalue" + + required_nullable_outerEnumDefaultValue: + nullable: true + allOf: + - $ref: '#/components/schemas/OuterEnumDefaultValue' + required_notnullable_outerEnumDefaultValue: + nullable: false + allOf: + - $ref: '#/components/schemas/OuterEnumDefaultValue' + notrequired_nullable_outerEnumDefaultValue: + nullable: true + allOf: + - $ref: '#/components/schemas/OuterEnumDefaultValue' + notrequired_notnullable_outerEnumDefaultValue: + nullable: false + allOf: + - $ref: '#/components/schemas/OuterEnumDefaultValue' + + required_nullable_uuid: + type: string + format: uuid + example: 72f98069-206d-4f12-9f12-3d1e525a8e84 + nullable: true + required_notnullable_uuid: + type: string + format: uuid + example: 72f98069-206d-4f12-9f12-3d1e525a8e84 + nullable: false + notrequired_nullable_uuid: + type: string + format: uuid + example: 72f98069-206d-4f12-9f12-3d1e525a8e84 + nullable: true + notrequired_notnullable_uuid: + type: string + format: uuid + example: 72f98069-206d-4f12-9f12-3d1e525a8e84 + nullable: false + + required_nullable_array_of_string: + type: array + nullable: true + items: + type: string + required_notnullable_array_of_string: + type: array + nullable: false + items: + type: string + notrequired_nullable_array_of_string: + type: array + nullable: true + items: + type: string + notrequired_notnullable_array_of_string: + type: array + nullable: false + items: + type: string + required: + - required_nullable_boolean_prop + - required_notnullable_boolean_prop + - required_nullable_string_prop + - required_notnullable_string_prop + - required_nullable_integer_prop + - required_notnullableinteger_prop + - required_nullable_date_prop + - required_not_nullable_date_prop + - required_notnullable_datetime_prop + - required_nullable_datetime_prop + - required_nullable_enum_integer + - required_notnullable_enum_integer + - required_nullable_enum_integer_only + - required_notnullable_enum_integer_only + - required_notnullable_enum_string + - required_nullable_enum_string + - required_nullable_outerEnumDefaultValue + - required_notnullable_outerEnumDefaultValue + - required_nullable_uuid + - required_notnullable_uuid + - required_nullable_array_of_string + - required_notnullable_array_of_string + NullableClass: + type: object + properties: + integer_prop: + type: integer + nullable: true + number_prop: + type: number + nullable: true + boolean_prop: + type: boolean + nullable: true + string_prop: + type: string + nullable: true + date_prop: + type: string + format: date + nullable: true + datetime_prop: + type: string + format: date-time + nullable: true + array_nullable_prop: + type: array + nullable: true + items: + type: object + array_and_items_nullable_prop: + type: array + nullable: true + items: + type: object + nullable: true + array_items_nullable: + type: array + items: + type: object + nullable: true + object_nullable_prop: + type: object + nullable: true + additionalProperties: + type: object + object_and_items_nullable_prop: + type: object + nullable: true + additionalProperties: + type: object + nullable: true + object_items_nullable: + type: object + additionalProperties: + type: object + nullable: true + additionalProperties: + type: object + nullable: true + fruit: + properties: + color: + type: string + oneOf: + - $ref: '#/components/schemas/apple' + - $ref: '#/components/schemas/banana' + # Below additionalProperties is set to false to validate the use + # case when a composed schema has additionalProperties set to false. + additionalProperties: false + apple: + type: object + properties: + cultivar: + type: string + pattern: ^[a-zA-Z\s]*$ + origin: + type: string + pattern: /^[A-Z\s]*$/i + color_code: + type: string + pattern: ^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$ + nullable: true + banana: + type: object + properties: + lengthCm: + type: number + mammal: + oneOf: + - $ref: '#/components/schemas/whale' + - $ref: '#/components/schemas/zebra' + - $ref: '#/components/schemas/Pig' + discriminator: + propertyName: className + whale: + type: object + properties: + hasBaleen: + type: boolean + hasTeeth: + type: boolean + className: + type: string + required: + - className + zebra: + type: object + properties: + type: + type: string + enum: + - plains + - mountain + - grevys + className: + type: string + required: + - className + additionalProperties: true + Pig: + oneOf: + - $ref: '#/components/schemas/BasquePig' + - $ref: '#/components/schemas/DanishPig' + discriminator: + propertyName: className + BasquePig: + type: object + properties: + className: + type: string + required: + - className + DanishPig: + type: object + properties: + className: + type: string + required: + - className + gmFruit: + properties: + color: + type: string + anyOf: + - $ref: '#/components/schemas/apple' + - $ref: '#/components/schemas/banana' + additionalProperties: false + fruitReq: + oneOf: + - type: 'null' + - $ref: '#/components/schemas/appleReq' + - $ref: '#/components/schemas/bananaReq' + additionalProperties: false + appleReq: + type: object + properties: + cultivar: + type: string + mealy: + type: boolean + required: + - cultivar + additionalProperties: false + bananaReq: + type: object + properties: + lengthCm: + type: number + sweet: + type: boolean + required: + - lengthCm + additionalProperties: false + # go-experimental is unable to make Triangle and Quadrilateral models + # correctly https://github.com/OpenAPITools/openapi-generator/issues/6149 + Drawing: + type: object + properties: + mainShape: + # A property whose value is a 'oneOf' type, and the type is referenced instead + # of being defined inline. The value cannot be null. + $ref: '#/components/schemas/Shape' + shapeOrNull: + # A property whose value is a 'oneOf' type, and the type is referenced instead + # of being defined inline. The value may be null because ShapeOrNull has 'null' + # type as a child schema of 'oneOf'. + $ref: '#/components/schemas/ShapeOrNull' + nullableShape: + # A property whose value is a 'oneOf' type, and the type is referenced instead + # of being defined inline. The value may be null because NullableShape has the + # 'nullable: true' attribute. For this specific scenario this is exactly the + # same thing as 'shapeOrNull'. + $ref: '#/components/schemas/NullableShape' + shapes: + type: array + items: + $ref: '#/components/schemas/Shape' + additionalProperties: + # Here the additional properties are specified using a referenced schema. + # This is just to validate the generated code works when using $ref + # under 'additionalProperties'. + $ref: '#/components/schemas/fruit' + Shape: + oneOf: + - $ref: '#/components/schemas/Triangle' + - $ref: '#/components/schemas/Quadrilateral' + discriminator: + propertyName: shapeType + ShapeOrNull: + description: The value may be a shape or the 'null' value. + This is introduced in OAS schema >= 3.1. + oneOf: + - type: 'null' + - $ref: '#/components/schemas/Triangle' + - $ref: '#/components/schemas/Quadrilateral' + discriminator: + propertyName: shapeType + NullableShape: + description: The value may be a shape or the 'null' value. + The 'nullable' attribute was introduced in OAS schema >= 3.0 + and has been deprecated in OAS schema >= 3.1. + oneOf: + - $ref: '#/components/schemas/Triangle' + - $ref: '#/components/schemas/Quadrilateral' + discriminator: + propertyName: shapeType + nullable: true + ShapeInterface: + properties: + shapeType: + type: string + required: + - shapeType + TriangleInterface: + properties: + triangleType: + type: string + required: + - triangleType + Triangle: + oneOf: + - $ref: '#/components/schemas/EquilateralTriangle' + - $ref: '#/components/schemas/IsoscelesTriangle' + - $ref: '#/components/schemas/ScaleneTriangle' + discriminator: + propertyName: triangleType + # Note: the 'additionalProperties' keyword is not specified, which is + # equivalent to allowing undeclared properties of any type. + EquilateralTriangle: + allOf: + - $ref: '#/components/schemas/ShapeInterface' + - $ref: '#/components/schemas/TriangleInterface' + IsoscelesTriangle: + allOf: + - $ref: '#/components/schemas/ShapeInterface' + - $ref: '#/components/schemas/TriangleInterface' + additionalProperties: false + ScaleneTriangle: + allOf: + - $ref: '#/components/schemas/ShapeInterface' + - $ref: '#/components/schemas/TriangleInterface' + QuadrilateralInterface: + properties: + quadrilateralType: + type: string + required: + - quadrilateralType + Quadrilateral: + oneOf: + - $ref: '#/components/schemas/SimpleQuadrilateral' + - $ref: '#/components/schemas/ComplexQuadrilateral' + discriminator: + propertyName: quadrilateralType + SimpleQuadrilateral: + allOf: + - $ref: '#/components/schemas/ShapeInterface' + - $ref: '#/components/schemas/QuadrilateralInterface' + ComplexQuadrilateral: + allOf: + - $ref: '#/components/schemas/ShapeInterface' + - $ref: '#/components/schemas/QuadrilateralInterface' + GrandparentAnimal: + type: object + required: + - pet_type + properties: + pet_type: + type: string + discriminator: + propertyName: pet_type + ParentPet: + type: object + allOf: + - $ref: '#/components/schemas/GrandparentAnimal' + ChildCat: + allOf: + - $ref: '#/components/schemas/ParentPet' + - type: object + properties: + name: + type: string + pet_type: + x-enum-as-string: true + type: string + enum: + - ChildCat + default: ChildCat + required: + - pet_type + ArrayOfEnums: + type: array + items: + $ref: '#/components/schemas/OuterEnum' + DateTimeTest: + type: string + default: '2010-01-01T10:10:10.000111+01:00' + example: '2010-01-01T10:10:10.000111+01:00' + format: date-time + DeprecatedObject: + type: object + deprecated: true + properties: + name: + type: string + ObjectWithDeprecatedFields: + type: object + properties: + uuid: + type: string + id: + type: number + deprecated: true + deprecatedRef: + $ref: '#/components/schemas/DeprecatedObject' + bars: + type: array + deprecated: true + items: + $ref: '#/components/schemas/Bar' + PolymorphicProperty: + oneOf: + - type: boolean + - type: string + - type: object + - type: array + items: + $ref: '#/components/schemas/StringArrayItem' + StringArrayItem: + type: string + format: string + Activity: + description: "test map of maps" + type: object + properties: + activity_outputs: + type: object + additionalProperties: + $ref: '#/components/schemas/ActivityOutputRepresentation' + ActivityOutputRepresentation: + type: array + items: + $ref: '#/components/schemas/ActivityOutputElementRepresentation' + ActivityOutputElementRepresentation: + type: object + properties: + prop1: + type: string + prop2: + type: object + NullableGuidClass: + type: object + properties: + uuid: + type: string + format: uuid + example: 72f98069-206d-4f12-9f12-3d1e525a8e84 + nullable: true + DateOnlyClass: + type: object + properties: + dateOnlyProperty: + type: string + format: date + example: "2017-07-21" + TestCollectionEndingWithWordListObject: + type: object + properties: + TestCollectionEndingWithWordList: + type: array + items: + $ref: '#/components/schemas/TestCollectionEndingWithWordList' + TestCollectionEndingWithWordList: + type: object + properties: + value: + type: string + LiteralStringClass: + type: object + properties: + escapedLiteralString: + type: string + default: C:\\Users\\username + unescapedLiteralString: + type: string + default: C:\Users\username + OneOfString: + oneOf: + - type: string + pattern: ^a + - type: string + pattern: ^b + ZeroBasedEnum: + type: string + enum: + - unknown + - notUnknown + ZeroBasedEnumClass: + type: object + properties: + ZeroBasedEnum: + type: string + enum: + - unknown + - notUnknown + Custom-Variableobject-Response: + description: A Variable object without predefined property names + type: object + additionalProperties: true + Field-pkiNotificationtestID: + type: integer + notificationtest-getElements-v1-Response-mPayload: + required: + - pkiNotificationtestID + - a_objVariableobject + type: object + properties: + pkiNotificationtestID: + $ref: '#/components/schemas/Field-pkiNotificationtestID' + a_objVariableobject: + type: array + items: + $ref: '#/components/schemas/Custom-Variableobject-Response' + MixedOneOf: + properties: + content: + oneOf: + - type: string + - type: boolean + # JsonReader will give back C# System.Int64 regardless of format. + - type: integer + format: uint8 + # JsonReader will give back C# System.Double regardless of format. + - type: number + format: float32 + - type: object + $ref: '#/components/schemas/MixedSubId' + description: Mixed oneOf types for testing + MixedAnyOf: + properties: + content: + anyOf: + - type: string + - type: boolean + # JsonReader will give back C# System.Int64 regardless of format. + - type: integer + format: uint8 + # JsonReader will give back C# System.Double regardless of format. + - type: number + format: float32 + - type: object + $ref: '#/components/schemas/MixedSubId' + + description: Mixed anyOf types for testing + MixedSubId: + properties: + id: + type: string + Descendant1: + allOf: + - $ref: "#/components/schemas/TestDescendants" + - required: + - "descendantName" + type: "object" + properties: + descendantName: + type: "string" + Descendant2: + allOf: + - $ref: "#/components/schemas/TestDescendants" + - required: + - "confidentiality" + type: "object" + properties: + confidentiality: + type: "string" + TestDescendants: + required: + - "alternativeName" + - "objectType" + type: "object" + properties: + alternativeName: + type: "string" + objectType: + type: "string" + enum: + - "Descendant1" + - "Descendant2" + description: "" + discriminator: + propertyName: "objectType" + CopyActivity: + type: object + required: + - $schema + - copyActivitytt + properties: + $schema: + type: string + enum: + - ScopeActivity + copyActivitytt: + type: string + allOf: + - $ref: '#/components/schemas/EntityBase' + EntityBase: + type: object + required: + - $schema + properties: + $schema: + type: string + discriminator: + propertyName: $schema + mapping: + ScopeActivity: '#/components/schemas/CopyActivity' + Result: + type: object + properties: + code: + type: string + description: Result code + uuid: + type: string + description: Result unique identifier + data: + type: object + 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: + - $ref: '#/components/schemas/Result' + properties: + code: + $ref: "#/components/schemas/TestResultCode" + TestResultCode: + type: string + description: Result code + enum: + - APPROVED + - MANUAL_APPROVAL_REQUIRED 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..98095354ea32 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,16 +2686,6 @@ 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 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..9d3b1ee3ad39 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,16 +2867,6 @@ 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 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..98095354ea32 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,16 +2686,6 @@ 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 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..9d3b1ee3ad39 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,16 +2867,6 @@ 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 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..98095354ea32 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/api/openapi.yaml @@ -2686,16 +2686,6 @@ 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 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/src/Org.OpenAPITools.Test/Model/ResultTests.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools.Test/Model/ResultTests.cs index 222a85fbdd68..6066aaea1a70 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools.Test/Model/ResultTests.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools.Test/Model/ResultTests.cs @@ -71,6 +71,24 @@ public void DataTest() // TODO unit test for the property 'Data' } + /// + /// Test the property 'DeepList' + /// + [Fact] + public void DeepListTest() + { + // TODO unit test for the property 'DeepList' + } + + /// + /// Test the property 'List' + /// + [Fact] + public void ListTest() + { + // TODO unit test for the property 'List' + } + /// /// Test the property 'Uuid' /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools.Test/Model/TestResultTests.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools.Test/Model/TestResultTests.cs index ad0d6377bf4a..21eceb5059ba 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools.Test/Model/TestResultTests.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools.Test/Model/TestResultTests.cs @@ -71,6 +71,24 @@ public void DataTest() // TODO unit test for the property 'Data' } + /// + /// Test the property 'DeepList' + /// + [Fact] + public void DeepListTest() + { + // TODO unit test for the property 'DeepList' + } + + /// + /// Test the property 'List' + /// + [Fact] + public void ListTest() + { + // TODO unit test for the property 'List' + } + /// /// Test the property 'Uuid' /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/README.md b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/README.md index d66bc9fdfb47..d22dba2a85ee 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/README.md +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/README.md @@ -6,7 +6,7 @@ Create a config.yaml file similar to what is below, then run the following power ```yaml generatorName: csharp -inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml +inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-null-reference-types.yaml outputDir: out # https://openapi-generator.tech/docs/generators/csharp 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..9d3b1ee3ad39 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/api/openapi.yaml @@ -2867,16 +2867,6 @@ 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 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..9d3b1ee3ad39 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/api/openapi.yaml @@ -2867,16 +2867,6 @@ 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 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..98095354ea32 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/api/openapi.yaml @@ -2686,16 +2686,6 @@ 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 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..9d3b1ee3ad39 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/api/openapi.yaml @@ -2867,16 +2867,6 @@ 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 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..9d3b1ee3ad39 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/api/openapi.yaml @@ -2867,16 +2867,6 @@ 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 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..9d3b1ee3ad39 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/api/openapi.yaml @@ -2867,16 +2867,6 @@ 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 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..9d3b1ee3ad39 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,16 +2867,6 @@ 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 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..9d3b1ee3ad39 100644 --- a/samples/client/petstore/csharp/httpclient/net9/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/api/openapi.yaml @@ -2867,16 +2867,6 @@ 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 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..9d3b1ee3ad39 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,16 +2867,6 @@ 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 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..9d3b1ee3ad39 100644 --- a/samples/client/petstore/csharp/restsharp/net8/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/api/openapi.yaml @@ -2867,16 +2867,6 @@ 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 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..9d3b1ee3ad39 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,16 +2867,6 @@ 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 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..9d3b1ee3ad39 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/api/openapi.yaml +++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/api/openapi.yaml @@ -2867,16 +2867,6 @@ 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 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..9d3b1ee3ad39 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,16 +2867,6 @@ 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 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; } }