[csharp] Fix getModelFromParameter (#18137)

* fix getModelFromParameter

* minor fix
This commit is contained in:
devhl-labs
2024-03-18 00:54:49 -04:00
committed by GitHub
parent 12849cccbe
commit 96fad5eb2c
41 changed files with 1050 additions and 31 deletions

View File

@@ -34,7 +34,7 @@ namespace Example
var pathString = "pathString_example"; // string |
var pathInteger = 56; // int |
var enumNonrefStringPath = "success"; // string |
var enumRefStringPath = new StringEnumRef(); // StringEnumRef |
var enumRefStringPath = (StringEnumRef) "success"; // StringEnumRef |
try
{
@@ -80,7 +80,7 @@ catch (ApiException e)
| **pathString** | **string** | | |
| **pathInteger** | **int** | | |
| **enumNonrefStringPath** | **string** | | |
| **enumRefStringPath** | [**StringEnumRef**](StringEnumRef.md) | | |
| **enumRefStringPath** | **StringEnumRef** | | |
### Return type

View File

@@ -256,12 +256,6 @@ namespace Org.OpenAPITools.Api
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'enumNonrefStringPath' when calling PathApi->TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath");
}
// verify the required parameter 'enumRefStringPath' is set
if (enumRefStringPath == null)
{
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'enumRefStringPath' when calling PathApi->TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath");
}
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
@@ -349,12 +343,6 @@ namespace Org.OpenAPITools.Api
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'enumNonrefStringPath' when calling PathApi->TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath");
}
// verify the required parameter 'enumRefStringPath' is set
if (enumRefStringPath == null)
{
throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'enumRefStringPath' when calling PathApi->TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath");
}
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();