mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 05:02:46 +00:00
[csharp] Fix getModelFromParameter (#18137)
* fix getModelFromParameter * minor fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user