[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:
devhl-labs
2023-07-03 02:40:24 -04:00
committed by GitHub
parent e2f5997592
commit 00fcaa15c0
119 changed files with 2845 additions and 2262 deletions

View File

@@ -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&lt;string&gt;**](string.md) | | |
| **url** | [**List&lt;string&gt;**](string.md) | | |
| **context** | [**List&lt;string&gt;**](string.md) | | |
| **requiredNotNullable** | **string** | | |
| **requiredNullable** | **string** | | |
| **notRequiredNotNullable** | **string** | | [optional] |
| **notRequiredNullable** | **string** | | [optional] |
### Return type