forked from loafle/openapi-generator-original
[csharp][generichost] Add Option struct to enable better validation (#15977)
* add Option struct to enable better validation * use kebab case
This commit is contained in:
@@ -1301,7 +1301,7 @@ No authorization required
|
||||
|
||||
<a id="testqueryparametercollectionformat"></a>
|
||||
# **TestQueryParameterCollectionFormat**
|
||||
> void TestQueryParameterCollectionFormat (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context)
|
||||
> void TestQueryParameterCollectionFormat (List<string> pipe, List<string> ioutil, List<string> http, List<string> url, List<string> context, string requiredNotNullable, string requiredNullable, string notRequiredNotNullable = null, string notRequiredNullable = null)
|
||||
|
||||
|
||||
|
||||
@@ -1329,10 +1329,14 @@ namespace Example
|
||||
var http = new List<string>(); // List<string> |
|
||||
var url = new List<string>(); // List<string> |
|
||||
var context = new List<string>(); // List<string> |
|
||||
var requiredNotNullable = "requiredNotNullable_example"; // string |
|
||||
var requiredNullable = "requiredNullable_example"; // string |
|
||||
var notRequiredNotNullable = "notRequiredNotNullable_example"; // string | (optional)
|
||||
var notRequiredNullable = "notRequiredNullable_example"; // string | (optional)
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
apiInstance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context, requiredNotNullable, requiredNullable, notRequiredNotNullable, notRequiredNullable);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -1351,7 +1355,7 @@ This returns an ApiResponse object which contains the response data, status code
|
||||
```csharp
|
||||
try
|
||||
{
|
||||
apiInstance.TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
|
||||
apiInstance.TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, requiredNotNullable, requiredNullable, notRequiredNotNullable, notRequiredNullable);
|
||||
}
|
||||
catch (ApiException e)
|
||||
{
|
||||
@@ -1370,6 +1374,10 @@ catch (ApiException e)
|
||||
| **http** | [**List<string>**](string.md) | | |
|
||||
| **url** | [**List<string>**](string.md) | | |
|
||||
| **context** | [**List<string>**](string.md) | | |
|
||||
| **requiredNotNullable** | **string** | | |
|
||||
| **requiredNullable** | **string** | | |
|
||||
| **notRequiredNotNullable** | **string** | | [optional] |
|
||||
| **notRequiredNullable** | **string** | | [optional] |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
Reference in New Issue
Block a user