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 1f867e843c6..0a38d5bd333 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
@@ -662,15 +662,20 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
String tmpPropertyName = escapeReservedWord(model, property.name);
property.name = patchPropertyName(model, property.name);
- // fix incorrect data types for maps of maps
- if (property.datatypeWithEnum.endsWith(", List>") && property.items != null) {
- property.datatypeWithEnum = property.datatypeWithEnum.replace(", List>", ", " + property.items.datatypeWithEnum + ">");
- property.dataType = property.datatypeWithEnum;
- }
- if (property.datatypeWithEnum.endsWith(", Dictionary>") && property.items != null) {
- property.datatypeWithEnum = property.datatypeWithEnum.replace(", Dictionary>", ", " + property.items.datatypeWithEnum + ">");
- property.dataType = property.datatypeWithEnum;
- }
+ String[] nestedTypes = { "List", "Collection", "ICollection", "Dictionary" };
+
+ Arrays.stream(nestedTypes).forEach(nestedType -> {
+ // fix incorrect data types for maps of maps
+ if (property.datatypeWithEnum.contains(", " + nestedType + ">") && property.items != null) {
+ property.datatypeWithEnum = property.datatypeWithEnum.replace(", " + nestedType + ">", ", " + property.items.datatypeWithEnum + ">");
+ property.dataType = property.datatypeWithEnum;
+ }
+
+ if (property.datatypeWithEnum.contains("<" + nestedType + ">") && property.items != null) {
+ property.datatypeWithEnum = property.datatypeWithEnum.replace("<" + nestedType + ">", "<" + property.items.datatypeWithEnum + ">");
+ property.dataType = property.datatypeWithEnum;
+ }
+ });
// HOTFIX: https://github.com/OpenAPITools/openapi-generator/issues/14944
if (property.datatypeWithEnum.equals("decimal")) {
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 b9b8ac60c26..242a5a5b011 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
@@ -1196,6 +1196,17 @@ paths:
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
@@ -2350,4 +2361,22 @@ components:
type: string
enum:
- unknown
- - notUnknown
\ No newline at end of file
+ - 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'
\ No newline at end of file
diff --git a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/.openapi-generator/FILES b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/.openapi-generator/FILES
index 12fc06c2c31..9c3b84181d0 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/.openapi-generator/FILES
@@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
+docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@@ -174,6 +175,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
+src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs
diff --git a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/README.md b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/README.md
index 34888b871e0..27823ed8561 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/README.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/README.md
@@ -108,6 +108,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
+*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@@ -198,6 +199,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
+ - [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/api/openapi.yaml
index 32f67b442f7..a80a80d18e4 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/api/openapi.yaml
+++ b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/api/openapi.yaml
@@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
+ /test:
+ get:
+ operationId: Test
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
+ description: Successful response
+ summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
+ Custom-Variableobject-Response:
+ additionalProperties: true
+ description: A Variable object without predefined property names
+ type: object
+ Field-pkiNotificationtestID:
+ type: integer
+ notificationtest-getElements-v1-Response-mPayload:
+ example:
+ a_objVariableobject:
+ - null
+ - null
+ pkiNotificationtestID: 0
+ properties:
+ pkiNotificationtestID:
+ type: integer
+ a_objVariableobject:
+ items:
+ $ref: '#/components/schemas/Custom-Variableobject-Response'
+ type: array
+ required:
+ - a_objVariableobject
+ - pkiNotificationtestID
+ type: object
_foo_get_default_response:
example:
string:
diff --git a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/docs/DefaultApi.md b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/docs/DefaultApi.md
index 0b75771ecbc..d9d4abc6ebb 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/docs/DefaultApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/docs/DefaultApi.md
@@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
+| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements |
# **FooGet**
@@ -342,3 +343,87 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **Test**
+> NotificationtestGetElementsV1ResponseMPayload Test ()
+
+Retrieve an existing Notificationtest's Elements
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class TestExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new DefaultApi(config);
+
+ try
+ {
+ // Retrieve an existing Notificationtest's Elements
+ NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the TestWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Retrieve an existing Notificationtest's Elements
+ ApiResponse response = apiInstance.TestWithHttpInfo();
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+### Return type
+
+[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful response | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/docs/NotificationtestGetElementsV1ResponseMPayload.md b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/docs/NotificationtestGetElementsV1ResponseMPayload.md
new file mode 100644
index 00000000000..e6e3d9fdb0b
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/docs/NotificationtestGetElementsV1ResponseMPayload.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PkiNotificationtestID** | **int** | |
+**AObjVariableobject** | **List<Dictionary<string, Object>>** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
new file mode 100644
index 00000000000..14e41c5e4d6
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
@@ -0,0 +1,75 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing NotificationtestGetElementsV1ResponseMPayload
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
+ //private NotificationtestGetElementsV1ResponseMPayload instance;
+
+ public NotificationtestGetElementsV1ResponseMPayloadTests()
+ {
+ // TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
+ //instance = new NotificationtestGetElementsV1ResponseMPayload();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [Fact]
+ public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'PkiNotificationtestID'
+ ///
+ [Fact]
+ public void PkiNotificationtestIDTest()
+ {
+ // TODO unit test for the property 'PkiNotificationtestID'
+ }
+
+ ///
+ /// Test the property 'AObjVariableobject'
+ ///
+ [Fact]
+ public void AObjVariableobjectTest()
+ {
+ // TODO unit test for the property 'AObjVariableobject'
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs
index ad8969b7bf7..354f9eb6d9f 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -104,6 +104,24 @@ namespace Org.OpenAPITools.Api
/// Index associated with the operation.
/// ApiResponse of List<List<RolesReportsHash>>
ApiResponse>> RolesReportGetWithHttpInfo(int operationIndex = 0);
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// NotificationtestGetElementsV1ResponseMPayload
+ NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ ApiResponse TestWithHttpInfo(int operationIndex = 0);
#endregion Synchronous Operations
}
@@ -207,6 +225,29 @@ namespace Org.OpenAPITools.Api
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<List<RolesReportsHash>>)
System.Threading.Tasks.Task>>> RolesReportGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ System.Threading.Tasks.Task TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ System.Threading.Tasks.Task> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@@ -847,5 +888,131 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// NotificationtestGetElementsV1ResponseMPayload
+ public NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0)
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = TestWithHttpInfo();
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ public Org.OpenAPITools.Client.ApiResponse TestWithHttpInfo(int operationIndex = 0)
+ {
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+
+ localVarRequestOptions.Operation = "DefaultApi.Test";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Get("/test", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ public async System.Threading.Tasks.Task TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ public async System.Threading.Tasks.Task> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+
+ localVarRequestOptions.Operation = "DefaultApi.Test";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+
+ // make the HTTP request
+ var localVarResponse = await this.AsynchronousClient.GetAsync("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
}
}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
new file mode 100644
index 00000000000..59d313b70e1
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
+ public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected NotificationtestGetElementsV1ResponseMPayload()
+ {
+ this.AdditionalProperties = new Dictionary();
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// pkiNotificationtestID (required).
+ /// aObjVariableobject (required).
+ public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List> aObjVariableobject = default(List>))
+ {
+ this._PkiNotificationtestID = pkiNotificationtestID;
+ // to ensure "aObjVariableobject" is required (not null)
+ if (aObjVariableobject == null)
+ {
+ throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
+ }
+ this._AObjVariableobject = aObjVariableobject;
+ this.AdditionalProperties = new Dictionary();
+ }
+
+ ///
+ /// Gets or Sets PkiNotificationtestID
+ ///
+ [DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
+ public int PkiNotificationtestID
+ {
+ get{ return _PkiNotificationtestID;}
+ set
+ {
+ _PkiNotificationtestID = value;
+ _flagPkiNotificationtestID = true;
+ }
+ }
+ private int _PkiNotificationtestID;
+ private bool _flagPkiNotificationtestID;
+
+ ///
+ /// Returns false as PkiNotificationtestID should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializePkiNotificationtestID()
+ {
+ return _flagPkiNotificationtestID;
+ }
+ ///
+ /// Gets or Sets AObjVariableobject
+ ///
+ [DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
+ public List> AObjVariableobject
+ {
+ get{ return _AObjVariableobject;}
+ set
+ {
+ _AObjVariableobject = value;
+ _flagAObjVariableobject = true;
+ }
+ }
+ private List> _AObjVariableobject;
+ private bool _flagAObjVariableobject;
+
+ ///
+ /// Returns false as AObjVariableobject should not be serialized given that it's read-only.
+ ///
+ /// false (boolean)
+ public bool ShouldSerializeAObjVariableobject()
+ {
+ return _flagAObjVariableobject;
+ }
+ ///
+ /// Gets or Sets additional properties
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalProperties { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
+ sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
+ sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
+ sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
+ }
+
+ ///
+ /// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
+ ///
+ /// Instance of NotificationtestGetElementsV1ResponseMPayload to be compared
+ /// Boolean
+ public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
+ if (this.AObjVariableobject != null)
+ {
+ hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
+ }
+ if (this.AdditionalProperties != null)
+ {
+ hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/.openapi-generator/FILES b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/.openapi-generator/FILES
index 5dc99b0dddf..58efa577f21 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/.openapi-generator/FILES
@@ -58,6 +58,7 @@ docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
docs/models/Model200Response.md
docs/models/ModelClient.md
docs/models/Name.md
+docs/models/NotificationtestGetElementsV1ResponseMPayload.md
docs/models/NullableClass.md
docs/models/NullableGuidClass.md
docs/models/NullableShape.md
@@ -182,6 +183,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
+src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/api/openapi.yaml
index 32f67b442f7..a80a80d18e4 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/api/openapi.yaml
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/api/openapi.yaml
@@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
+ /test:
+ get:
+ operationId: Test
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
+ description: Successful response
+ summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
+ Custom-Variableobject-Response:
+ additionalProperties: true
+ description: A Variable object without predefined property names
+ type: object
+ Field-pkiNotificationtestID:
+ type: integer
+ notificationtest-getElements-v1-Response-mPayload:
+ example:
+ a_objVariableobject:
+ - null
+ - null
+ pkiNotificationtestID: 0
+ properties:
+ pkiNotificationtestID:
+ type: integer
+ a_objVariableobject:
+ items:
+ $ref: '#/components/schemas/Custom-Variableobject-Response'
+ type: array
+ required:
+ - a_objVariableobject
+ - pkiNotificationtestID
+ type: object
_foo_get_default_response:
example:
string:
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/docs/apis/DefaultApi.md b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/docs/apis/DefaultApi.md
index e4639d3f928..0bdfd6af347 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/docs/apis/DefaultApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/docs/apis/DefaultApi.md
@@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
+| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements |
# **FooGet**
@@ -342,3 +343,87 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **Test**
+> NotificationtestGetElementsV1ResponseMPayload Test ()
+
+Retrieve an existing Notificationtest's Elements
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class TestExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new DefaultApi(config);
+
+ try
+ {
+ // Retrieve an existing Notificationtest's Elements
+ NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the TestWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Retrieve an existing Notificationtest's Elements
+ ApiResponse response = apiInstance.TestWithHttpInfo();
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+### Return type
+
+[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful response | - |
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/docs/models/NotificationtestGetElementsV1ResponseMPayload.md b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/docs/models/NotificationtestGetElementsV1ResponseMPayload.md
new file mode 100644
index 00000000000..25f223a8360
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/docs/models/NotificationtestGetElementsV1ResponseMPayload.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**AObjVariableobject** | **List<Dictionary<string, Object>>** | |
+**PkiNotificationtestID** | **int** | |
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
new file mode 100644
index 00000000000..dd3b74e3306
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
@@ -0,0 +1,74 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing NotificationtestGetElementsV1ResponseMPayload
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
+ //private NotificationtestGetElementsV1ResponseMPayload instance;
+
+ public NotificationtestGetElementsV1ResponseMPayloadTests()
+ {
+ // TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
+ //instance = new NotificationtestGetElementsV1ResponseMPayload();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [Fact]
+ public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'AObjVariableobject'
+ ///
+ [Fact]
+ public void AObjVariableobjectTest()
+ {
+ // TODO unit test for the property 'AObjVariableobject'
+ }
+
+ ///
+ /// Test the property 'PkiNotificationtestID'
+ ///
+ [Fact]
+ public void PkiNotificationtestIDTest()
+ {
+ // TODO unit test for the property 'PkiNotificationtestID'
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Api/DefaultApi.cs
index 7bdbcc9fddb..fefd741c7a2 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -120,6 +120,27 @@ namespace Org.OpenAPITools.Api
/// Cancellation Token to cancel the request.
/// Task<ApiResponse>List<List<RolesReportsHash>>>?>
Task>>?> RolesReportGetOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>>
+ Task> TestAsync(System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Cancellation Token to cancel the request.
+ /// Task<ApiResponse>NotificationtestGetElementsV1ResponseMPayload>?>
+ Task?> TestOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default);
}
///
@@ -207,6 +228,26 @@ namespace Org.OpenAPITools.Api
{
OnErrorRolesReportGet?.Invoke(this, new ExceptionEventArgs(exception));
}
+
+ ///
+ /// The event raised after the server response
+ ///
+ public event EventHandler>? OnTest;
+
+ ///
+ /// The event raised after an error querying the server
+ ///
+ public event EventHandler? OnErrorTest;
+
+ internal void ExecuteOnTest(ApiResponse apiResponse)
+ {
+ OnTest?.Invoke(this, new ApiResponseEventArgs(apiResponse));
+ }
+
+ internal void ExecuteOnErrorTest(Exception exception)
+ {
+ OnErrorTest?.Invoke(this, new ExceptionEventArgs(exception));
+ }
}
///
@@ -770,5 +811,120 @@ namespace Org.OpenAPITools.Api
throw;
}
}
+
+ ///
+ /// Processes the server response
+ ///
+ ///
+ private void AfterTestDefaultImplementation(ApiResponse apiResponseLocalVar)
+ {
+ bool suppressDefaultLog = false;
+ AfterTest(ref suppressDefaultLog, apiResponseLocalVar);
+ if (!suppressDefaultLog)
+ Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path);
+ }
+
+ ///
+ /// Processes the server response
+ ///
+ ///
+ ///
+ partial void AfterTest(ref bool suppressDefaultLog, ApiResponse apiResponseLocalVar);
+
+ ///
+ /// Logs exceptions that occur while retrieving the server response
+ ///
+ ///
+ ///
+ ///
+ private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path)
+ {
+ bool suppressDefaultLog = false;
+ OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path);
+ if (!suppressDefaultLog)
+ Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ }
+
+ ///
+ /// A partial method that gives developers a way to provide customized exception handling
+ ///
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Cancellation Token to cancel the request.
+ /// <> where T :
+ public async Task?> TestOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default)
+ {
+ try
+ {
+ return await TestAsync(cancellationToken).ConfigureAwait(false);
+ }
+ catch (Exception)
+ {
+ return null;
+ }
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// <> where T :
+ public async Task> TestAsync(System.Threading.CancellationToken cancellationToken = default)
+ {
+ UriBuilder uriBuilderLocalVar = new UriBuilder();
+
+ try
+ {
+ using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage())
+ {
+ uriBuilderLocalVar.Host = HttpClient.BaseAddress!.Host;
+ uriBuilderLocalVar.Port = HttpClient.BaseAddress.Port;
+ uriBuilderLocalVar.Scheme = HttpClient.BaseAddress.Scheme;
+ uriBuilderLocalVar.Path = ClientUtils.CONTEXT_PATH + "/test";
+
+ httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri;
+
+ string[] acceptLocalVars = new string[] {
+ "application/json"
+ };
+
+ string? acceptLocalVar = ClientUtils.SelectHeaderAccept(acceptLocalVars);
+
+ if (acceptLocalVar != null)
+ httpRequestMessageLocalVar.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue(acceptLocalVar));
+
+ httpRequestMessageLocalVar.Method = HttpMethod.Get;
+
+ DateTime requestedAtLocalVar = DateTime.UtcNow;
+
+ using (HttpResponseMessage httpResponseMessageLocalVar = await HttpClient.SendAsync(httpRequestMessageLocalVar, cancellationToken).ConfigureAwait(false))
+ {
+ string responseContentLocalVar = await httpResponseMessageLocalVar.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ApiResponse apiResponseLocalVar = new ApiResponse(httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, "/test", requestedAtLocalVar, _jsonSerializerOptions);
+
+ AfterTestDefaultImplementation(apiResponseLocalVar);
+
+ Events.ExecuteOnTest(apiResponseLocalVar);
+
+ return apiResponseLocalVar;
+ }
+ }
+ }
+ catch(Exception e)
+ {
+ OnErrorTestDefaultImplementation(e, "/test", uriBuilderLocalVar.Path);
+ Events.ExecuteOnErrorTest(e);
+ throw;
+ }
+ }
}
}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Client/HostConfiguration.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Client/HostConfiguration.cs
index 99692585b59..b8d2968f516 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Client/HostConfiguration.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Client/HostConfiguration.cs
@@ -90,6 +90,7 @@ namespace Org.OpenAPITools.Client
_jsonOptions.Converters.Add(new Model200ResponseJsonConverter());
_jsonOptions.Converters.Add(new ModelClientJsonConverter());
_jsonOptions.Converters.Add(new NameJsonConverter());
+ _jsonOptions.Converters.Add(new NotificationtestGetElementsV1ResponseMPayloadJsonConverter());
_jsonOptions.Converters.Add(new NullableClassJsonConverter());
_jsonOptions.Converters.Add(new NullableGuidClassJsonConverter());
_jsonOptions.Converters.Add(new NullableShapeJsonConverter());
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
new file mode 100644
index 00000000000..0e9be1239fd
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
@@ -0,0 +1,184 @@
+//
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+#nullable enable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// NotificationtestGetElementsV1ResponseMPayload
+ ///
+ public partial class NotificationtestGetElementsV1ResponseMPayload : IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// aObjVariableobject
+ /// pkiNotificationtestID
+ [JsonConstructor]
+ public NotificationtestGetElementsV1ResponseMPayload(List> aObjVariableobject, int pkiNotificationtestID)
+ {
+ AObjVariableobject = aObjVariableobject;
+ PkiNotificationtestID = pkiNotificationtestID;
+ OnCreated();
+ }
+
+ partial void OnCreated();
+
+ ///
+ /// Gets or Sets AObjVariableobject
+ ///
+ [JsonPropertyName("a_objVariableobject")]
+ public List> AObjVariableobject { get; set; }
+
+ ///
+ /// Gets or Sets PkiNotificationtestID
+ ///
+ [JsonPropertyName("pkiNotificationtestID")]
+ public int PkiNotificationtestID { get; set; }
+
+ ///
+ /// Gets or Sets additional properties
+ ///
+ [JsonExtensionData]
+ public Dictionary AdditionalProperties { get; } = new Dictionary();
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
+ sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
+ sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
+ sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+ ///
+ /// A Json converter for type
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadJsonConverter : JsonConverter
+ {
+ ///
+ /// Deserializes json to
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, JsonSerializerOptions jsonSerializerOptions)
+ {
+ int currentDepth = utf8JsonReader.CurrentDepth;
+
+ if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray)
+ throw new JsonException();
+
+ JsonTokenType startingTokenType = utf8JsonReader.TokenType;
+
+ List>? aObjVariableobject = default;
+ int? pkiNotificationtestID = default;
+
+ while (utf8JsonReader.Read())
+ {
+ if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth)
+ break;
+
+ if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth)
+ break;
+
+ if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1)
+ {
+ string? propertyName = utf8JsonReader.GetString();
+ utf8JsonReader.Read();
+
+ switch (propertyName)
+ {
+ case "a_objVariableobject":
+ if (utf8JsonReader.TokenType != JsonTokenType.Null)
+ aObjVariableobject = JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions);
+ break;
+ case "pkiNotificationtestID":
+ if (utf8JsonReader.TokenType != JsonTokenType.Null)
+ pkiNotificationtestID = utf8JsonReader.GetInt32();
+ break;
+ default:
+ break;
+ }
+ }
+ }
+
+ if (aObjVariableobject == null)
+ throw new ArgumentNullException(nameof(aObjVariableobject), "Property is required for class NotificationtestGetElementsV1ResponseMPayload.");
+
+ if (pkiNotificationtestID == null)
+ throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is required for class NotificationtestGetElementsV1ResponseMPayload.");
+
+ return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject, pkiNotificationtestID.Value);
+ }
+
+ ///
+ /// Serializes a
+ ///
+ ///
+ ///
+ ///
+ ///
+ public override void Write(Utf8JsonWriter writer, NotificationtestGetElementsV1ResponseMPayload notificationtestGetElementsV1ResponseMPayload, JsonSerializerOptions jsonSerializerOptions)
+ {
+ writer.WriteStartObject();
+
+ WriteProperties(ref writer, notificationtestGetElementsV1ResponseMPayload, jsonSerializerOptions);
+ writer.WriteEndObject();
+ }
+
+ ///
+ /// Serializes the properties of
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void WriteProperties(ref Utf8JsonWriter writer, NotificationtestGetElementsV1ResponseMPayload notificationtestGetElementsV1ResponseMPayload, JsonSerializerOptions jsonSerializerOptions)
+ {
+ writer.WritePropertyName("a_objVariableobject");
+ JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions);
+ writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID);
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/.openapi-generator/FILES b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/.openapi-generator/FILES
index 5dc99b0dddf..58efa577f21 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/.openapi-generator/FILES
@@ -58,6 +58,7 @@ docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
docs/models/Model200Response.md
docs/models/ModelClient.md
docs/models/Name.md
+docs/models/NotificationtestGetElementsV1ResponseMPayload.md
docs/models/NullableClass.md
docs/models/NullableGuidClass.md
docs/models/NullableShape.md
@@ -182,6 +183,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
+src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/api/openapi.yaml
index 32f67b442f7..a80a80d18e4 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/api/openapi.yaml
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/api/openapi.yaml
@@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
+ /test:
+ get:
+ operationId: Test
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
+ description: Successful response
+ summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
+ Custom-Variableobject-Response:
+ additionalProperties: true
+ description: A Variable object without predefined property names
+ type: object
+ Field-pkiNotificationtestID:
+ type: integer
+ notificationtest-getElements-v1-Response-mPayload:
+ example:
+ a_objVariableobject:
+ - null
+ - null
+ pkiNotificationtestID: 0
+ properties:
+ pkiNotificationtestID:
+ type: integer
+ a_objVariableobject:
+ items:
+ $ref: '#/components/schemas/Custom-Variableobject-Response'
+ type: array
+ required:
+ - a_objVariableobject
+ - pkiNotificationtestID
+ type: object
_foo_get_default_response:
example:
string:
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/docs/apis/DefaultApi.md b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/docs/apis/DefaultApi.md
index e4639d3f928..0bdfd6af347 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/docs/apis/DefaultApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/docs/apis/DefaultApi.md
@@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
+| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements |
# **FooGet**
@@ -342,3 +343,87 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **Test**
+> NotificationtestGetElementsV1ResponseMPayload Test ()
+
+Retrieve an existing Notificationtest's Elements
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class TestExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new DefaultApi(config);
+
+ try
+ {
+ // Retrieve an existing Notificationtest's Elements
+ NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the TestWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Retrieve an existing Notificationtest's Elements
+ ApiResponse response = apiInstance.TestWithHttpInfo();
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+### Return type
+
+[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful response | - |
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/docs/models/NotificationtestGetElementsV1ResponseMPayload.md b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/docs/models/NotificationtestGetElementsV1ResponseMPayload.md
new file mode 100644
index 00000000000..25f223a8360
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/docs/models/NotificationtestGetElementsV1ResponseMPayload.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**AObjVariableobject** | **List<Dictionary<string, Object>>** | |
+**PkiNotificationtestID** | **int** | |
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
new file mode 100644
index 00000000000..dd3b74e3306
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
@@ -0,0 +1,74 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing NotificationtestGetElementsV1ResponseMPayload
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
+ //private NotificationtestGetElementsV1ResponseMPayload instance;
+
+ public NotificationtestGetElementsV1ResponseMPayloadTests()
+ {
+ // TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
+ //instance = new NotificationtestGetElementsV1ResponseMPayload();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [Fact]
+ public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'AObjVariableobject'
+ ///
+ [Fact]
+ public void AObjVariableobjectTest()
+ {
+ // TODO unit test for the property 'AObjVariableobject'
+ }
+
+ ///
+ /// Test the property 'PkiNotificationtestID'
+ ///
+ [Fact]
+ public void PkiNotificationtestIDTest()
+ {
+ // TODO unit test for the property 'PkiNotificationtestID'
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Api/DefaultApi.cs
index be380f20743..ab94b48f6b1 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -118,6 +118,27 @@ namespace Org.OpenAPITools.Api
/// Cancellation Token to cancel the request.
/// Task<ApiResponse>List<List<RolesReportsHash>>>>
Task>>> RolesReportGetOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>>
+ Task> TestAsync(System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Cancellation Token to cancel the request.
+ /// Task<ApiResponse>NotificationtestGetElementsV1ResponseMPayload>>
+ Task> TestOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default);
}
///
@@ -205,6 +226,26 @@ namespace Org.OpenAPITools.Api
{
OnErrorRolesReportGet?.Invoke(this, new ExceptionEventArgs(exception));
}
+
+ ///
+ /// The event raised after the server response
+ ///
+ public event EventHandler> OnTest;
+
+ ///
+ /// The event raised after an error querying the server
+ ///
+ public event EventHandler OnErrorTest;
+
+ internal void ExecuteOnTest(ApiResponse apiResponse)
+ {
+ OnTest?.Invoke(this, new ApiResponseEventArgs(apiResponse));
+ }
+
+ internal void ExecuteOnErrorTest(Exception exception)
+ {
+ OnErrorTest?.Invoke(this, new ExceptionEventArgs(exception));
+ }
}
///
@@ -768,5 +809,120 @@ namespace Org.OpenAPITools.Api
throw;
}
}
+
+ ///
+ /// Processes the server response
+ ///
+ ///
+ private void AfterTestDefaultImplementation(ApiResponse apiResponseLocalVar)
+ {
+ bool suppressDefaultLog = false;
+ AfterTest(ref suppressDefaultLog, apiResponseLocalVar);
+ if (!suppressDefaultLog)
+ Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path);
+ }
+
+ ///
+ /// Processes the server response
+ ///
+ ///
+ ///
+ partial void AfterTest(ref bool suppressDefaultLog, ApiResponse apiResponseLocalVar);
+
+ ///
+ /// Logs exceptions that occur while retrieving the server response
+ ///
+ ///
+ ///
+ ///
+ private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path)
+ {
+ bool suppressDefaultLog = false;
+ OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path);
+ if (!suppressDefaultLog)
+ Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ }
+
+ ///
+ /// A partial method that gives developers a way to provide customized exception handling
+ ///
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Cancellation Token to cancel the request.
+ /// <> where T :
+ public async Task> TestOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default)
+ {
+ try
+ {
+ return await TestAsync(cancellationToken).ConfigureAwait(false);
+ }
+ catch (Exception)
+ {
+ return null;
+ }
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// <> where T :
+ public async Task> TestAsync(System.Threading.CancellationToken cancellationToken = default)
+ {
+ UriBuilder uriBuilderLocalVar = new UriBuilder();
+
+ try
+ {
+ using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage())
+ {
+ uriBuilderLocalVar.Host = HttpClient.BaseAddress.Host;
+ uriBuilderLocalVar.Port = HttpClient.BaseAddress.Port;
+ uriBuilderLocalVar.Scheme = HttpClient.BaseAddress.Scheme;
+ uriBuilderLocalVar.Path = ClientUtils.CONTEXT_PATH + "/test";
+
+ httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri;
+
+ string[] acceptLocalVars = new string[] {
+ "application/json"
+ };
+
+ string acceptLocalVar = ClientUtils.SelectHeaderAccept(acceptLocalVars);
+
+ if (acceptLocalVar != null)
+ httpRequestMessageLocalVar.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue(acceptLocalVar));
+
+ httpRequestMessageLocalVar.Method = HttpMethod.Get;
+
+ DateTime requestedAtLocalVar = DateTime.UtcNow;
+
+ using (HttpResponseMessage httpResponseMessageLocalVar = await HttpClient.SendAsync(httpRequestMessageLocalVar, cancellationToken).ConfigureAwait(false))
+ {
+ string responseContentLocalVar = await httpResponseMessageLocalVar.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ ApiResponse apiResponseLocalVar = new ApiResponse(httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, "/test", requestedAtLocalVar, _jsonSerializerOptions);
+
+ AfterTestDefaultImplementation(apiResponseLocalVar);
+
+ Events.ExecuteOnTest(apiResponseLocalVar);
+
+ return apiResponseLocalVar;
+ }
+ }
+ }
+ catch(Exception e)
+ {
+ OnErrorTestDefaultImplementation(e, "/test", uriBuilderLocalVar.Path);
+ Events.ExecuteOnErrorTest(e);
+ throw;
+ }
+ }
}
}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Client/HostConfiguration.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Client/HostConfiguration.cs
index ac29e520fa4..a19584f57e9 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Client/HostConfiguration.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Client/HostConfiguration.cs
@@ -88,6 +88,7 @@ namespace Org.OpenAPITools.Client
_jsonOptions.Converters.Add(new Model200ResponseJsonConverter());
_jsonOptions.Converters.Add(new ModelClientJsonConverter());
_jsonOptions.Converters.Add(new NameJsonConverter());
+ _jsonOptions.Converters.Add(new NotificationtestGetElementsV1ResponseMPayloadJsonConverter());
_jsonOptions.Converters.Add(new NullableClassJsonConverter());
_jsonOptions.Converters.Add(new NullableGuidClassJsonConverter());
_jsonOptions.Converters.Add(new NullableShapeJsonConverter());
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
new file mode 100644
index 00000000000..f2b34d6f85a
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
@@ -0,0 +1,182 @@
+//
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// NotificationtestGetElementsV1ResponseMPayload
+ ///
+ public partial class NotificationtestGetElementsV1ResponseMPayload : IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// aObjVariableobject
+ /// pkiNotificationtestID
+ [JsonConstructor]
+ public NotificationtestGetElementsV1ResponseMPayload(List> aObjVariableobject, int pkiNotificationtestID)
+ {
+ AObjVariableobject = aObjVariableobject;
+ PkiNotificationtestID = pkiNotificationtestID;
+ OnCreated();
+ }
+
+ partial void OnCreated();
+
+ ///
+ /// Gets or Sets AObjVariableobject
+ ///
+ [JsonPropertyName("a_objVariableobject")]
+ public List> AObjVariableobject { get; set; }
+
+ ///
+ /// Gets or Sets PkiNotificationtestID
+ ///
+ [JsonPropertyName("pkiNotificationtestID")]
+ public int PkiNotificationtestID { get; set; }
+
+ ///
+ /// Gets or Sets additional properties
+ ///
+ [JsonExtensionData]
+ public Dictionary AdditionalProperties { get; } = new Dictionary();
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
+ sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
+ sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
+ sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+ ///
+ /// A Json converter for type
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadJsonConverter : JsonConverter
+ {
+ ///
+ /// Deserializes json to
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, JsonSerializerOptions jsonSerializerOptions)
+ {
+ int currentDepth = utf8JsonReader.CurrentDepth;
+
+ if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray)
+ throw new JsonException();
+
+ JsonTokenType startingTokenType = utf8JsonReader.TokenType;
+
+ List> aObjVariableobject = default;
+ int? pkiNotificationtestID = default;
+
+ while (utf8JsonReader.Read())
+ {
+ if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth)
+ break;
+
+ if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth)
+ break;
+
+ if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1)
+ {
+ string propertyName = utf8JsonReader.GetString();
+ utf8JsonReader.Read();
+
+ switch (propertyName)
+ {
+ case "a_objVariableobject":
+ if (utf8JsonReader.TokenType != JsonTokenType.Null)
+ aObjVariableobject = JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions);
+ break;
+ case "pkiNotificationtestID":
+ if (utf8JsonReader.TokenType != JsonTokenType.Null)
+ pkiNotificationtestID = utf8JsonReader.GetInt32();
+ break;
+ default:
+ break;
+ }
+ }
+ }
+
+ if (aObjVariableobject == null)
+ throw new ArgumentNullException(nameof(aObjVariableobject), "Property is required for class NotificationtestGetElementsV1ResponseMPayload.");
+
+ if (pkiNotificationtestID == null)
+ throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is required for class NotificationtestGetElementsV1ResponseMPayload.");
+
+ return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject, pkiNotificationtestID.Value);
+ }
+
+ ///
+ /// Serializes a
+ ///
+ ///
+ ///
+ ///
+ ///
+ public override void Write(Utf8JsonWriter writer, NotificationtestGetElementsV1ResponseMPayload notificationtestGetElementsV1ResponseMPayload, JsonSerializerOptions jsonSerializerOptions)
+ {
+ writer.WriteStartObject();
+
+ WriteProperties(ref writer, notificationtestGetElementsV1ResponseMPayload, jsonSerializerOptions);
+ writer.WriteEndObject();
+ }
+
+ ///
+ /// Serializes the properties of
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void WriteProperties(ref Utf8JsonWriter writer, NotificationtestGetElementsV1ResponseMPayload notificationtestGetElementsV1ResponseMPayload, JsonSerializerOptions jsonSerializerOptions)
+ {
+ writer.WritePropertyName("a_objVariableobject");
+ JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions);
+ writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID);
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/.openapi-generator/FILES b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/.openapi-generator/FILES
index 5dc99b0dddf..58efa577f21 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/.openapi-generator/FILES
@@ -58,6 +58,7 @@ docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
docs/models/Model200Response.md
docs/models/ModelClient.md
docs/models/Name.md
+docs/models/NotificationtestGetElementsV1ResponseMPayload.md
docs/models/NullableClass.md
docs/models/NullableGuidClass.md
docs/models/NullableShape.md
@@ -182,6 +183,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
+src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/api/openapi.yaml
index 32f67b442f7..a80a80d18e4 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/api/openapi.yaml
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/api/openapi.yaml
@@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
+ /test:
+ get:
+ operationId: Test
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
+ description: Successful response
+ summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
+ Custom-Variableobject-Response:
+ additionalProperties: true
+ description: A Variable object without predefined property names
+ type: object
+ Field-pkiNotificationtestID:
+ type: integer
+ notificationtest-getElements-v1-Response-mPayload:
+ example:
+ a_objVariableobject:
+ - null
+ - null
+ pkiNotificationtestID: 0
+ properties:
+ pkiNotificationtestID:
+ type: integer
+ a_objVariableobject:
+ items:
+ $ref: '#/components/schemas/Custom-Variableobject-Response'
+ type: array
+ required:
+ - a_objVariableobject
+ - pkiNotificationtestID
+ type: object
_foo_get_default_response:
example:
string:
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/docs/apis/DefaultApi.md b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/docs/apis/DefaultApi.md
index e4639d3f928..0bdfd6af347 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/docs/apis/DefaultApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/docs/apis/DefaultApi.md
@@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
+| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements |
# **FooGet**
@@ -342,3 +343,87 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
+# **Test**
+> NotificationtestGetElementsV1ResponseMPayload Test ()
+
+Retrieve an existing Notificationtest's Elements
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class TestExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new DefaultApi(config);
+
+ try
+ {
+ // Retrieve an existing Notificationtest's Elements
+ NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the TestWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Retrieve an existing Notificationtest's Elements
+ ApiResponse response = apiInstance.TestWithHttpInfo();
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+### Return type
+
+[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful response | - |
+
+[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/docs/models/NotificationtestGetElementsV1ResponseMPayload.md b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/docs/models/NotificationtestGetElementsV1ResponseMPayload.md
new file mode 100644
index 00000000000..25f223a8360
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/docs/models/NotificationtestGetElementsV1ResponseMPayload.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**AObjVariableobject** | **List<Dictionary<string, Object>>** | |
+**PkiNotificationtestID** | **int** | |
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
new file mode 100644
index 00000000000..dd3b74e3306
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
@@ -0,0 +1,74 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing NotificationtestGetElementsV1ResponseMPayload
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
+ //private NotificationtestGetElementsV1ResponseMPayload instance;
+
+ public NotificationtestGetElementsV1ResponseMPayloadTests()
+ {
+ // TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
+ //instance = new NotificationtestGetElementsV1ResponseMPayload();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [Fact]
+ public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'AObjVariableobject'
+ ///
+ [Fact]
+ public void AObjVariableobjectTest()
+ {
+ // TODO unit test for the property 'AObjVariableobject'
+ }
+
+ ///
+ /// Test the property 'PkiNotificationtestID'
+ ///
+ [Fact]
+ public void PkiNotificationtestIDTest()
+ {
+ // TODO unit test for the property 'PkiNotificationtestID'
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Api/DefaultApi.cs
index 9257fc61617..8bd35ff71ad 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -118,6 +118,27 @@ namespace Org.OpenAPITools.Api
/// Cancellation Token to cancel the request.
/// Task<ApiResponse>List<List<RolesReportsHash>>>>
Task>>> RolesReportGetOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>>
+ Task> TestAsync(System.Threading.CancellationToken cancellationToken = default);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Cancellation Token to cancel the request.
+ /// Task<ApiResponse>NotificationtestGetElementsV1ResponseMPayload>>
+ Task> TestOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default);
}
///
@@ -205,6 +226,26 @@ namespace Org.OpenAPITools.Api
{
OnErrorRolesReportGet?.Invoke(this, new ExceptionEventArgs(exception));
}
+
+ ///
+ /// The event raised after the server response
+ ///
+ public event EventHandler> OnTest;
+
+ ///
+ /// The event raised after an error querying the server
+ ///
+ public event EventHandler OnErrorTest;
+
+ internal void ExecuteOnTest(ApiResponse apiResponse)
+ {
+ OnTest?.Invoke(this, new ApiResponseEventArgs(apiResponse));
+ }
+
+ internal void ExecuteOnErrorTest(Exception exception)
+ {
+ OnErrorTest?.Invoke(this, new ExceptionEventArgs(exception));
+ }
}
///
@@ -765,5 +806,119 @@ namespace Org.OpenAPITools.Api
throw;
}
}
+
+ ///
+ /// Processes the server response
+ ///
+ ///
+ private void AfterTestDefaultImplementation(ApiResponse apiResponseLocalVar)
+ {
+ bool suppressDefaultLog = false;
+ AfterTest(ref suppressDefaultLog, apiResponseLocalVar);
+ if (!suppressDefaultLog)
+ Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path);
+ }
+
+ ///
+ /// Processes the server response
+ ///
+ ///
+ ///
+ partial void AfterTest(ref bool suppressDefaultLog, ApiResponse apiResponseLocalVar);
+
+ ///
+ /// Logs exceptions that occur while retrieving the server response
+ ///
+ ///
+ ///
+ ///
+ private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path)
+ {
+ bool suppressDefaultLog = false;
+ OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path);
+ if (!suppressDefaultLog)
+ Logger.LogError(exception, "An error occurred while sending the request to the server.");
+ }
+
+ ///
+ /// A partial method that gives developers a way to provide customized exception handling
+ ///
+ ///
+ ///
+ ///
+ ///
+ partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Cancellation Token to cancel the request.
+ /// <> where T :
+ public async Task> TestOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default)
+ {
+ try
+ {
+ return await TestAsync(cancellationToken).ConfigureAwait(false);
+ }
+ catch (Exception)
+ {
+ return null;
+ }
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// <> where T :
+ public async Task> TestAsync(System.Threading.CancellationToken cancellationToken = default)
+ {
+ UriBuilder uriBuilderLocalVar = new UriBuilder();
+
+ try
+ {
+ using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage())
+ {
+ uriBuilderLocalVar.Host = HttpClient.BaseAddress.Host;
+ uriBuilderLocalVar.Port = HttpClient.BaseAddress.Port;
+ uriBuilderLocalVar.Scheme = HttpClient.BaseAddress.Scheme;
+ uriBuilderLocalVar.Path = ClientUtils.CONTEXT_PATH + "/test";
+
+ httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri;
+
+ string[] acceptLocalVars = new string[] {
+ "application/json"
+ };
+
+ string acceptLocalVar = ClientUtils.SelectHeaderAccept(acceptLocalVars);
+
+ if (acceptLocalVar != null)
+ httpRequestMessageLocalVar.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue(acceptLocalVar));
+ httpRequestMessageLocalVar.Method = new HttpMethod("GET");
+
+ DateTime requestedAtLocalVar = DateTime.UtcNow;
+
+ using (HttpResponseMessage httpResponseMessageLocalVar = await HttpClient.SendAsync(httpRequestMessageLocalVar, cancellationToken).ConfigureAwait(false))
+ {
+ string responseContentLocalVar = await httpResponseMessageLocalVar.Content.ReadAsStringAsync().ConfigureAwait(false);
+
+ ApiResponse apiResponseLocalVar = new ApiResponse(httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, "/test", requestedAtLocalVar, _jsonSerializerOptions);
+
+ AfterTestDefaultImplementation(apiResponseLocalVar);
+
+ Events.ExecuteOnTest(apiResponseLocalVar);
+
+ return apiResponseLocalVar;
+ }
+ }
+ }
+ catch(Exception e)
+ {
+ OnErrorTestDefaultImplementation(e, "/test", uriBuilderLocalVar.Path);
+ Events.ExecuteOnErrorTest(e);
+ throw;
+ }
+ }
}
}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Client/HostConfiguration.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Client/HostConfiguration.cs
index ac29e520fa4..a19584f57e9 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Client/HostConfiguration.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Client/HostConfiguration.cs
@@ -88,6 +88,7 @@ namespace Org.OpenAPITools.Client
_jsonOptions.Converters.Add(new Model200ResponseJsonConverter());
_jsonOptions.Converters.Add(new ModelClientJsonConverter());
_jsonOptions.Converters.Add(new NameJsonConverter());
+ _jsonOptions.Converters.Add(new NotificationtestGetElementsV1ResponseMPayloadJsonConverter());
_jsonOptions.Converters.Add(new NullableClassJsonConverter());
_jsonOptions.Converters.Add(new NullableGuidClassJsonConverter());
_jsonOptions.Converters.Add(new NullableShapeJsonConverter());
diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
new file mode 100644
index 00000000000..f2b34d6f85a
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
@@ -0,0 +1,182 @@
+//
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// NotificationtestGetElementsV1ResponseMPayload
+ ///
+ public partial class NotificationtestGetElementsV1ResponseMPayload : IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// aObjVariableobject
+ /// pkiNotificationtestID
+ [JsonConstructor]
+ public NotificationtestGetElementsV1ResponseMPayload(List> aObjVariableobject, int pkiNotificationtestID)
+ {
+ AObjVariableobject = aObjVariableobject;
+ PkiNotificationtestID = pkiNotificationtestID;
+ OnCreated();
+ }
+
+ partial void OnCreated();
+
+ ///
+ /// Gets or Sets AObjVariableobject
+ ///
+ [JsonPropertyName("a_objVariableobject")]
+ public List> AObjVariableobject { get; set; }
+
+ ///
+ /// Gets or Sets PkiNotificationtestID
+ ///
+ [JsonPropertyName("pkiNotificationtestID")]
+ public int PkiNotificationtestID { get; set; }
+
+ ///
+ /// Gets or Sets additional properties
+ ///
+ [JsonExtensionData]
+ public Dictionary AdditionalProperties { get; } = new Dictionary();
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
+ sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
+ sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
+ sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+ ///
+ /// A Json converter for type
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadJsonConverter : JsonConverter
+ {
+ ///
+ /// Deserializes json to
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, JsonSerializerOptions jsonSerializerOptions)
+ {
+ int currentDepth = utf8JsonReader.CurrentDepth;
+
+ if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray)
+ throw new JsonException();
+
+ JsonTokenType startingTokenType = utf8JsonReader.TokenType;
+
+ List> aObjVariableobject = default;
+ int? pkiNotificationtestID = default;
+
+ while (utf8JsonReader.Read())
+ {
+ if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth)
+ break;
+
+ if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth)
+ break;
+
+ if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1)
+ {
+ string propertyName = utf8JsonReader.GetString();
+ utf8JsonReader.Read();
+
+ switch (propertyName)
+ {
+ case "a_objVariableobject":
+ if (utf8JsonReader.TokenType != JsonTokenType.Null)
+ aObjVariableobject = JsonSerializer.Deserialize>>(ref utf8JsonReader, jsonSerializerOptions);
+ break;
+ case "pkiNotificationtestID":
+ if (utf8JsonReader.TokenType != JsonTokenType.Null)
+ pkiNotificationtestID = utf8JsonReader.GetInt32();
+ break;
+ default:
+ break;
+ }
+ }
+ }
+
+ if (aObjVariableobject == null)
+ throw new ArgumentNullException(nameof(aObjVariableobject), "Property is required for class NotificationtestGetElementsV1ResponseMPayload.");
+
+ if (pkiNotificationtestID == null)
+ throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is required for class NotificationtestGetElementsV1ResponseMPayload.");
+
+ return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject, pkiNotificationtestID.Value);
+ }
+
+ ///
+ /// Serializes a
+ ///
+ ///
+ ///
+ ///
+ ///
+ public override void Write(Utf8JsonWriter writer, NotificationtestGetElementsV1ResponseMPayload notificationtestGetElementsV1ResponseMPayload, JsonSerializerOptions jsonSerializerOptions)
+ {
+ writer.WriteStartObject();
+
+ WriteProperties(ref writer, notificationtestGetElementsV1ResponseMPayload, jsonSerializerOptions);
+ writer.WriteEndObject();
+ }
+
+ ///
+ /// Serializes the properties of
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void WriteProperties(ref Utf8JsonWriter writer, NotificationtestGetElementsV1ResponseMPayload notificationtestGetElementsV1ResponseMPayload, JsonSerializerOptions jsonSerializerOptions)
+ {
+ writer.WritePropertyName("a_objVariableobject");
+ JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions);
+ writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID);
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-httpclient/.openapi-generator/FILES b/samples/client/petstore/csharp/OpenAPIClient-httpclient/.openapi-generator/FILES
index 35c28731341..eb9c8686b0c 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-httpclient/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp/OpenAPIClient-httpclient/.openapi-generator/FILES
@@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
+docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@@ -171,6 +172,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
+src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs
diff --git a/samples/client/petstore/csharp/OpenAPIClient-httpclient/README.md b/samples/client/petstore/csharp/OpenAPIClient-httpclient/README.md
index e2bcf9ed1d6..10195a6a819 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-httpclient/README.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-httpclient/README.md
@@ -133,6 +133,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
+*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@@ -223,6 +224,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
+ - [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClient-httpclient/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-httpclient/api/openapi.yaml
index 32f67b442f7..a80a80d18e4 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-httpclient/api/openapi.yaml
+++ b/samples/client/petstore/csharp/OpenAPIClient-httpclient/api/openapi.yaml
@@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
+ /test:
+ get:
+ operationId: Test
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
+ description: Successful response
+ summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
+ Custom-Variableobject-Response:
+ additionalProperties: true
+ description: A Variable object without predefined property names
+ type: object
+ Field-pkiNotificationtestID:
+ type: integer
+ notificationtest-getElements-v1-Response-mPayload:
+ example:
+ a_objVariableobject:
+ - null
+ - null
+ pkiNotificationtestID: 0
+ properties:
+ pkiNotificationtestID:
+ type: integer
+ a_objVariableobject:
+ items:
+ $ref: '#/components/schemas/Custom-Variableobject-Response'
+ type: array
+ required:
+ - a_objVariableobject
+ - pkiNotificationtestID
+ type: object
_foo_get_default_response:
example:
string:
diff --git a/samples/client/petstore/csharp/OpenAPIClient-httpclient/docs/DefaultApi.md b/samples/client/petstore/csharp/OpenAPIClient-httpclient/docs/DefaultApi.md
index 15d141b82f2..13db7cec8ee 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-httpclient/docs/DefaultApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-httpclient/docs/DefaultApi.md
@@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
+| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements |
# **FooGet**
@@ -358,3 +359,91 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **Test**
+> NotificationtestGetElementsV1ResponseMPayload Test ()
+
+Retrieve an existing Notificationtest's Elements
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Net.Http;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class TestExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
+ HttpClient httpClient = new HttpClient();
+ HttpClientHandler httpClientHandler = new HttpClientHandler();
+ var apiInstance = new DefaultApi(httpClient, config, httpClientHandler);
+
+ try
+ {
+ // Retrieve an existing Notificationtest's Elements
+ NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the TestWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Retrieve an existing Notificationtest's Elements
+ ApiResponse response = apiInstance.TestWithHttpInfo();
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+### Return type
+
+[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful response | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-httpclient/docs/NotificationtestGetElementsV1ResponseMPayload.md b/samples/client/petstore/csharp/OpenAPIClient-httpclient/docs/NotificationtestGetElementsV1ResponseMPayload.md
new file mode 100644
index 00000000000..e6e3d9fdb0b
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-httpclient/docs/NotificationtestGetElementsV1ResponseMPayload.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PkiNotificationtestID** | **int** | |
+**AObjVariableobject** | **List<Dictionary<string, Object>>** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs b/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
new file mode 100644
index 00000000000..14e41c5e4d6
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
@@ -0,0 +1,75 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing NotificationtestGetElementsV1ResponseMPayload
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
+ //private NotificationtestGetElementsV1ResponseMPayload instance;
+
+ public NotificationtestGetElementsV1ResponseMPayloadTests()
+ {
+ // TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
+ //instance = new NotificationtestGetElementsV1ResponseMPayload();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [Fact]
+ public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'PkiNotificationtestID'
+ ///
+ [Fact]
+ public void PkiNotificationtestIDTest()
+ {
+ // TODO unit test for the property 'PkiNotificationtestID'
+ }
+
+ ///
+ /// Test the property 'AObjVariableobject'
+ ///
+ [Fact]
+ public void AObjVariableobjectTest()
+ {
+ // TODO unit test for the property 'AObjVariableobject'
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/DefaultApi.cs
index b9123e6f80a..b7a030d45d3 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -96,6 +96,22 @@ namespace Org.OpenAPITools.Api
/// Thrown when fails to make API call
/// ApiResponse of List<List<RolesReportsHash>>
ApiResponse>> RolesReportGetWithHttpInfo();
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// NotificationtestGetElementsV1ResponseMPayload
+ NotificationtestGetElementsV1ResponseMPayload Test();
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ ApiResponse TestWithHttpInfo();
#endregion Synchronous Operations
}
@@ -191,6 +207,27 @@ namespace Org.OpenAPITools.Api
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<List<RolesReportsHash>>)
System.Threading.Tasks.Task>>> RolesReportGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ System.Threading.Tasks.Task TestAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ System.Threading.Tasks.Task> TestWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@@ -820,5 +857,106 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// NotificationtestGetElementsV1ResponseMPayload
+ public NotificationtestGetElementsV1ResponseMPayload Test()
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = TestWithHttpInfo();
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ public Org.OpenAPITools.Client.ApiResponse TestWithHttpInfo()
+ {
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+
+
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Get("/test", localVarRequestOptions, this.Configuration);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null) throw _exception;
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ public async System.Threading.Tasks.Task TestAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ public async System.Threading.Tasks.Task> TestWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+
+
+
+ // make the HTTP request
+
+ var localVarResponse = await this.AsynchronousClient.GetAsync("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null) throw _exception;
+ }
+
+ return localVarResponse;
+ }
+
}
}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
new file mode 100644
index 00000000000..8cd4fc939ad
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
@@ -0,0 +1,156 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using FileParameter = Org.OpenAPITools.Client.FileParameter;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
+ public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected NotificationtestGetElementsV1ResponseMPayload()
+ {
+ this.AdditionalProperties = new Dictionary();
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// pkiNotificationtestID (required).
+ /// aObjVariableobject (required).
+ public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List> aObjVariableobject = default(List>))
+ {
+ this.PkiNotificationtestID = pkiNotificationtestID;
+ // to ensure "aObjVariableobject" is required (not null)
+ if (aObjVariableobject == null)
+ {
+ throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
+ }
+ this.AObjVariableobject = aObjVariableobject;
+ this.AdditionalProperties = new Dictionary();
+ }
+
+ ///
+ /// Gets or Sets PkiNotificationtestID
+ ///
+ [DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
+ public int PkiNotificationtestID { get; set; }
+
+ ///
+ /// Gets or Sets AObjVariableobject
+ ///
+ [DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
+ public List> AObjVariableobject { get; set; }
+
+ ///
+ /// Gets or Sets additional properties
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalProperties { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
+ sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
+ sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
+ sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
+ }
+
+ ///
+ /// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
+ ///
+ /// Instance of NotificationtestGetElementsV1ResponseMPayload to be compared
+ /// Boolean
+ public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
+ if (this.AObjVariableobject != null)
+ {
+ hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
+ }
+ if (this.AdditionalProperties != null)
+ {
+ hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net47/.openapi-generator/FILES b/samples/client/petstore/csharp/OpenAPIClient-net47/.openapi-generator/FILES
index 12fc06c2c31..9c3b84181d0 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net47/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp/OpenAPIClient-net47/.openapi-generator/FILES
@@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
+docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@@ -174,6 +175,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
+src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net47/README.md b/samples/client/petstore/csharp/OpenAPIClient-net47/README.md
index 10c43e4e1a1..850a2f42834 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net47/README.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-net47/README.md
@@ -120,6 +120,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
+*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@@ -210,6 +211,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
+ - [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net47/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-net47/api/openapi.yaml
index 32f67b442f7..a80a80d18e4 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net47/api/openapi.yaml
+++ b/samples/client/petstore/csharp/OpenAPIClient-net47/api/openapi.yaml
@@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
+ /test:
+ get:
+ operationId: Test
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
+ description: Successful response
+ summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
+ Custom-Variableobject-Response:
+ additionalProperties: true
+ description: A Variable object without predefined property names
+ type: object
+ Field-pkiNotificationtestID:
+ type: integer
+ notificationtest-getElements-v1-Response-mPayload:
+ example:
+ a_objVariableobject:
+ - null
+ - null
+ pkiNotificationtestID: 0
+ properties:
+ pkiNotificationtestID:
+ type: integer
+ a_objVariableobject:
+ items:
+ $ref: '#/components/schemas/Custom-Variableobject-Response'
+ type: array
+ required:
+ - a_objVariableobject
+ - pkiNotificationtestID
+ type: object
_foo_get_default_response:
example:
string:
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net47/docs/DefaultApi.md b/samples/client/petstore/csharp/OpenAPIClient-net47/docs/DefaultApi.md
index 0b75771ecbc..d9d4abc6ebb 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net47/docs/DefaultApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-net47/docs/DefaultApi.md
@@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
+| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements |
# **FooGet**
@@ -342,3 +343,87 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **Test**
+> NotificationtestGetElementsV1ResponseMPayload Test ()
+
+Retrieve an existing Notificationtest's Elements
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class TestExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new DefaultApi(config);
+
+ try
+ {
+ // Retrieve an existing Notificationtest's Elements
+ NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the TestWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Retrieve an existing Notificationtest's Elements
+ ApiResponse response = apiInstance.TestWithHttpInfo();
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+### Return type
+
+[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful response | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net47/docs/NotificationtestGetElementsV1ResponseMPayload.md b/samples/client/petstore/csharp/OpenAPIClient-net47/docs/NotificationtestGetElementsV1ResponseMPayload.md
new file mode 100644
index 00000000000..e6e3d9fdb0b
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-net47/docs/NotificationtestGetElementsV1ResponseMPayload.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PkiNotificationtestID** | **int** | |
+**AObjVariableobject** | **List<Dictionary<string, Object>>** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs b/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
new file mode 100644
index 00000000000..14e41c5e4d6
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
@@ -0,0 +1,75 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing NotificationtestGetElementsV1ResponseMPayload
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
+ //private NotificationtestGetElementsV1ResponseMPayload instance;
+
+ public NotificationtestGetElementsV1ResponseMPayloadTests()
+ {
+ // TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
+ //instance = new NotificationtestGetElementsV1ResponseMPayload();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [Fact]
+ public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'PkiNotificationtestID'
+ ///
+ [Fact]
+ public void PkiNotificationtestIDTest()
+ {
+ // TODO unit test for the property 'PkiNotificationtestID'
+ }
+
+ ///
+ /// Test the property 'AObjVariableobject'
+ ///
+ [Fact]
+ public void AObjVariableobjectTest()
+ {
+ // TODO unit test for the property 'AObjVariableobject'
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools/Api/DefaultApi.cs
index ad8969b7bf7..354f9eb6d9f 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -104,6 +104,24 @@ namespace Org.OpenAPITools.Api
/// Index associated with the operation.
/// ApiResponse of List<List<RolesReportsHash>>
ApiResponse>> RolesReportGetWithHttpInfo(int operationIndex = 0);
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// NotificationtestGetElementsV1ResponseMPayload
+ NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ ApiResponse TestWithHttpInfo(int operationIndex = 0);
#endregion Synchronous Operations
}
@@ -207,6 +225,29 @@ namespace Org.OpenAPITools.Api
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<List<RolesReportsHash>>)
System.Threading.Tasks.Task>>> RolesReportGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ System.Threading.Tasks.Task TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ System.Threading.Tasks.Task> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@@ -847,5 +888,131 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// NotificationtestGetElementsV1ResponseMPayload
+ public NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0)
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = TestWithHttpInfo();
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ public Org.OpenAPITools.Client.ApiResponse TestWithHttpInfo(int operationIndex = 0)
+ {
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+
+ localVarRequestOptions.Operation = "DefaultApi.Test";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Get("/test", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ public async System.Threading.Tasks.Task TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ public async System.Threading.Tasks.Task> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+
+ localVarRequestOptions.Operation = "DefaultApi.Test";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+
+ // make the HTTP request
+ var localVarResponse = await this.AsynchronousClient.GetAsync("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
}
}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
new file mode 100644
index 00000000000..b2573f9bb53
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
@@ -0,0 +1,155 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
+ public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected NotificationtestGetElementsV1ResponseMPayload()
+ {
+ this.AdditionalProperties = new Dictionary();
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// pkiNotificationtestID (required).
+ /// aObjVariableobject (required).
+ public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List> aObjVariableobject = default(List>))
+ {
+ this.PkiNotificationtestID = pkiNotificationtestID;
+ // to ensure "aObjVariableobject" is required (not null)
+ if (aObjVariableobject == null)
+ {
+ throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
+ }
+ this.AObjVariableobject = aObjVariableobject;
+ this.AdditionalProperties = new Dictionary();
+ }
+
+ ///
+ /// Gets or Sets PkiNotificationtestID
+ ///
+ [DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
+ public int PkiNotificationtestID { get; set; }
+
+ ///
+ /// Gets or Sets AObjVariableobject
+ ///
+ [DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
+ public List> AObjVariableobject { get; set; }
+
+ ///
+ /// Gets or Sets additional properties
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalProperties { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
+ sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
+ sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
+ sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
+ }
+
+ ///
+ /// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
+ ///
+ /// Instance of NotificationtestGetElementsV1ResponseMPayload to be compared
+ /// Boolean
+ public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
+ if (this.AObjVariableobject != null)
+ {
+ hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
+ }
+ if (this.AdditionalProperties != null)
+ {
+ hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net48/.openapi-generator/FILES b/samples/client/petstore/csharp/OpenAPIClient-net48/.openapi-generator/FILES
index 12fc06c2c31..9c3b84181d0 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net48/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp/OpenAPIClient-net48/.openapi-generator/FILES
@@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
+docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@@ -174,6 +175,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
+src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net48/README.md b/samples/client/petstore/csharp/OpenAPIClient-net48/README.md
index 10c43e4e1a1..850a2f42834 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net48/README.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-net48/README.md
@@ -120,6 +120,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
+*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@@ -210,6 +211,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
+ - [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net48/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-net48/api/openapi.yaml
index 32f67b442f7..a80a80d18e4 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net48/api/openapi.yaml
+++ b/samples/client/petstore/csharp/OpenAPIClient-net48/api/openapi.yaml
@@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
+ /test:
+ get:
+ operationId: Test
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
+ description: Successful response
+ summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
+ Custom-Variableobject-Response:
+ additionalProperties: true
+ description: A Variable object without predefined property names
+ type: object
+ Field-pkiNotificationtestID:
+ type: integer
+ notificationtest-getElements-v1-Response-mPayload:
+ example:
+ a_objVariableobject:
+ - null
+ - null
+ pkiNotificationtestID: 0
+ properties:
+ pkiNotificationtestID:
+ type: integer
+ a_objVariableobject:
+ items:
+ $ref: '#/components/schemas/Custom-Variableobject-Response'
+ type: array
+ required:
+ - a_objVariableobject
+ - pkiNotificationtestID
+ type: object
_foo_get_default_response:
example:
string:
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net48/docs/DefaultApi.md b/samples/client/petstore/csharp/OpenAPIClient-net48/docs/DefaultApi.md
index 0b75771ecbc..d9d4abc6ebb 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net48/docs/DefaultApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-net48/docs/DefaultApi.md
@@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
+| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements |
# **FooGet**
@@ -342,3 +343,87 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **Test**
+> NotificationtestGetElementsV1ResponseMPayload Test ()
+
+Retrieve an existing Notificationtest's Elements
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class TestExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new DefaultApi(config);
+
+ try
+ {
+ // Retrieve an existing Notificationtest's Elements
+ NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the TestWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Retrieve an existing Notificationtest's Elements
+ ApiResponse response = apiInstance.TestWithHttpInfo();
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+### Return type
+
+[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful response | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net48/docs/NotificationtestGetElementsV1ResponseMPayload.md b/samples/client/petstore/csharp/OpenAPIClient-net48/docs/NotificationtestGetElementsV1ResponseMPayload.md
new file mode 100644
index 00000000000..e6e3d9fdb0b
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-net48/docs/NotificationtestGetElementsV1ResponseMPayload.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PkiNotificationtestID** | **int** | |
+**AObjVariableobject** | **List<Dictionary<string, Object>>** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs b/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
new file mode 100644
index 00000000000..14e41c5e4d6
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
@@ -0,0 +1,75 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing NotificationtestGetElementsV1ResponseMPayload
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
+ //private NotificationtestGetElementsV1ResponseMPayload instance;
+
+ public NotificationtestGetElementsV1ResponseMPayloadTests()
+ {
+ // TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
+ //instance = new NotificationtestGetElementsV1ResponseMPayload();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [Fact]
+ public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'PkiNotificationtestID'
+ ///
+ [Fact]
+ public void PkiNotificationtestIDTest()
+ {
+ // TODO unit test for the property 'PkiNotificationtestID'
+ }
+
+ ///
+ /// Test the property 'AObjVariableobject'
+ ///
+ [Fact]
+ public void AObjVariableobjectTest()
+ {
+ // TODO unit test for the property 'AObjVariableobject'
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools/Api/DefaultApi.cs
index ad8969b7bf7..354f9eb6d9f 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -104,6 +104,24 @@ namespace Org.OpenAPITools.Api
/// Index associated with the operation.
/// ApiResponse of List<List<RolesReportsHash>>
ApiResponse>> RolesReportGetWithHttpInfo(int operationIndex = 0);
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// NotificationtestGetElementsV1ResponseMPayload
+ NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ ApiResponse TestWithHttpInfo(int operationIndex = 0);
#endregion Synchronous Operations
}
@@ -207,6 +225,29 @@ namespace Org.OpenAPITools.Api
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<List<RolesReportsHash>>)
System.Threading.Tasks.Task>>> RolesReportGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ System.Threading.Tasks.Task TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ System.Threading.Tasks.Task> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@@ -847,5 +888,131 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// NotificationtestGetElementsV1ResponseMPayload
+ public NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0)
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = TestWithHttpInfo();
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ public Org.OpenAPITools.Client.ApiResponse TestWithHttpInfo(int operationIndex = 0)
+ {
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+
+ localVarRequestOptions.Operation = "DefaultApi.Test";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Get("/test", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ public async System.Threading.Tasks.Task TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ public async System.Threading.Tasks.Task> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+
+ localVarRequestOptions.Operation = "DefaultApi.Test";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+
+ // make the HTTP request
+ var localVarResponse = await this.AsynchronousClient.GetAsync("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
}
}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
new file mode 100644
index 00000000000..b2573f9bb53
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
@@ -0,0 +1,155 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
+ public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected NotificationtestGetElementsV1ResponseMPayload()
+ {
+ this.AdditionalProperties = new Dictionary();
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// pkiNotificationtestID (required).
+ /// aObjVariableobject (required).
+ public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List> aObjVariableobject = default(List>))
+ {
+ this.PkiNotificationtestID = pkiNotificationtestID;
+ // to ensure "aObjVariableobject" is required (not null)
+ if (aObjVariableobject == null)
+ {
+ throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
+ }
+ this.AObjVariableobject = aObjVariableobject;
+ this.AdditionalProperties = new Dictionary();
+ }
+
+ ///
+ /// Gets or Sets PkiNotificationtestID
+ ///
+ [DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
+ public int PkiNotificationtestID { get; set; }
+
+ ///
+ /// Gets or Sets AObjVariableobject
+ ///
+ [DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
+ public List> AObjVariableobject { get; set; }
+
+ ///
+ /// Gets or Sets additional properties
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalProperties { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
+ sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
+ sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
+ sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
+ }
+
+ ///
+ /// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
+ ///
+ /// Instance of NotificationtestGetElementsV1ResponseMPayload to be compared
+ /// Boolean
+ public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
+ if (this.AObjVariableobject != null)
+ {
+ hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
+ }
+ if (this.AdditionalProperties != null)
+ {
+ hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net5.0/.openapi-generator/FILES b/samples/client/petstore/csharp/OpenAPIClient-net5.0/.openapi-generator/FILES
index 12fc06c2c31..9c3b84181d0 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net5.0/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp/OpenAPIClient-net5.0/.openapi-generator/FILES
@@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
+docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@@ -174,6 +175,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
+src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net5.0/README.md b/samples/client/petstore/csharp/OpenAPIClient-net5.0/README.md
index 10c43e4e1a1..850a2f42834 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net5.0/README.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-net5.0/README.md
@@ -120,6 +120,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
+*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@@ -210,6 +211,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
+ - [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net5.0/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-net5.0/api/openapi.yaml
index 32f67b442f7..a80a80d18e4 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net5.0/api/openapi.yaml
+++ b/samples/client/petstore/csharp/OpenAPIClient-net5.0/api/openapi.yaml
@@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
+ /test:
+ get:
+ operationId: Test
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
+ description: Successful response
+ summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
+ Custom-Variableobject-Response:
+ additionalProperties: true
+ description: A Variable object without predefined property names
+ type: object
+ Field-pkiNotificationtestID:
+ type: integer
+ notificationtest-getElements-v1-Response-mPayload:
+ example:
+ a_objVariableobject:
+ - null
+ - null
+ pkiNotificationtestID: 0
+ properties:
+ pkiNotificationtestID:
+ type: integer
+ a_objVariableobject:
+ items:
+ $ref: '#/components/schemas/Custom-Variableobject-Response'
+ type: array
+ required:
+ - a_objVariableobject
+ - pkiNotificationtestID
+ type: object
_foo_get_default_response:
example:
string:
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net5.0/docs/DefaultApi.md b/samples/client/petstore/csharp/OpenAPIClient-net5.0/docs/DefaultApi.md
index 0b75771ecbc..d9d4abc6ebb 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net5.0/docs/DefaultApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-net5.0/docs/DefaultApi.md
@@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
+| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements |
# **FooGet**
@@ -342,3 +343,87 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **Test**
+> NotificationtestGetElementsV1ResponseMPayload Test ()
+
+Retrieve an existing Notificationtest's Elements
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class TestExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new DefaultApi(config);
+
+ try
+ {
+ // Retrieve an existing Notificationtest's Elements
+ NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the TestWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Retrieve an existing Notificationtest's Elements
+ ApiResponse response = apiInstance.TestWithHttpInfo();
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+### Return type
+
+[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful response | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net5.0/docs/NotificationtestGetElementsV1ResponseMPayload.md b/samples/client/petstore/csharp/OpenAPIClient-net5.0/docs/NotificationtestGetElementsV1ResponseMPayload.md
new file mode 100644
index 00000000000..e6e3d9fdb0b
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-net5.0/docs/NotificationtestGetElementsV1ResponseMPayload.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PkiNotificationtestID** | **int** | |
+**AObjVariableobject** | **List<Dictionary<string, Object>>** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs b/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
new file mode 100644
index 00000000000..14e41c5e4d6
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
@@ -0,0 +1,75 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing NotificationtestGetElementsV1ResponseMPayload
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
+ //private NotificationtestGetElementsV1ResponseMPayload instance;
+
+ public NotificationtestGetElementsV1ResponseMPayloadTests()
+ {
+ // TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
+ //instance = new NotificationtestGetElementsV1ResponseMPayload();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [Fact]
+ public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'PkiNotificationtestID'
+ ///
+ [Fact]
+ public void PkiNotificationtestIDTest()
+ {
+ // TODO unit test for the property 'PkiNotificationtestID'
+ }
+
+ ///
+ /// Test the property 'AObjVariableobject'
+ ///
+ [Fact]
+ public void AObjVariableobjectTest()
+ {
+ // TODO unit test for the property 'AObjVariableobject'
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs
index ad8969b7bf7..354f9eb6d9f 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -104,6 +104,24 @@ namespace Org.OpenAPITools.Api
/// Index associated with the operation.
/// ApiResponse of List<List<RolesReportsHash>>
ApiResponse>> RolesReportGetWithHttpInfo(int operationIndex = 0);
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// NotificationtestGetElementsV1ResponseMPayload
+ NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ ApiResponse TestWithHttpInfo(int operationIndex = 0);
#endregion Synchronous Operations
}
@@ -207,6 +225,29 @@ namespace Org.OpenAPITools.Api
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<List<RolesReportsHash>>)
System.Threading.Tasks.Task>>> RolesReportGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ System.Threading.Tasks.Task TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ System.Threading.Tasks.Task> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@@ -847,5 +888,131 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// NotificationtestGetElementsV1ResponseMPayload
+ public NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0)
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = TestWithHttpInfo();
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ public Org.OpenAPITools.Client.ApiResponse TestWithHttpInfo(int operationIndex = 0)
+ {
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+
+ localVarRequestOptions.Operation = "DefaultApi.Test";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Get("/test", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ public async System.Threading.Tasks.Task TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ public async System.Threading.Tasks.Task> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+
+ localVarRequestOptions.Operation = "DefaultApi.Test";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+
+ // make the HTTP request
+ var localVarResponse = await this.AsynchronousClient.GetAsync("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
}
}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
new file mode 100644
index 00000000000..b2573f9bb53
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
@@ -0,0 +1,155 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
+ public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected NotificationtestGetElementsV1ResponseMPayload()
+ {
+ this.AdditionalProperties = new Dictionary();
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// pkiNotificationtestID (required).
+ /// aObjVariableobject (required).
+ public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List> aObjVariableobject = default(List>))
+ {
+ this.PkiNotificationtestID = pkiNotificationtestID;
+ // to ensure "aObjVariableobject" is required (not null)
+ if (aObjVariableobject == null)
+ {
+ throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
+ }
+ this.AObjVariableobject = aObjVariableobject;
+ this.AdditionalProperties = new Dictionary();
+ }
+
+ ///
+ /// Gets or Sets PkiNotificationtestID
+ ///
+ [DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
+ public int PkiNotificationtestID { get; set; }
+
+ ///
+ /// Gets or Sets AObjVariableobject
+ ///
+ [DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
+ public List> AObjVariableobject { get; set; }
+
+ ///
+ /// Gets or Sets additional properties
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalProperties { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
+ sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
+ sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
+ sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
+ }
+
+ ///
+ /// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
+ ///
+ /// Instance of NotificationtestGetElementsV1ResponseMPayload to be compared
+ /// Boolean
+ public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
+ if (this.AObjVariableobject != null)
+ {
+ hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
+ }
+ if (this.AdditionalProperties != null)
+ {
+ hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/.openapi-generator/FILES b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/.openapi-generator/FILES
index 17b920f10cc..bb92c223d0c 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/.openapi-generator/FILES
@@ -53,6 +53,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
+docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@@ -170,6 +171,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
+src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs
diff --git a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/README.md b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/README.md
index 65098aac0b2..41270de3277 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/README.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/README.md
@@ -94,6 +94,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report |
+*DefaultApi* | [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@@ -184,6 +185,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](Model200Response.md)
- [Model.ModelClient](ModelClient.md)
- [Model.Name](Name.md)
+ - [Model.NotificationtestGetElementsV1ResponseMPayload](NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](NullableClass.md)
- [Model.NullableGuidClass](NullableGuidClass.md)
- [Model.NullableShape](NullableShape.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/api/openapi.yaml
index 32f67b442f7..a80a80d18e4 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/api/openapi.yaml
+++ b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/api/openapi.yaml
@@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
+ /test:
+ get:
+ operationId: Test
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
+ description: Successful response
+ summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
+ Custom-Variableobject-Response:
+ additionalProperties: true
+ description: A Variable object without predefined property names
+ type: object
+ Field-pkiNotificationtestID:
+ type: integer
+ notificationtest-getElements-v1-Response-mPayload:
+ example:
+ a_objVariableobject:
+ - null
+ - null
+ pkiNotificationtestID: 0
+ properties:
+ pkiNotificationtestID:
+ type: integer
+ a_objVariableobject:
+ items:
+ $ref: '#/components/schemas/Custom-Variableobject-Response'
+ type: array
+ required:
+ - a_objVariableobject
+ - pkiNotificationtestID
+ type: object
_foo_get_default_response:
example:
string:
diff --git a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/docs/DefaultApi.md b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/docs/DefaultApi.md
index 0b75771ecbc..d9d4abc6ebb 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/docs/DefaultApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/docs/DefaultApi.md
@@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
+| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements |
# **FooGet**
@@ -342,3 +343,87 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **Test**
+> NotificationtestGetElementsV1ResponseMPayload Test ()
+
+Retrieve an existing Notificationtest's Elements
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class TestExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new DefaultApi(config);
+
+ try
+ {
+ // Retrieve an existing Notificationtest's Elements
+ NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the TestWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Retrieve an existing Notificationtest's Elements
+ ApiResponse response = apiInstance.TestWithHttpInfo();
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+### Return type
+
+[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful response | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/docs/NotificationtestGetElementsV1ResponseMPayload.md b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/docs/NotificationtestGetElementsV1ResponseMPayload.md
new file mode 100644
index 00000000000..e6e3d9fdb0b
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/docs/NotificationtestGetElementsV1ResponseMPayload.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PkiNotificationtestID** | **int** | |
+**AObjVariableobject** | **List<Dictionary<string, Object>>** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
new file mode 100644
index 00000000000..d8d2fdd6692
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
@@ -0,0 +1,74 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+using NUnit.Framework;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing NotificationtestGetElementsV1ResponseMPayload
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
+ //private NotificationtestGetElementsV1ResponseMPayload instance;
+
+ public NotificationtestGetElementsV1ResponseMPayloadTests()
+ {
+ // TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
+ //instance = new NotificationtestGetElementsV1ResponseMPayload();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [Test]
+ public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'PkiNotificationtestID'
+ ///
+ [Test]
+ public void PkiNotificationtestIDTest()
+ {
+ // TODO unit test for the property 'PkiNotificationtestID'
+ }
+ ///
+ /// Test the property 'AObjVariableobject'
+ ///
+ [Test]
+ public void AObjVariableobjectTest()
+ {
+ // TODO unit test for the property 'AObjVariableobject'
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Api/DefaultApi.cs
index abb190e8f63..105e25933a0 100644
--- a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -95,6 +95,22 @@ namespace Org.OpenAPITools.Api
/// Thrown when fails to make API call
/// ApiResponse of List<List<RolesReportsHash>>
ApiResponse>> RolesReportGetWithHttpInfo();
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// NotificationtestGetElementsV1ResponseMPayload
+ NotificationtestGetElementsV1ResponseMPayload Test();
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ ApiResponse TestWithHttpInfo();
#endregion Synchronous Operations
}
@@ -190,6 +206,27 @@ namespace Org.OpenAPITools.Api
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<List<RolesReportsHash>>)
System.Threading.Tasks.Task>>> RolesReportGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ System.Threading.Tasks.Task TestAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ System.Threading.Tasks.Task> TestWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@@ -794,5 +831,117 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// NotificationtestGetElementsV1ResponseMPayload
+ public NotificationtestGetElementsV1ResponseMPayload Test()
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = TestWithHttpInfo();
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ public Org.OpenAPITools.Client.ApiResponse TestWithHttpInfo()
+ {
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+
+
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Get("/test", localVarRequestOptions, this.Configuration);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null) throw _exception;
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ public async System.Threading.Tasks.Task TestAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ var task = TestWithHttpInfoAsync(cancellationToken);
+#if UNITY_EDITOR || !UNITY_WEBGL
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false);
+#else
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = await task;
+#endif
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ public async System.Threading.Tasks.Task> TestWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+
+
+
+ // make the HTTP request
+
+ var task = this.AsynchronousClient.GetAsync("/test", localVarRequestOptions, this.Configuration, cancellationToken);
+
+#if UNITY_EDITOR || !UNITY_WEBGL
+ var localVarResponse = await task.ConfigureAwait(false);
+#else
+ var localVarResponse = await task;
+#endif
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null) throw _exception;
+ }
+
+ return localVarResponse;
+ }
+
}
}
diff --git a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
new file mode 100644
index 00000000000..23b687949c0
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
@@ -0,0 +1,143 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
+ public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected NotificationtestGetElementsV1ResponseMPayload() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// pkiNotificationtestID (required).
+ /// aObjVariableobject (required).
+ public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List> aObjVariableobject = default(List>))
+ {
+ this.PkiNotificationtestID = pkiNotificationtestID;
+ // to ensure "aObjVariableobject" is required (not null)
+ if (aObjVariableobject == null)
+ {
+ throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
+ }
+ this.AObjVariableobject = aObjVariableobject;
+ }
+
+ ///
+ /// Gets or Sets PkiNotificationtestID
+ ///
+ [DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
+ public int PkiNotificationtestID { get; set; }
+
+ ///
+ /// Gets or Sets AObjVariableobject
+ ///
+ [DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
+ public List> AObjVariableobject { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
+ sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
+ sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as NotificationtestGetElementsV1ResponseMPayload);
+ }
+
+ ///
+ /// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
+ ///
+ /// Instance of NotificationtestGetElementsV1ResponseMPayload to be compared
+ /// Boolean
+ public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.PkiNotificationtestID == input.PkiNotificationtestID ||
+ this.PkiNotificationtestID.Equals(input.PkiNotificationtestID)
+ ) &&
+ (
+ this.AObjVariableobject == input.AObjVariableobject ||
+ this.AObjVariableobject != null &&
+ input.AObjVariableobject != null &&
+ this.AObjVariableobject.SequenceEqual(input.AObjVariableobject)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
+ if (this.AObjVariableobject != null)
+ {
+ hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient/.openapi-generator/FILES b/samples/client/petstore/csharp/OpenAPIClient/.openapi-generator/FILES
index 37723b6c9cb..824facafac0 100644
--- a/samples/client/petstore/csharp/OpenAPIClient/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp/OpenAPIClient/.openapi-generator/FILES
@@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
+docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@@ -173,6 +174,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
+src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs
diff --git a/samples/client/petstore/csharp/OpenAPIClient/README.md b/samples/client/petstore/csharp/OpenAPIClient/README.md
index 34888b871e0..27823ed8561 100644
--- a/samples/client/petstore/csharp/OpenAPIClient/README.md
+++ b/samples/client/petstore/csharp/OpenAPIClient/README.md
@@ -108,6 +108,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
+*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@@ -198,6 +199,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
+ - [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClient/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient/api/openapi.yaml
index 32f67b442f7..a80a80d18e4 100644
--- a/samples/client/petstore/csharp/OpenAPIClient/api/openapi.yaml
+++ b/samples/client/petstore/csharp/OpenAPIClient/api/openapi.yaml
@@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
+ /test:
+ get:
+ operationId: Test
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
+ description: Successful response
+ summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
+ Custom-Variableobject-Response:
+ additionalProperties: true
+ description: A Variable object without predefined property names
+ type: object
+ Field-pkiNotificationtestID:
+ type: integer
+ notificationtest-getElements-v1-Response-mPayload:
+ example:
+ a_objVariableobject:
+ - null
+ - null
+ pkiNotificationtestID: 0
+ properties:
+ pkiNotificationtestID:
+ type: integer
+ a_objVariableobject:
+ items:
+ $ref: '#/components/schemas/Custom-Variableobject-Response'
+ type: array
+ required:
+ - a_objVariableobject
+ - pkiNotificationtestID
+ type: object
_foo_get_default_response:
example:
string:
diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/DefaultApi.md b/samples/client/petstore/csharp/OpenAPIClient/docs/DefaultApi.md
index 0b75771ecbc..d9d4abc6ebb 100644
--- a/samples/client/petstore/csharp/OpenAPIClient/docs/DefaultApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClient/docs/DefaultApi.md
@@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
+| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements |
# **FooGet**
@@ -342,3 +343,87 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **Test**
+> NotificationtestGetElementsV1ResponseMPayload Test ()
+
+Retrieve an existing Notificationtest's Elements
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class TestExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new DefaultApi(config);
+
+ try
+ {
+ // Retrieve an existing Notificationtest's Elements
+ NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the TestWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Retrieve an existing Notificationtest's Elements
+ ApiResponse response = apiInstance.TestWithHttpInfo();
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+### Return type
+
+[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful response | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/NotificationtestGetElementsV1ResponseMPayload.md b/samples/client/petstore/csharp/OpenAPIClient/docs/NotificationtestGetElementsV1ResponseMPayload.md
new file mode 100644
index 00000000000..e6e3d9fdb0b
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient/docs/NotificationtestGetElementsV1ResponseMPayload.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PkiNotificationtestID** | **int** | |
+**AObjVariableobject** | **List<Dictionary<string, Object>>** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
new file mode 100644
index 00000000000..14e41c5e4d6
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
@@ -0,0 +1,75 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing NotificationtestGetElementsV1ResponseMPayload
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
+ //private NotificationtestGetElementsV1ResponseMPayload instance;
+
+ public NotificationtestGetElementsV1ResponseMPayloadTests()
+ {
+ // TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
+ //instance = new NotificationtestGetElementsV1ResponseMPayload();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [Fact]
+ public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'PkiNotificationtestID'
+ ///
+ [Fact]
+ public void PkiNotificationtestIDTest()
+ {
+ // TODO unit test for the property 'PkiNotificationtestID'
+ }
+
+ ///
+ /// Test the property 'AObjVariableobject'
+ ///
+ [Fact]
+ public void AObjVariableobjectTest()
+ {
+ // TODO unit test for the property 'AObjVariableobject'
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/DefaultApi.cs
index ad8969b7bf7..354f9eb6d9f 100644
--- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -104,6 +104,24 @@ namespace Org.OpenAPITools.Api
/// Index associated with the operation.
/// ApiResponse of List<List<RolesReportsHash>>
ApiResponse>> RolesReportGetWithHttpInfo(int operationIndex = 0);
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// NotificationtestGetElementsV1ResponseMPayload
+ NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ ApiResponse TestWithHttpInfo(int operationIndex = 0);
#endregion Synchronous Operations
}
@@ -207,6 +225,29 @@ namespace Org.OpenAPITools.Api
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<List<RolesReportsHash>>)
System.Threading.Tasks.Task>>> RolesReportGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ System.Threading.Tasks.Task TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ System.Threading.Tasks.Task> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@@ -847,5 +888,131 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// NotificationtestGetElementsV1ResponseMPayload
+ public NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0)
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = TestWithHttpInfo();
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ public Org.OpenAPITools.Client.ApiResponse TestWithHttpInfo(int operationIndex = 0)
+ {
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+
+ localVarRequestOptions.Operation = "DefaultApi.Test";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Get("/test", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ public async System.Threading.Tasks.Task TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ public async System.Threading.Tasks.Task> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+
+ localVarRequestOptions.Operation = "DefaultApi.Test";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+
+ // make the HTTP request
+ var localVarResponse = await this.AsynchronousClient.GetAsync("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
}
}
diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
new file mode 100644
index 00000000000..b2573f9bb53
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
@@ -0,0 +1,155 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
+ public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected NotificationtestGetElementsV1ResponseMPayload()
+ {
+ this.AdditionalProperties = new Dictionary();
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// pkiNotificationtestID (required).
+ /// aObjVariableobject (required).
+ public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List> aObjVariableobject = default(List>))
+ {
+ this.PkiNotificationtestID = pkiNotificationtestID;
+ // to ensure "aObjVariableobject" is required (not null)
+ if (aObjVariableobject == null)
+ {
+ throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
+ }
+ this.AObjVariableobject = aObjVariableobject;
+ this.AdditionalProperties = new Dictionary();
+ }
+
+ ///
+ /// Gets or Sets PkiNotificationtestID
+ ///
+ [DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
+ public int PkiNotificationtestID { get; set; }
+
+ ///
+ /// Gets or Sets AObjVariableobject
+ ///
+ [DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
+ public List> AObjVariableobject { get; set; }
+
+ ///
+ /// Gets or Sets additional properties
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalProperties { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
+ sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
+ sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
+ sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
+ }
+
+ ///
+ /// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
+ ///
+ /// Instance of NotificationtestGetElementsV1ResponseMPayload to be compared
+ /// Boolean
+ public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
+ if (this.AObjVariableobject != null)
+ {
+ hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
+ }
+ if (this.AdditionalProperties != null)
+ {
+ hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClientCore/.openapi-generator/FILES b/samples/client/petstore/csharp/OpenAPIClientCore/.openapi-generator/FILES
index 37723b6c9cb..824facafac0 100644
--- a/samples/client/petstore/csharp/OpenAPIClientCore/.openapi-generator/FILES
+++ b/samples/client/petstore/csharp/OpenAPIClientCore/.openapi-generator/FILES
@@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
+docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@@ -173,6 +174,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
+src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs
diff --git a/samples/client/petstore/csharp/OpenAPIClientCore/README.md b/samples/client/petstore/csharp/OpenAPIClientCore/README.md
index 10c43e4e1a1..850a2f42834 100644
--- a/samples/client/petstore/csharp/OpenAPIClientCore/README.md
+++ b/samples/client/petstore/csharp/OpenAPIClientCore/README.md
@@ -120,6 +120,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
+*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@@ -210,6 +211,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
+ - [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClientCore/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClientCore/api/openapi.yaml
index 32f67b442f7..a80a80d18e4 100644
--- a/samples/client/petstore/csharp/OpenAPIClientCore/api/openapi.yaml
+++ b/samples/client/petstore/csharp/OpenAPIClientCore/api/openapi.yaml
@@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
+ /test:
+ get:
+ operationId: Test
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
+ description: Successful response
+ summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
+ Custom-Variableobject-Response:
+ additionalProperties: true
+ description: A Variable object without predefined property names
+ type: object
+ Field-pkiNotificationtestID:
+ type: integer
+ notificationtest-getElements-v1-Response-mPayload:
+ example:
+ a_objVariableobject:
+ - null
+ - null
+ pkiNotificationtestID: 0
+ properties:
+ pkiNotificationtestID:
+ type: integer
+ a_objVariableobject:
+ items:
+ $ref: '#/components/schemas/Custom-Variableobject-Response'
+ type: array
+ required:
+ - a_objVariableobject
+ - pkiNotificationtestID
+ type: object
_foo_get_default_response:
example:
string:
diff --git a/samples/client/petstore/csharp/OpenAPIClientCore/docs/DefaultApi.md b/samples/client/petstore/csharp/OpenAPIClientCore/docs/DefaultApi.md
index 0b75771ecbc..d9d4abc6ebb 100644
--- a/samples/client/petstore/csharp/OpenAPIClientCore/docs/DefaultApi.md
+++ b/samples/client/petstore/csharp/OpenAPIClientCore/docs/DefaultApi.md
@@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
+| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements |
# **FooGet**
@@ -342,3 +343,87 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **Test**
+> NotificationtestGetElementsV1ResponseMPayload Test ()
+
+Retrieve an existing Notificationtest's Elements
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class TestExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "http://petstore.swagger.io:80/v2";
+ var apiInstance = new DefaultApi(config);
+
+ try
+ {
+ // Retrieve an existing Notificationtest's Elements
+ NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+#### Using the TestWithHttpInfo variant
+This returns an ApiResponse object which contains the response data, status code and headers.
+
+```csharp
+try
+{
+ // Retrieve an existing Notificationtest's Elements
+ ApiResponse response = apiInstance.TestWithHttpInfo();
+ Debug.Write("Status Code: " + response.StatusCode);
+ Debug.Write("Response Headers: " + response.Headers);
+ Debug.Write("Response Body: " + response.Data);
+}
+catch (ApiException e)
+{
+ Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+### Return type
+
+[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Successful response | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClientCore/docs/NotificationtestGetElementsV1ResponseMPayload.md b/samples/client/petstore/csharp/OpenAPIClientCore/docs/NotificationtestGetElementsV1ResponseMPayload.md
new file mode 100644
index 00000000000..e6e3d9fdb0b
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClientCore/docs/NotificationtestGetElementsV1ResponseMPayload.md
@@ -0,0 +1,11 @@
+# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PkiNotificationtestID** | **int** | |
+**AObjVariableobject** | **List<Dictionary<string, Object>>** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs b/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
new file mode 100644
index 00000000000..14e41c5e4d6
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools.Test/Model/NotificationtestGetElementsV1ResponseMPayloadTests.cs
@@ -0,0 +1,75 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using Xunit;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Org.OpenAPITools.Test.Model
+{
+ ///
+ /// Class for testing NotificationtestGetElementsV1ResponseMPayload
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
+ {
+ // TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
+ //private NotificationtestGetElementsV1ResponseMPayload instance;
+
+ public NotificationtestGetElementsV1ResponseMPayloadTests()
+ {
+ // TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
+ //instance = new NotificationtestGetElementsV1ResponseMPayload();
+ }
+
+ public void Dispose()
+ {
+ // Cleanup when everything is done.
+ }
+
+ ///
+ /// Test an instance of NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [Fact]
+ public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
+ {
+ // TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
+ //Assert.IsType(instance);
+ }
+
+ ///
+ /// Test the property 'PkiNotificationtestID'
+ ///
+ [Fact]
+ public void PkiNotificationtestIDTest()
+ {
+ // TODO unit test for the property 'PkiNotificationtestID'
+ }
+
+ ///
+ /// Test the property 'AObjVariableobject'
+ ///
+ [Fact]
+ public void AObjVariableobjectTest()
+ {
+ // TODO unit test for the property 'AObjVariableobject'
+ }
+ }
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs
index ad8969b7bf7..354f9eb6d9f 100644
--- a/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs
+++ b/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs
@@ -104,6 +104,24 @@ namespace Org.OpenAPITools.Api
/// Index associated with the operation.
/// ApiResponse of List<List<RolesReportsHash>>
ApiResponse>> RolesReportGetWithHttpInfo(int operationIndex = 0);
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// NotificationtestGetElementsV1ResponseMPayload
+ NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0);
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ ApiResponse TestWithHttpInfo(int operationIndex = 0);
#endregion Synchronous Operations
}
@@ -207,6 +225,29 @@ namespace Org.OpenAPITools.Api
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<List<RolesReportsHash>>)
System.Threading.Tasks.Task>>> RolesReportGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ System.Threading.Tasks.Task TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ System.Threading.Tasks.Task> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@@ -847,5 +888,131 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// NotificationtestGetElementsV1ResponseMPayload
+ public NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0)
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = TestWithHttpInfo();
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of NotificationtestGetElementsV1ResponseMPayload
+ public Org.OpenAPITools.Client.ApiResponse TestWithHttpInfo(int operationIndex = 0)
+ {
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+
+ localVarRequestOptions.Operation = "DefaultApi.Test";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Get("/test", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of NotificationtestGetElementsV1ResponseMPayload
+ public async System.Threading.Tasks.Task TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Retrieve an existing Notificationtest's Elements
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)
+ public async System.Threading.Tasks.Task> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+ Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+
+ localVarRequestOptions.Operation = "DefaultApi.Test";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+
+ // make the HTTP request
+ var localVarResponse = await this.AsynchronousClient.GetAsync("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("Test", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
}
}
diff --git a/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
new file mode 100644
index 00000000000..1172a3440ba
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
@@ -0,0 +1,140 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// NotificationtestGetElementsV1ResponseMPayload
+ ///
+ [DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
+ public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected NotificationtestGetElementsV1ResponseMPayload() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// pkiNotificationtestID (required).
+ /// aObjVariableobject (required).
+ public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List> aObjVariableobject = default(List>))
+ {
+ this.PkiNotificationtestID = pkiNotificationtestID;
+ // to ensure "aObjVariableobject" is required (not null)
+ if (aObjVariableobject == null)
+ {
+ throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
+ }
+ this.AObjVariableobject = aObjVariableobject;
+ }
+
+ ///
+ /// Gets or Sets PkiNotificationtestID
+ ///
+ [DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
+ public int PkiNotificationtestID { get; set; }
+
+ ///
+ /// Gets or Sets AObjVariableobject
+ ///
+ [DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
+ public List> AObjVariableobject { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
+ sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
+ sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
+ }
+
+ ///
+ /// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
+ ///
+ /// Instance of NotificationtestGetElementsV1ResponseMPayload to be compared
+ /// Boolean
+ public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
+ if (this.AObjVariableobject != null)
+ {
+ hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}