diff --git a/modules/openapi-generator/src/main/resources/csharp/api_doc.mustache b/modules/openapi-generator/src/main/resources/csharp/api_doc.mustache
index 60bde9985e6..cb68e436802 100644
--- a/modules/openapi-generator/src/main/resources/csharp/api_doc.mustache
+++ b/modules/openapi-generator/src/main/resources/csharp/api_doc.mustache
@@ -83,7 +83,7 @@ namespace Example
{{^allParams}}This endpoint does not need any parameter.{{/allParams}}{{#allParams}}{{#-last}}
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------{{/-last}}{{/allParams}}
-{{#allParams}} **{{paramName}}** | {{#isFile}}**{{dataType}}**{{/isFile}}{{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{^isFile}}[**{{dataType}}**]({{#isContainer}}{{baseType}}{{/isContainer}}{{^isContainer}}{{dataType}}{{/isContainer}}.md){{/isFile}}{{/isPrimitiveType}}| {{description}} | {{^required}}[optional] {{/required}}{{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}
+{{#allParams}} **{{paramName}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{#isContainer}}{{baseType}}{{/isContainer}}{{^isContainer}}{{dataType}}{{/isContainer}}.md){{/isPrimitiveType}}| {{description}} | {{^required}}[optional] {{/required}}{{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}
{{/allParams}}
### Return type
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/.openapi-generator/VERSION b/samples/client/petstore/csharp/SwaggerClientNetStandard/.openapi-generator/VERSION
index 855ff9501eb..096bf47efe3 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/.openapi-generator/VERSION
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/.openapi-generator/VERSION
@@ -1 +1 @@
-2.4.0-SNAPSHOT
\ No newline at end of file
+3.0.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/README.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/README.md
index 10eef36cdd0..718b992c5d6 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/README.md
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/README.md
@@ -6,7 +6,7 @@ This C# SDK is automatically generated by the [Swagger Codegen](https://github.c
- API version: 1.0.0
- SDK version: 1.0.0
-- Build package: io.swagger.codegen.languages.CSharpClientCodegen
+- Build package: org.openapitools.codegen.languages.CSharpClientCodegen
## Frameworks supported
@@ -49,12 +49,12 @@ namespace Example
{
var apiInstance = new AnotherFakeApi();
- var body = new ModelClient(); // ModelClient | client model
+ var modelClient = new ModelClient(); // ModelClient | client model
try
{
// To test special tags
- ModelClient result = apiInstance.TestSpecialTags(body);
+ ModelClient result = apiInstance.TestSpecialTags(modelClient);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -79,6 +79,7 @@ Class | Method | HTTP request | Description
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
*FakeApi* | [**FakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
*FakeApi* | [**FakeOuterStringSerialize**](docs/FakeApi.md#fakeouterstringserialize) | **POST** /fake/outer/string |
+*FakeApi* | [**TestBodyWithQueryParams**](docs/FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
*FakeApi* | [**TestClientModel**](docs/FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
*FakeApi* | [**TestEndpointParameters**](docs/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*FakeApi* | [**TestEnumParameters**](docs/FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
@@ -112,14 +113,15 @@ Class | Method | HTTP request | Description
- [Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
- [Model.Animal](docs/Animal.md)
- - [Model.AnimalFarm](docs/AnimalFarm.md)
- [Model.ApiResponse](docs/ApiResponse.md)
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- [Model.ArrayTest](docs/ArrayTest.md)
- [Model.Capitalization](docs/Capitalization.md)
+ - [Model.Cat](docs/Cat.md)
- [Model.Category](docs/Category.md)
- [Model.ClassModel](docs/ClassModel.md)
+ - [Model.Dog](docs/Dog.md)
- [Model.EnumArrays](docs/EnumArrays.md)
- [Model.EnumClass](docs/EnumClass.md)
- [Model.EnumTest](docs/EnumTest.md)
@@ -133,19 +135,14 @@ Class | Method | HTTP request | Description
- [Model.Name](docs/Name.md)
- [Model.NumberOnly](docs/NumberOnly.md)
- [Model.Order](docs/Order.md)
- - [Model.OuterBoolean](docs/OuterBoolean.md)
- [Model.OuterComposite](docs/OuterComposite.md)
- [Model.OuterEnum](docs/OuterEnum.md)
- - [Model.OuterNumber](docs/OuterNumber.md)
- - [Model.OuterString](docs/OuterString.md)
- [Model.Pet](docs/Pet.md)
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
- [Model.Return](docs/Return.md)
- [Model.SpecialModelName](docs/SpecialModelName.md)
- [Model.Tag](docs/Tag.md)
- [Model.User](docs/User.md)
- - [Model.Cat](docs/Cat.md)
- - [Model.Dog](docs/Dog.md)
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/AnotherFakeApi.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/AnotherFakeApi.md
index 89bc406754a..4c3ed5e8854 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/AnotherFakeApi.md
@@ -9,7 +9,7 @@ Method | HTTP request | Description
# **TestSpecialTags**
-> ModelClient TestSpecialTags (ModelClient body)
+> ModelClient TestSpecialTags (ModelClient modelClient)
To test special tags
@@ -30,12 +30,12 @@ namespace Example
public void main()
{
var apiInstance = new AnotherFakeApi();
- var body = new ModelClient(); // ModelClient | client model
+ var modelClient = new ModelClient(); // ModelClient | client model
try
{
// To test special tags
- ModelClient result = apiInstance.TestSpecialTags(body);
+ ModelClient result = apiInstance.TestSpecialTags(modelClient);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -51,7 +51,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**ModelClient**](ModelClient.md)| client model |
+ **modelClient** | [**ModelClient**](ModelClient.md)| client model |
### Return type
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/EnumTest.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/EnumTest.md
index 5b38bb5b3a5..f3278be4cf3 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/EnumTest.md
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/EnumTest.md
@@ -4,6 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**EnumString** | **string** | | [optional]
+**EnumStringRequired** | **string** | |
**EnumInteger** | **int?** | | [optional]
**EnumNumber** | **double?** | | [optional]
**OuterEnum** | **OuterEnum** | | [optional]
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FakeApi.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FakeApi.md
index 8858b6bf7c4..0b43ebdbdfa 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FakeApi.md
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FakeApi.md
@@ -8,6 +8,7 @@ Method | HTTP request | Description
[**FakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
[**FakeOuterNumberSerialize**](FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
[**FakeOuterStringSerialize**](FakeApi.md#fakeouterstringserialize) | **POST** /fake/outer/string |
+[**TestBodyWithQueryParams**](FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
[**TestClientModel**](FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
[**TestEndpointParameters**](FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**TestEnumParameters**](FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
@@ -17,7 +18,7 @@ Method | HTTP request | Description
# **FakeOuterBooleanSerialize**
-> OuterBoolean FakeOuterBooleanSerialize (OuterBoolean body = null)
+> bool? FakeOuterBooleanSerialize (bool? booleanPostBody = null)
@@ -38,11 +39,11 @@ namespace Example
public void main()
{
var apiInstance = new FakeApi();
- var body = new OuterBoolean(); // OuterBoolean | Input boolean as post body (optional)
+ var booleanPostBody = true; // bool? | Input boolean as post body (optional)
try
{
- OuterBoolean result = apiInstance.FakeOuterBooleanSerialize(body);
+ bool? result = apiInstance.FakeOuterBooleanSerialize(booleanPostBody);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -58,11 +59,11 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterBoolean**](OuterBoolean.md)| Input boolean as post body | [optional]
+ **booleanPostBody** | **bool?**| Input boolean as post body | [optional]
### Return type
-[**OuterBoolean**](OuterBoolean.md)
+**bool?**
### Authorization
@@ -71,13 +72,13 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: */*
[[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)
# **FakeOuterCompositeSerialize**
-> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
+> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
@@ -98,11 +99,11 @@ namespace Example
public void main()
{
var apiInstance = new FakeApi();
- var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
+ var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
try
{
- OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
+ OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -118,7 +119,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
+ **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
### Return type
@@ -131,13 +132,13 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: */*
[[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)
# **FakeOuterNumberSerialize**
-> OuterNumber FakeOuterNumberSerialize (OuterNumber body = null)
+> decimal? FakeOuterNumberSerialize (decimal? body = null)
@@ -158,11 +159,11 @@ namespace Example
public void main()
{
var apiInstance = new FakeApi();
- var body = new OuterNumber(); // OuterNumber | Input number as post body (optional)
+ var body = 1.2; // decimal? | Input number as post body (optional)
try
{
- OuterNumber result = apiInstance.FakeOuterNumberSerialize(body);
+ decimal? result = apiInstance.FakeOuterNumberSerialize(body);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -178,11 +179,11 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterNumber**](OuterNumber.md)| Input number as post body | [optional]
+ **body** | **decimal?**| Input number as post body | [optional]
### Return type
-[**OuterNumber**](OuterNumber.md)
+**decimal?**
### Authorization
@@ -191,13 +192,13 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: */*
[[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)
# **FakeOuterStringSerialize**
-> OuterString FakeOuterStringSerialize (OuterString body = null)
+> string FakeOuterStringSerialize (string body = null)
@@ -218,11 +219,11 @@ namespace Example
public void main()
{
var apiInstance = new FakeApi();
- var body = new OuterString(); // OuterString | Input string as post body (optional)
+ var body = body_example; // string | Input string as post body (optional)
try
{
- OuterString result = apiInstance.FakeOuterStringSerialize(body);
+ string result = apiInstance.FakeOuterStringSerialize(body);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -238,11 +239,11 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional]
+ **body** | **string**| Input string as post body | [optional]
### Return type
-[**OuterString**](OuterString.md)
+**string**
### Authorization
@@ -251,13 +252,72 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
+ - **Accept**: */*
+
+[[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)
+
+
+# **TestBodyWithQueryParams**
+> void TestBodyWithQueryParams (string query, User user)
+
+
+
+### Example
+```csharp
+using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class TestBodyWithQueryParamsExample
+ {
+ public void main()
+ {
+ var apiInstance = new FakeApi();
+ var query = query_example; // string |
+ var user = new User(); // User |
+
+ try
+ {
+ apiInstance.TestBodyWithQueryParams(query, user);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling FakeApi.TestBodyWithQueryParams: " + e.Message );
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **query** | **string**| |
+ **user** | [**User**](User.md)| |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
- **Accept**: Not defined
[[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)
# **TestClientModel**
-> ModelClient TestClientModel (ModelClient body)
+> ModelClient TestClientModel (ModelClient modelClient)
To test \"client\" model
@@ -278,12 +338,12 @@ namespace Example
public void main()
{
var apiInstance = new FakeApi();
- var body = new ModelClient(); // ModelClient | client model
+ var modelClient = new ModelClient(); // ModelClient | client model
try
{
// To test \"client\" model
- ModelClient result = apiInstance.TestClientModel(body);
+ ModelClient result = apiInstance.TestClientModel(modelClient);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -299,7 +359,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**ModelClient**](ModelClient.md)| client model |
+ **modelClient** | [**ModelClient**](ModelClient.md)| client model |
### Return type
@@ -318,7 +378,7 @@ No authorization required
# **TestEndpointParameters**
-> void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
+> void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@@ -346,13 +406,13 @@ namespace Example
var number = 8.14; // decimal? | None
var _double = 1.2; // double? | None
var patternWithoutDelimiter = patternWithoutDelimiter_example; // string | None
- var _byte = B; // byte[] | None
+ var _byte = BYTE_ARRAY_DATA_HERE; // byte[] | None
var integer = 56; // int? | None (optional)
var int32 = 56; // int? | None (optional)
var int64 = 789; // long? | None (optional)
var _float = 3.4; // float? | None (optional)
var _string = _string_example; // string | None (optional)
- var binary = B; // byte[] | None (optional)
+ var binary = BINARY_DATA_HERE; // System.IO.Stream | None (optional)
var date = 2013-10-20; // DateTime? | None (optional)
var dateTime = 2013-10-20T19:20:30+01:00; // DateTime? | None (optional)
var password = password_example; // string | None (optional)
@@ -385,7 +445,7 @@ Name | Type | Description | Notes
**int64** | **long?**| None | [optional]
**_float** | **float?**| None | [optional]
**_string** | **string**| None | [optional]
- **binary** | **byte[]**| None | [optional]
+ **binary** | **System.IO.Stream**| None | [optional]
**date** | **DateTime?**| None | [optional]
**dateTime** | **DateTime?**| None | [optional]
**password** | **string**| None | [optional]
@@ -401,14 +461,14 @@ void (empty response body)
### HTTP request headers
- - **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8
- - **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
[[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)
# **TestEnumParameters**
-> void TestEnumParameters (List enumFormStringArray = null, string enumFormString = null, List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null)
+> void TestEnumParameters (List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List enumFormStringArray = null, string enumFormString = null)
To test enum parameters
@@ -429,19 +489,19 @@ namespace Example
public void main()
{
var apiInstance = new FakeApi();
- var enumFormStringArray = enumFormStringArray_example; // List | Form parameter enum test (string array) (optional)
- var enumFormString = enumFormString_example; // string | Form parameter enum test (string) (optional) (default to -efg)
var enumHeaderStringArray = enumHeaderStringArray_example; // List | Header parameter enum test (string array) (optional)
var enumHeaderString = enumHeaderString_example; // string | Header parameter enum test (string) (optional) (default to -efg)
var enumQueryStringArray = enumQueryStringArray_example; // List | Query parameter enum test (string array) (optional)
var enumQueryString = enumQueryString_example; // string | Query parameter enum test (string) (optional) (default to -efg)
var enumQueryInteger = 56; // int? | Query parameter enum test (double) (optional)
var enumQueryDouble = 1.2; // double? | Query parameter enum test (double) (optional)
+ var enumFormStringArray = enumFormStringArray_example; // List | Form parameter enum test (string array) (optional)
+ var enumFormString = enumFormString_example; // string | Form parameter enum test (string) (optional)
try
{
// To test enum parameters
- apiInstance.TestEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
+ apiInstance.TestEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
}
catch (Exception e)
{
@@ -456,14 +516,14 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **enumFormStringArray** | **List<string>**| Form parameter enum test (string array) | [optional]
- **enumFormString** | **string**| Form parameter enum test (string) | [optional] [default to -efg]
**enumHeaderStringArray** | **List<string>**| Header parameter enum test (string array) | [optional]
**enumHeaderString** | **string**| Header parameter enum test (string) | [optional] [default to -efg]
**enumQueryStringArray** | **List<string>**| Query parameter enum test (string array) | [optional]
**enumQueryString** | **string**| Query parameter enum test (string) | [optional] [default to -efg]
**enumQueryInteger** | **int?**| Query parameter enum test (double) | [optional]
**enumQueryDouble** | **double?**| Query parameter enum test (double) | [optional]
+ **enumFormStringArray** | **List<string>**| Form parameter enum test (string array) | [optional]
+ **enumFormString** | **string**| Form parameter enum test (string) | [optional]
### Return type
@@ -475,14 +535,14 @@ No authorization required
### HTTP request headers
- - **Content-Type**: */*
- - **Accept**: */*
+ - **Content-Type**: application/x-www-form-urlencoded
+ - **Accept**: Not defined
[[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)
# **TestInlineAdditionalProperties**
-> void TestInlineAdditionalProperties (Object param)
+> void TestInlineAdditionalProperties (string requestBody)
test inline additionalProperties
@@ -501,12 +561,12 @@ namespace Example
public void main()
{
var apiInstance = new FakeApi();
- var param = ; // Object | request body
+ var requestBody = new string(); // string | request body
try
{
// test inline additionalProperties
- apiInstance.TestInlineAdditionalProperties(param);
+ apiInstance.TestInlineAdditionalProperties(requestBody);
}
catch (Exception e)
{
@@ -521,7 +581,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **param** | **Object**| request body |
+ **requestBody** | [**string**](string.md)| request body |
### Return type
@@ -593,7 +653,7 @@ No authorization required
### HTTP request headers
- - **Content-Type**: application/json
+ - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined
[[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/SwaggerClientNetStandard/docs/FakeClassnameTags123Api.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FakeClassnameTags123Api.md
index 5f1d0ca776b..8474cc2078d 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FakeClassnameTags123Api.md
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FakeClassnameTags123Api.md
@@ -9,7 +9,9 @@ Method | HTTP request | Description
# **TestClassname**
-> ModelClient TestClassname (ModelClient body)
+> ModelClient TestClassname (ModelClient modelClient)
+
+To test class name in snake case
To test class name in snake case
@@ -33,12 +35,12 @@ namespace Example
// Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer");
var apiInstance = new FakeClassnameTags123Api();
- var body = new ModelClient(); // ModelClient | client model
+ var modelClient = new ModelClient(); // ModelClient | client model
try
{
// To test class name in snake case
- ModelClient result = apiInstance.TestClassname(body);
+ ModelClient result = apiInstance.TestClassname(modelClient);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -54,7 +56,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**ModelClient**](ModelClient.md)| client model |
+ **modelClient** | [**ModelClient**](ModelClient.md)| client model |
### Return type
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FormatTest.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FormatTest.md
index 1108a1af428..c2127b35b63 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FormatTest.md
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/FormatTest.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**Double** | **double?** | | [optional]
**String** | **string** | | [optional]
**Byte** | **byte[]** | |
-**Binary** | **byte[]** | | [optional]
+**Binary** | **System.IO.Stream** | | [optional]
**Date** | **DateTime?** | |
**DateTime** | **DateTime?** | | [optional]
**Uuid** | **Guid?** | | [optional]
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/OuterComposite.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/OuterComposite.md
index 41fae66f136..84714b7759e 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/OuterComposite.md
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/OuterComposite.md
@@ -3,9 +3,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**MyNumber** | [**OuterNumber**](OuterNumber.md) | | [optional]
-**MyString** | [**OuterString**](OuterString.md) | | [optional]
-**MyBoolean** | [**OuterBoolean**](OuterBoolean.md) | | [optional]
+**MyNumber** | **decimal?** | | [optional]
+**MyString** | **string** | | [optional]
+**MyBoolean** | **bool?** | | [optional]
[[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/SwaggerClientNetStandard/docs/PetApi.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/PetApi.md
index 44f7fad8326..d5a5b2f000e 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/PetApi.md
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/PetApi.md
@@ -16,7 +16,7 @@ Method | HTTP request | Description
# **AddPet**
-> void AddPet (Pet body)
+> void AddPet (Pet pet)
Add a new pet to the store
@@ -38,12 +38,12 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi();
- var body = new Pet(); // Pet | Pet object that needs to be added to the store
+ var pet = new Pet(); // Pet | Pet object that needs to be added to the store
try
{
// Add a new pet to the store
- apiInstance.AddPet(body);
+ apiInstance.AddPet(pet);
}
catch (Exception e)
{
@@ -58,7 +58,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -71,7 +71,7 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
[[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)
@@ -134,7 +134,7 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
[[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)
@@ -334,7 +334,7 @@ Name | Type | Description | Notes
# **UpdatePet**
-> void UpdatePet (Pet body)
+> void UpdatePet (Pet pet)
Update an existing pet
@@ -356,12 +356,12 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi();
- var body = new Pet(); // Pet | Pet object that needs to be added to the store
+ var pet = new Pet(); // Pet | Pet object that needs to be added to the store
try
{
// Update an existing pet
- apiInstance.UpdatePet(body);
+ apiInstance.UpdatePet(pet);
}
catch (Exception e)
{
@@ -376,7 +376,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -389,7 +389,7 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
[[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)
@@ -454,7 +454,7 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
[[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)
@@ -484,7 +484,7 @@ namespace Example
var apiInstance = new PetApi();
var petId = 789; // long? | ID of pet to update
var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional)
- var file = new System.IO.Stream(); // System.IO.Stream | file to upload (optional)
+ var file = BINARY_DATA_HERE; // System.IO.Stream | file to upload (optional)
try
{
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/StoreApi.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/StoreApi.md
index 28e3fe59067..1603b33bcba 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/StoreApi.md
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/StoreApi.md
@@ -66,7 +66,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
[[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)
@@ -195,7 +195,7 @@ No authorization required
# **PlaceOrder**
-> Order PlaceOrder (Order body)
+> Order PlaceOrder (Order order)
Place an order for a pet
@@ -214,12 +214,12 @@ namespace Example
public void main()
{
var apiInstance = new StoreApi();
- var body = new Order(); // Order | order placed for purchasing the pet
+ var order = new Order(); // Order | order placed for purchasing the pet
try
{
// Place an order for a pet
- Order result = apiInstance.PlaceOrder(body);
+ Order result = apiInstance.PlaceOrder(order);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -235,7 +235,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**Order**](Order.md)| order placed for purchasing the pet |
+ **order** | [**Order**](Order.md)| order placed for purchasing the pet |
### Return type
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/UserApi.md b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/UserApi.md
index fd9bfb0e973..1513014cb0c 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/UserApi.md
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/docs/UserApi.md
@@ -16,7 +16,7 @@ Method | HTTP request | Description
# **CreateUser**
-> void CreateUser (User body)
+> void CreateUser (User user)
Create user
@@ -37,12 +37,12 @@ namespace Example
public void main()
{
var apiInstance = new UserApi();
- var body = new User(); // User | Created user object
+ var user = new User(); // User | Created user object
try
{
// Create user
- apiInstance.CreateUser(body);
+ apiInstance.CreateUser(user);
}
catch (Exception e)
{
@@ -57,7 +57,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**User**](User.md)| Created user object |
+ **user** | [**User**](User.md)| Created user object |
### Return type
@@ -70,13 +70,13 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
[[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)
# **CreateUsersWithArrayInput**
-> void CreateUsersWithArrayInput (List body)
+> void CreateUsersWithArrayInput (List user)
Creates list of users with given input array
@@ -95,12 +95,12 @@ namespace Example
public void main()
{
var apiInstance = new UserApi();
- var body = new List(); // List | List of user object
+ var user = new List(); // List | List of user object
try
{
// Creates list of users with given input array
- apiInstance.CreateUsersWithArrayInput(body);
+ apiInstance.CreateUsersWithArrayInput(user);
}
catch (Exception e)
{
@@ -115,7 +115,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**List<User>**](User.md)| List of user object |
+ **user** | [**List<User>**](List.md)| List of user object |
### Return type
@@ -128,13 +128,13 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
[[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)
# **CreateUsersWithListInput**
-> void CreateUsersWithListInput (List body)
+> void CreateUsersWithListInput (List user)
Creates list of users with given input array
@@ -153,12 +153,12 @@ namespace Example
public void main()
{
var apiInstance = new UserApi();
- var body = new List(); // List | List of user object
+ var user = new List(); // List | List of user object
try
{
// Creates list of users with given input array
- apiInstance.CreateUsersWithListInput(body);
+ apiInstance.CreateUsersWithListInput(user);
}
catch (Exception e)
{
@@ -173,7 +173,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**List<User>**](User.md)| List of user object |
+ **user** | [**List<User>**](List.md)| List of user object |
### Return type
@@ -186,7 +186,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
[[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)
@@ -246,7 +246,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
[[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)
@@ -271,7 +271,7 @@ namespace Example
public void main()
{
var apiInstance = new UserApi();
- var username = username_example; // string | The name that needs to be fetched. Use user1 for testing.
+ var username = username_example; // string | The name that needs to be fetched. Use user1 for testing.
try
{
@@ -292,7 +292,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **username** | **string**| The name that needs to be fetched. Use user1 for testing. |
+ **username** | **string**| The name that needs to be fetched. Use user1 for testing. |
### Return type
@@ -420,13 +420,13 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
[[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)
# **UpdateUser**
-> void UpdateUser (string username, User body)
+> void UpdateUser (string username, User user)
Updated user
@@ -448,12 +448,12 @@ namespace Example
{
var apiInstance = new UserApi();
var username = username_example; // string | name that need to be deleted
- var body = new User(); // User | Updated user object
+ var user = new User(); // User | Updated user object
try
{
// Updated user
- apiInstance.UpdateUser(username, body);
+ apiInstance.UpdateUser(username, user);
}
catch (Exception e)
{
@@ -469,7 +469,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **string**| name that need to be deleted |
- **body** | [**User**](User.md)| Updated user object |
+ **user** | [**User**](User.md)| Updated user object |
### Return type
@@ -482,7 +482,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
+ - **Accept**: Not defined
[[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/SwaggerClientNetStandard/src/IO.Swagger/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/AnotherFakeApi.cs
index 1f5f6920192..27ad48c4d72 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/AnotherFakeApi.cs
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/AnotherFakeApi.cs
@@ -31,9 +31,9 @@ namespace IO.Swagger.Api
/// To test special tags
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ModelClient
- ModelClient TestSpecialTags (ModelClient body);
+ ModelClient TestSpecialTags (ModelClient modelClient);
///
/// To test special tags
@@ -42,9 +42,9 @@ namespace IO.Swagger.Api
/// To test special tags
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ApiResponse of ModelClient
- ApiResponse TestSpecialTagsWithHttpInfo (ModelClient body);
+ ApiResponse TestSpecialTagsWithHttpInfo (ModelClient modelClient);
#endregion Synchronous Operations
#region Asynchronous Operations
///
@@ -54,9 +54,9 @@ namespace IO.Swagger.Api
/// To test special tags
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ModelClient
- System.Threading.Tasks.Task TestSpecialTagsAsync (ModelClient body);
+ System.Threading.Tasks.Task TestSpecialTagsAsync (ModelClient modelClient);
///
/// To test special tags
@@ -65,9 +65,9 @@ namespace IO.Swagger.Api
/// To test special tags
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ApiResponse (ModelClient)
- System.Threading.Tasks.Task> TestSpecialTagsAsyncWithHttpInfo (ModelClient body);
+ System.Threading.Tasks.Task> TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient);
#endregion Asynchronous Operations
}
@@ -172,11 +172,11 @@ namespace IO.Swagger.Api
/// To test special tags To test special tags
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ModelClient
- public ModelClient TestSpecialTags (ModelClient body)
+ public ModelClient TestSpecialTags (ModelClient modelClient)
{
- ApiResponse localVarResponse = TestSpecialTagsWithHttpInfo(body);
+ ApiResponse localVarResponse = TestSpecialTagsWithHttpInfo(modelClient);
return localVarResponse.Data;
}
@@ -184,13 +184,13 @@ namespace IO.Swagger.Api
/// To test special tags To test special tags
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ApiResponse of ModelClient
- public ApiResponse< ModelClient > TestSpecialTagsWithHttpInfo (ModelClient body)
+ public ApiResponse< ModelClient > TestSpecialTagsWithHttpInfo (ModelClient modelClient)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->TestSpecialTags");
+ // verify the required parameter 'modelClient' is set
+ if (modelClient == null)
+ throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->TestSpecialTags");
var localVarPath = "./another-fake/dummy";
var localVarPathParams = new Dictionary();
@@ -214,13 +214,13 @@ namespace IO.Swagger.Api
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (modelClient != null && modelClient.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = modelClient; // byte array
}
@@ -246,11 +246,11 @@ namespace IO.Swagger.Api
/// To test special tags To test special tags
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ModelClient
- public async System.Threading.Tasks.Task TestSpecialTagsAsync (ModelClient body)
+ public async System.Threading.Tasks.Task TestSpecialTagsAsync (ModelClient modelClient)
{
- ApiResponse localVarResponse = await TestSpecialTagsAsyncWithHttpInfo(body);
+ ApiResponse localVarResponse = await TestSpecialTagsAsyncWithHttpInfo(modelClient);
return localVarResponse.Data;
}
@@ -259,13 +259,13 @@ namespace IO.Swagger.Api
/// To test special tags To test special tags
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ApiResponse (ModelClient)
- public async System.Threading.Tasks.Task> TestSpecialTagsAsyncWithHttpInfo (ModelClient body)
+ public async System.Threading.Tasks.Task> TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->TestSpecialTags");
+ // verify the required parameter 'modelClient' is set
+ if (modelClient == null)
+ throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->TestSpecialTags");
var localVarPath = "./another-fake/dummy";
var localVarPathParams = new Dictionary();
@@ -289,13 +289,13 @@ namespace IO.Swagger.Api
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (modelClient != null && modelClient.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = modelClient; // byte array
}
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/FakeApi.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/FakeApi.cs
index 3a95af28ffd..3aee0b4f55b 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/FakeApi.cs
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/FakeApi.cs
@@ -31,9 +31,9 @@ namespace IO.Swagger.Api
/// Test serialization of outer boolean types
///
/// Thrown when fails to make API call
- /// Input boolean as post body (optional)
- /// OuterBoolean
- OuterBoolean FakeOuterBooleanSerialize (OuterBoolean body = null);
+ /// Input boolean as post body (optional)
+ /// bool?
+ bool? FakeOuterBooleanSerialize (bool? booleanPostBody = null);
///
///
@@ -42,9 +42,9 @@ namespace IO.Swagger.Api
/// Test serialization of outer boolean types
///
/// Thrown when fails to make API call
- /// Input boolean as post body (optional)
- /// ApiResponse of OuterBoolean
- ApiResponse FakeOuterBooleanSerializeWithHttpInfo (OuterBoolean body = null);
+ /// Input boolean as post body (optional)
+ /// ApiResponse of bool?
+ ApiResponse FakeOuterBooleanSerializeWithHttpInfo (bool? booleanPostBody = null);
///
///
///
@@ -52,9 +52,9 @@ namespace IO.Swagger.Api
/// Test serialization of object with outer number type
///
/// Thrown when fails to make API call
- /// Input composite as post body (optional)
+ /// Input composite as post body (optional)
/// OuterComposite
- OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null);
+ OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null);
///
///
@@ -63,9 +63,9 @@ namespace IO.Swagger.Api
/// Test serialization of object with outer number type
///
/// Thrown when fails to make API call
- /// Input composite as post body (optional)
+ /// Input composite as post body (optional)
/// ApiResponse of OuterComposite
- ApiResponse FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null);
+ ApiResponse FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null);
///
///
///
@@ -74,8 +74,8 @@ namespace IO.Swagger.Api
///
/// Thrown when fails to make API call
/// Input number as post body (optional)
- /// OuterNumber
- OuterNumber FakeOuterNumberSerialize (OuterNumber body = null);
+ /// decimal?
+ decimal? FakeOuterNumberSerialize (decimal? body = null);
///
///
@@ -85,8 +85,8 @@ namespace IO.Swagger.Api
///
/// Thrown when fails to make API call
/// Input number as post body (optional)
- /// ApiResponse of OuterNumber
- ApiResponse FakeOuterNumberSerializeWithHttpInfo (OuterNumber body = null);
+ /// ApiResponse of decimal?
+ ApiResponse FakeOuterNumberSerializeWithHttpInfo (decimal? body = null);
///
///
///
@@ -95,8 +95,8 @@ namespace IO.Swagger.Api
///
/// Thrown when fails to make API call
/// Input string as post body (optional)
- /// OuterString
- OuterString FakeOuterStringSerialize (OuterString body = null);
+ /// string
+ string FakeOuterStringSerialize (string body = null);
///
///
@@ -106,8 +106,31 @@ namespace IO.Swagger.Api
///
/// Thrown when fails to make API call
/// Input string as post body (optional)
- /// ApiResponse of OuterString
- ApiResponse FakeOuterStringSerializeWithHttpInfo (OuterString body = null);
+ /// ApiResponse of string
+ ApiResponse FakeOuterStringSerializeWithHttpInfo (string body = null);
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ ///
+ ///
+ ///
+ void TestBodyWithQueryParams (string query, User user);
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Thrown when fails to make API call
+ ///
+ ///
+ /// ApiResponse of Object(void)
+ ApiResponse
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ModelClient
- public async System.Threading.Tasks.Task TestClientModelAsync (ModelClient body)
+ public async System.Threading.Tasks.Task TestClientModelAsync (ModelClient modelClient)
{
- ApiResponse localVarResponse = await TestClientModelAsyncWithHttpInfo(body);
+ ApiResponse localVarResponse = await TestClientModelAsyncWithHttpInfo(modelClient);
return localVarResponse.Data;
}
@@ -1235,13 +1446,13 @@ namespace IO.Swagger.Api
/// To test \"client\" model To test \"client\" model
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ApiResponse (ModelClient)
- public async System.Threading.Tasks.Task> TestClientModelAsyncWithHttpInfo (ModelClient body)
+ public async System.Threading.Tasks.Task> TestClientModelAsyncWithHttpInfo (ModelClient modelClient)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel");
+ // verify the required parameter 'modelClient' is set
+ if (modelClient == null)
+ throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel");
var localVarPath = "./fake";
var localVarPathParams = new Dictionary();
@@ -1265,13 +1476,13 @@ namespace IO.Swagger.Api
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (modelClient != null && modelClient.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = modelClient; // byte array
}
@@ -1312,7 +1523,7 @@ namespace IO.Swagger.Api
/// None (optional)
/// None (optional)
///
- public void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
+ public void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
{
TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
}
@@ -1336,7 +1547,7 @@ namespace IO.Swagger.Api
/// None (optional)
/// None (optional)
/// ApiResponse of Object(void)
- public ApiResponse TestEndpointParametersWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
+ public ApiResponse TestEndpointParametersWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
{
// verify the required parameter 'number' is set
if (number == null)
@@ -1361,15 +1572,12 @@ namespace IO.Swagger.Api
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "application/xml; charset=utf-8",
- "application/json; charset=utf-8"
+ "application/x-www-form-urlencoded"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml; charset=utf-8",
- "application/json; charset=utf-8"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -1384,7 +1592,7 @@ namespace IO.Swagger.Api
if (_string != null) localVarFormParams.Add("string", this.Configuration.ApiClient.ParameterToString(_string)); // form parameter
if (patternWithoutDelimiter != null) localVarFormParams.Add("pattern_without_delimiter", this.Configuration.ApiClient.ParameterToString(patternWithoutDelimiter)); // form parameter
if (_byte != null) localVarFormParams.Add("byte", this.Configuration.ApiClient.ParameterToString(_byte)); // form parameter
- if (binary != null) localVarFormParams.Add("binary", this.Configuration.ApiClient.ParameterToString(binary)); // form parameter
+ if (binary != null) localVarFileParams.Add("binary", this.Configuration.ApiClient.ParameterToFile("binary", binary));
if (date != null) localVarFormParams.Add("date", this.Configuration.ApiClient.ParameterToString(date)); // form parameter
if (dateTime != null) localVarFormParams.Add("dateTime", this.Configuration.ApiClient.ParameterToString(dateTime)); // form parameter
if (password != null) localVarFormParams.Add("password", this.Configuration.ApiClient.ParameterToString(password)); // form parameter
@@ -1434,7 +1642,7 @@ namespace IO.Swagger.Api
/// None (optional)
/// None (optional)
/// Task of void
- public async System.Threading.Tasks.Task TestEndpointParametersAsync (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
+ public async System.Threading.Tasks.Task TestEndpointParametersAsync (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
{
await TestEndpointParametersAsyncWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
@@ -1459,7 +1667,7 @@ namespace IO.Swagger.Api
/// None (optional)
/// None (optional)
/// Task of ApiResponse
- public async System.Threading.Tasks.Task> TestEndpointParametersAsyncWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
+ public async System.Threading.Tasks.Task> TestEndpointParametersAsyncWithHttpInfo (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
{
// verify the required parameter 'number' is set
if (number == null)
@@ -1484,15 +1692,12 @@ namespace IO.Swagger.Api
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "application/xml; charset=utf-8",
- "application/json; charset=utf-8"
+ "application/x-www-form-urlencoded"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml; charset=utf-8",
- "application/json; charset=utf-8"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -1507,7 +1712,7 @@ namespace IO.Swagger.Api
if (_string != null) localVarFormParams.Add("string", this.Configuration.ApiClient.ParameterToString(_string)); // form parameter
if (patternWithoutDelimiter != null) localVarFormParams.Add("pattern_without_delimiter", this.Configuration.ApiClient.ParameterToString(patternWithoutDelimiter)); // form parameter
if (_byte != null) localVarFormParams.Add("byte", this.Configuration.ApiClient.ParameterToString(_byte)); // form parameter
- if (binary != null) localVarFormParams.Add("binary", this.Configuration.ApiClient.ParameterToString(binary)); // form parameter
+ if (binary != null) localVarFileParams.Add("binary", this.Configuration.ApiClient.ParameterToFile("binary", binary));
if (date != null) localVarFormParams.Add("date", this.Configuration.ApiClient.ParameterToString(date)); // form parameter
if (dateTime != null) localVarFormParams.Add("dateTime", this.Configuration.ApiClient.ParameterToString(dateTime)); // form parameter
if (password != null) localVarFormParams.Add("password", this.Configuration.ApiClient.ParameterToString(password)); // form parameter
@@ -1542,34 +1747,34 @@ namespace IO.Swagger.Api
/// To test enum parameters To test enum parameters
///
/// Thrown when fails to make API call
- /// Form parameter enum test (string array) (optional)
- /// Form parameter enum test (string) (optional, default to -efg)
/// Header parameter enum test (string array) (optional)
/// Header parameter enum test (string) (optional, default to -efg)
/// Query parameter enum test (string array) (optional)
/// Query parameter enum test (string) (optional, default to -efg)
/// Query parameter enum test (double) (optional)
/// Query parameter enum test (double) (optional)
+ /// Form parameter enum test (string array) (optional)
+ /// Form parameter enum test (string) (optional)
///
- public void TestEnumParameters (List enumFormStringArray = null, string enumFormString = null, List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null)
+ public void TestEnumParameters (List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List enumFormStringArray = null, string enumFormString = null)
{
- TestEnumParametersWithHttpInfo(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
+ TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
}
///
/// To test enum parameters To test enum parameters
///
/// Thrown when fails to make API call
- /// Form parameter enum test (string array) (optional)
- /// Form parameter enum test (string) (optional, default to -efg)
/// Header parameter enum test (string array) (optional)
/// Header parameter enum test (string) (optional, default to -efg)
/// Query parameter enum test (string array) (optional)
/// Query parameter enum test (string) (optional, default to -efg)
/// Query parameter enum test (double) (optional)
/// Query parameter enum test (double) (optional)
+ /// Form parameter enum test (string array) (optional)
+ /// Form parameter enum test (string) (optional)
/// ApiResponse of Object(void)
- public ApiResponse TestEnumParametersWithHttpInfo (List enumFormStringArray = null, string enumFormString = null, List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null)
+ public ApiResponse TestEnumParametersWithHttpInfo (List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List enumFormStringArray = null, string enumFormString = null)
{
var localVarPath = "./fake";
@@ -1582,13 +1787,12 @@ namespace IO.Swagger.Api
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "*/*"
+ "application/x-www-form-urlencoded"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "*/*"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -1597,11 +1801,11 @@ namespace IO.Swagger.Api
if (enumQueryStringArray != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "enum_query_string_array", enumQueryStringArray)); // query parameter
if (enumQueryString != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enum_query_string", enumQueryString)); // query parameter
if (enumQueryInteger != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enum_query_integer", enumQueryInteger)); // query parameter
+ if (enumQueryDouble != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enum_query_double", enumQueryDouble)); // query parameter
if (enumHeaderStringArray != null) localVarHeaderParams.Add("enum_header_string_array", this.Configuration.ApiClient.ParameterToString(enumHeaderStringArray)); // header parameter
if (enumHeaderString != null) localVarHeaderParams.Add("enum_header_string", this.Configuration.ApiClient.ParameterToString(enumHeaderString)); // header parameter
if (enumFormStringArray != null) localVarFormParams.Add("enum_form_string_array", this.Configuration.ApiClient.ParameterToString(enumFormStringArray)); // form parameter
if (enumFormString != null) localVarFormParams.Add("enum_form_string", this.Configuration.ApiClient.ParameterToString(enumFormString)); // form parameter
- if (enumQueryDouble != null) localVarFormParams.Add("enum_query_double", this.Configuration.ApiClient.ParameterToString(enumQueryDouble)); // form parameter
// make the HTTP request
@@ -1626,18 +1830,18 @@ namespace IO.Swagger.Api
/// To test enum parameters To test enum parameters
///
/// Thrown when fails to make API call
- /// Form parameter enum test (string array) (optional)
- /// Form parameter enum test (string) (optional, default to -efg)
/// Header parameter enum test (string array) (optional)
/// Header parameter enum test (string) (optional, default to -efg)
/// Query parameter enum test (string array) (optional)
/// Query parameter enum test (string) (optional, default to -efg)
/// Query parameter enum test (double) (optional)
/// Query parameter enum test (double) (optional)
+ /// Form parameter enum test (string array) (optional)
+ /// Form parameter enum test (string) (optional)
/// Task of void
- public async System.Threading.Tasks.Task TestEnumParametersAsync (List enumFormStringArray = null, string enumFormString = null, List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null)
+ public async System.Threading.Tasks.Task TestEnumParametersAsync (List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List enumFormStringArray = null, string enumFormString = null)
{
- await TestEnumParametersAsyncWithHttpInfo(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
+ await TestEnumParametersAsyncWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
}
@@ -1645,16 +1849,16 @@ namespace IO.Swagger.Api
/// To test enum parameters To test enum parameters
///
/// Thrown when fails to make API call
- /// Form parameter enum test (string array) (optional)
- /// Form parameter enum test (string) (optional, default to -efg)
/// Header parameter enum test (string array) (optional)
/// Header parameter enum test (string) (optional, default to -efg)
/// Query parameter enum test (string array) (optional)
/// Query parameter enum test (string) (optional, default to -efg)
/// Query parameter enum test (double) (optional)
/// Query parameter enum test (double) (optional)
+ /// Form parameter enum test (string array) (optional)
+ /// Form parameter enum test (string) (optional)
/// Task of ApiResponse
- public async System.Threading.Tasks.Task> TestEnumParametersAsyncWithHttpInfo (List enumFormStringArray = null, string enumFormString = null, List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null)
+ public async System.Threading.Tasks.Task> TestEnumParametersAsyncWithHttpInfo (List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null, List enumFormStringArray = null, string enumFormString = null)
{
var localVarPath = "./fake";
@@ -1667,13 +1871,12 @@ namespace IO.Swagger.Api
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "*/*"
+ "application/x-www-form-urlencoded"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "*/*"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -1682,11 +1885,11 @@ namespace IO.Swagger.Api
if (enumQueryStringArray != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("csv", "enum_query_string_array", enumQueryStringArray)); // query parameter
if (enumQueryString != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enum_query_string", enumQueryString)); // query parameter
if (enumQueryInteger != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enum_query_integer", enumQueryInteger)); // query parameter
+ if (enumQueryDouble != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enum_query_double", enumQueryDouble)); // query parameter
if (enumHeaderStringArray != null) localVarHeaderParams.Add("enum_header_string_array", this.Configuration.ApiClient.ParameterToString(enumHeaderStringArray)); // header parameter
if (enumHeaderString != null) localVarHeaderParams.Add("enum_header_string", this.Configuration.ApiClient.ParameterToString(enumHeaderString)); // header parameter
if (enumFormStringArray != null) localVarFormParams.Add("enum_form_string_array", this.Configuration.ApiClient.ParameterToString(enumFormStringArray)); // form parameter
if (enumFormString != null) localVarFormParams.Add("enum_form_string", this.Configuration.ApiClient.ParameterToString(enumFormString)); // form parameter
- if (enumQueryDouble != null) localVarFormParams.Add("enum_query_double", this.Configuration.ApiClient.ParameterToString(enumQueryDouble)); // form parameter
// make the HTTP request
@@ -1711,24 +1914,24 @@ namespace IO.Swagger.Api
/// test inline additionalProperties
///
/// Thrown when fails to make API call
- /// request body
+ /// request body
///
- public void TestInlineAdditionalProperties (Object param)
+ public void TestInlineAdditionalProperties (string requestBody)
{
- TestInlineAdditionalPropertiesWithHttpInfo(param);
+ TestInlineAdditionalPropertiesWithHttpInfo(requestBody);
}
///
/// test inline additionalProperties
///
/// Thrown when fails to make API call
- /// request body
+ /// request body
/// ApiResponse of Object(void)
- public ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Object param)
+ public ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (string requestBody)
{
- // verify the required parameter 'param' is set
- if (param == null)
- throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties");
+ // verify the required parameter 'requestBody' is set
+ if (requestBody == null)
+ throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties");
var localVarPath = "./fake/inline-additionalProperties";
var localVarPathParams = new Dictionary();
@@ -1751,13 +1954,13 @@ namespace IO.Swagger.Api
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (param != null && param.GetType() != typeof(byte[]))
+ if (requestBody != null && requestBody.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter
}
else
{
- localVarPostBody = param; // byte array
+ localVarPostBody = requestBody; // byte array
}
@@ -1783,11 +1986,11 @@ namespace IO.Swagger.Api
/// test inline additionalProperties
///
/// Thrown when fails to make API call
- /// request body
+ /// request body
/// Task of void
- public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Object param)
+ public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (string requestBody)
{
- await TestInlineAdditionalPropertiesAsyncWithHttpInfo(param);
+ await TestInlineAdditionalPropertiesAsyncWithHttpInfo(requestBody);
}
@@ -1795,13 +1998,13 @@ namespace IO.Swagger.Api
/// test inline additionalProperties
///
/// Thrown when fails to make API call
- /// request body
+ /// request body
/// Task of ApiResponse
- public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Object param)
+ public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesAsyncWithHttpInfo (string requestBody)
{
- // verify the required parameter 'param' is set
- if (param == null)
- throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties");
+ // verify the required parameter 'requestBody' is set
+ if (requestBody == null)
+ throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties");
var localVarPath = "./fake/inline-additionalProperties";
var localVarPathParams = new Dictionary();
@@ -1824,13 +2027,13 @@ namespace IO.Swagger.Api
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (param != null && param.GetType() != typeof(byte[]))
+ if (requestBody != null && requestBody.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter
}
else
{
- localVarPostBody = param; // byte array
+ localVarPostBody = requestBody; // byte array
}
@@ -1890,7 +2093,7 @@ namespace IO.Swagger.Api
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "application/json"
+ "application/x-www-form-urlencoded"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
@@ -1962,7 +2165,7 @@ namespace IO.Swagger.Api
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
- "application/json"
+ "application/x-www-form-urlencoded"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/FakeClassnameTags123Api.cs
index a4d772b224d..0bea3dcfba9 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/FakeClassnameTags123Api.cs
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/FakeClassnameTags123Api.cs
@@ -28,46 +28,46 @@ namespace IO.Swagger.Api
/// To test class name in snake case
///
///
- ///
+ /// To test class name in snake case
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ModelClient
- ModelClient TestClassname (ModelClient body);
+ ModelClient TestClassname (ModelClient modelClient);
///
/// To test class name in snake case
///
///
- ///
+ /// To test class name in snake case
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ApiResponse of ModelClient
- ApiResponse TestClassnameWithHttpInfo (ModelClient body);
+ ApiResponse TestClassnameWithHttpInfo (ModelClient modelClient);
#endregion Synchronous Operations
#region Asynchronous Operations
///
/// To test class name in snake case
///
///
- ///
+ /// To test class name in snake case
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ModelClient
- System.Threading.Tasks.Task TestClassnameAsync (ModelClient body);
+ System.Threading.Tasks.Task TestClassnameAsync (ModelClient modelClient);
///
/// To test class name in snake case
///
///
- ///
+ /// To test class name in snake case
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ApiResponse (ModelClient)
- System.Threading.Tasks.Task> TestClassnameAsyncWithHttpInfo (ModelClient body);
+ System.Threading.Tasks.Task> TestClassnameAsyncWithHttpInfo (ModelClient modelClient);
#endregion Asynchronous Operations
}
@@ -169,28 +169,28 @@ namespace IO.Swagger.Api
}
///
- /// To test class name in snake case
+ /// To test class name in snake case To test class name in snake case
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ModelClient
- public ModelClient TestClassname (ModelClient body)
+ public ModelClient TestClassname (ModelClient modelClient)
{
- ApiResponse localVarResponse = TestClassnameWithHttpInfo(body);
+ ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient);
return localVarResponse.Data;
}
///
- /// To test class name in snake case
+ /// To test class name in snake case To test class name in snake case
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// ApiResponse of ModelClient
- public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body)
+ public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient modelClient)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
+ // verify the required parameter 'modelClient' is set
+ if (modelClient == null)
+ throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
var localVarPath = "./fake_classname_test";
var localVarPathParams = new Dictionary();
@@ -214,13 +214,13 @@ namespace IO.Swagger.Api
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (modelClient != null && modelClient.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = modelClient; // byte array
}
// authentication (api_key_query) required
@@ -248,29 +248,29 @@ namespace IO.Swagger.Api
}
///
- /// To test class name in snake case
+ /// To test class name in snake case To test class name in snake case
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ModelClient
- public async System.Threading.Tasks.Task TestClassnameAsync (ModelClient body)
+ public async System.Threading.Tasks.Task TestClassnameAsync (ModelClient modelClient)
{
- ApiResponse localVarResponse = await TestClassnameAsyncWithHttpInfo(body);
+ ApiResponse localVarResponse = await TestClassnameAsyncWithHttpInfo(modelClient);
return localVarResponse.Data;
}
///
- /// To test class name in snake case
+ /// To test class name in snake case To test class name in snake case
///
/// Thrown when fails to make API call
- /// client model
+ /// client model
/// Task of ApiResponse (ModelClient)
- public async System.Threading.Tasks.Task> TestClassnameAsyncWithHttpInfo (ModelClient body)
+ public async System.Threading.Tasks.Task> TestClassnameAsyncWithHttpInfo (ModelClient modelClient)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
+ // verify the required parameter 'modelClient' is set
+ if (modelClient == null)
+ throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
var localVarPath = "./fake_classname_test";
var localVarPathParams = new Dictionary();
@@ -294,13 +294,13 @@ namespace IO.Swagger.Api
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (modelClient != null && modelClient.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = modelClient; // byte array
}
// authentication (api_key_query) required
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/PetApi.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/PetApi.cs
index 6ca3bbf8ff2..560daad827a 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/PetApi.cs
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/PetApi.cs
@@ -31,9 +31,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
///
- void AddPet (Pet body);
+ void AddPet (Pet pet);
///
/// Add a new pet to the store
@@ -42,9 +42,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
/// ApiResponse of Object(void)
- ApiResponse AddPetWithHttpInfo (Pet body);
+ ApiResponse AddPetWithHttpInfo (Pet pet);
///
/// Deletes a pet
///
@@ -138,9 +138,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
///
- void UpdatePet (Pet body);
+ void UpdatePet (Pet pet);
///
/// Update an existing pet
@@ -149,9 +149,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
/// ApiResponse of Object(void)
- ApiResponse UpdatePetWithHttpInfo (Pet body);
+ ApiResponse UpdatePetWithHttpInfo (Pet pet);
///
/// Updates a pet in the store with form data
///
@@ -211,9 +211,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
/// Task of void
- System.Threading.Tasks.Task AddPetAsync (Pet body);
+ System.Threading.Tasks.Task AddPetAsync (Pet pet);
///
/// Add a new pet to the store
@@ -222,9 +222,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
/// Task of ApiResponse
- System.Threading.Tasks.Task> AddPetAsyncWithHttpInfo (Pet body);
+ System.Threading.Tasks.Task> AddPetAsyncWithHttpInfo (Pet pet);
///
/// Deletes a pet
///
@@ -318,9 +318,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
/// Task of void
- System.Threading.Tasks.Task UpdatePetAsync (Pet body);
+ System.Threading.Tasks.Task UpdatePetAsync (Pet pet);
///
/// Update an existing pet
@@ -329,9 +329,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
/// Task of ApiResponse
- System.Threading.Tasks.Task> UpdatePetAsyncWithHttpInfo (Pet body);
+ System.Threading.Tasks.Task> UpdatePetAsyncWithHttpInfo (Pet pet);
///
/// Updates a pet in the store with form data
///
@@ -486,24 +486,24 @@ namespace IO.Swagger.Api
/// Add a new pet to the store
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
///
- public void AddPet (Pet body)
+ public void AddPet (Pet pet)
{
- AddPetWithHttpInfo(body);
+ AddPetWithHttpInfo(pet);
}
///
/// Add a new pet to the store
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
/// ApiResponse of Object(void)
- public ApiResponse AddPetWithHttpInfo (Pet body)
+ public ApiResponse AddPetWithHttpInfo (Pet pet)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
+ // verify the required parameter 'pet' is set
+ if (pet == null)
+ throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
var localVarPath = "./pet";
var localVarPathParams = new Dictionary();
@@ -522,20 +522,18 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (pet != null && pet.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = pet; // byte array
}
// authentication (petstore_auth) required
@@ -567,11 +565,11 @@ namespace IO.Swagger.Api
/// Add a new pet to the store
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
/// Task of void
- public async System.Threading.Tasks.Task AddPetAsync (Pet body)
+ public async System.Threading.Tasks.Task AddPetAsync (Pet pet)
{
- await AddPetAsyncWithHttpInfo(body);
+ await AddPetAsyncWithHttpInfo(pet);
}
@@ -579,13 +577,13 @@ namespace IO.Swagger.Api
/// Add a new pet to the store
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
/// Task of ApiResponse
- public async System.Threading.Tasks.Task> AddPetAsyncWithHttpInfo (Pet body)
+ public async System.Threading.Tasks.Task> AddPetAsyncWithHttpInfo (Pet pet)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
+ // verify the required parameter 'pet' is set
+ if (pet == null)
+ throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
var localVarPath = "./pet";
var localVarPathParams = new Dictionary();
@@ -604,20 +602,18 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (pet != null && pet.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = pet; // byte array
}
// authentication (petstore_auth) required
@@ -685,8 +681,6 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -761,8 +755,6 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -1239,24 +1231,24 @@ namespace IO.Swagger.Api
/// Update an existing pet
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
///
- public void UpdatePet (Pet body)
+ public void UpdatePet (Pet pet)
{
- UpdatePetWithHttpInfo(body);
+ UpdatePetWithHttpInfo(pet);
}
///
/// Update an existing pet
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
/// ApiResponse of Object(void)
- public ApiResponse UpdatePetWithHttpInfo (Pet body)
+ public ApiResponse UpdatePetWithHttpInfo (Pet pet)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
+ // verify the required parameter 'pet' is set
+ if (pet == null)
+ throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
var localVarPath = "./pet";
var localVarPathParams = new Dictionary();
@@ -1275,20 +1267,18 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (pet != null && pet.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = pet; // byte array
}
// authentication (petstore_auth) required
@@ -1320,11 +1310,11 @@ namespace IO.Swagger.Api
/// Update an existing pet
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
/// Task of void
- public async System.Threading.Tasks.Task UpdatePetAsync (Pet body)
+ public async System.Threading.Tasks.Task UpdatePetAsync (Pet pet)
{
- await UpdatePetAsyncWithHttpInfo(body);
+ await UpdatePetAsyncWithHttpInfo(pet);
}
@@ -1332,13 +1322,13 @@ namespace IO.Swagger.Api
/// Update an existing pet
///
/// Thrown when fails to make API call
- /// Pet object that needs to be added to the store
+ /// Pet object that needs to be added to the store
/// Task of ApiResponse
- public async System.Threading.Tasks.Task> UpdatePetAsyncWithHttpInfo (Pet body)
+ public async System.Threading.Tasks.Task> UpdatePetAsyncWithHttpInfo (Pet pet)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
+ // verify the required parameter 'pet' is set
+ if (pet == null)
+ throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
var localVarPath = "./pet";
var localVarPathParams = new Dictionary();
@@ -1357,20 +1347,18 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (pet != null && pet.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = pet; // byte array
}
// authentication (petstore_auth) required
@@ -1441,8 +1429,6 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -1521,8 +1507,6 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/StoreApi.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/StoreApi.cs
index a62138a577f..67131da4186 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/StoreApi.cs
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/StoreApi.cs
@@ -92,9 +92,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// order placed for purchasing the pet
+ /// order placed for purchasing the pet
/// Order
- Order PlaceOrder (Order body);
+ Order PlaceOrder (Order order);
///
/// Place an order for a pet
@@ -103,9 +103,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// order placed for purchasing the pet
+ /// order placed for purchasing the pet
/// ApiResponse of Order
- ApiResponse PlaceOrderWithHttpInfo (Order body);
+ ApiResponse PlaceOrderWithHttpInfo (Order order);
#endregion Synchronous Operations
#region Asynchronous Operations
///
@@ -176,9 +176,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// order placed for purchasing the pet
+ /// order placed for purchasing the pet
/// Task of Order
- System.Threading.Tasks.Task PlaceOrderAsync (Order body);
+ System.Threading.Tasks.Task PlaceOrderAsync (Order order);
///
/// Place an order for a pet
@@ -187,9 +187,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// order placed for purchasing the pet
+ /// order placed for purchasing the pet
/// Task of ApiResponse (Order)
- System.Threading.Tasks.Task> PlaceOrderAsyncWithHttpInfo (Order body);
+ System.Threading.Tasks.Task> PlaceOrderAsyncWithHttpInfo (Order order);
#endregion Asynchronous Operations
}
@@ -328,8 +328,6 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -395,8 +393,6 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -693,11 +689,11 @@ namespace IO.Swagger.Api
/// Place an order for a pet
///
/// Thrown when fails to make API call
- /// order placed for purchasing the pet
+ /// order placed for purchasing the pet
/// Order
- public Order PlaceOrder (Order body)
+ public Order PlaceOrder (Order order)
{
- ApiResponse localVarResponse = PlaceOrderWithHttpInfo(body);
+ ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order);
return localVarResponse.Data;
}
@@ -705,13 +701,13 @@ namespace IO.Swagger.Api
/// Place an order for a pet
///
/// Thrown when fails to make API call
- /// order placed for purchasing the pet
+ /// order placed for purchasing the pet
/// ApiResponse of Order
- public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body)
+ public ApiResponse< Order > PlaceOrderWithHttpInfo (Order order)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
+ // verify the required parameter 'order' is set
+ if (order == null)
+ throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
var localVarPath = "./store/order";
var localVarPathParams = new Dictionary();
@@ -735,13 +731,13 @@ namespace IO.Swagger.Api
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (order != null && order.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = order; // byte array
}
@@ -767,11 +763,11 @@ namespace IO.Swagger.Api
/// Place an order for a pet
///
/// Thrown when fails to make API call
- /// order placed for purchasing the pet
+ /// order placed for purchasing the pet
/// Task of Order
- public async System.Threading.Tasks.Task PlaceOrderAsync (Order body)
+ public async System.Threading.Tasks.Task PlaceOrderAsync (Order order)
{
- ApiResponse localVarResponse = await PlaceOrderAsyncWithHttpInfo(body);
+ ApiResponse localVarResponse = await PlaceOrderAsyncWithHttpInfo(order);
return localVarResponse.Data;
}
@@ -780,13 +776,13 @@ namespace IO.Swagger.Api
/// Place an order for a pet
///
/// Thrown when fails to make API call
- /// order placed for purchasing the pet
+ /// order placed for purchasing the pet
/// Task of ApiResponse (Order)
- public async System.Threading.Tasks.Task> PlaceOrderAsyncWithHttpInfo (Order body)
+ public async System.Threading.Tasks.Task> PlaceOrderAsyncWithHttpInfo (Order order)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
+ // verify the required parameter 'order' is set
+ if (order == null)
+ throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
var localVarPath = "./store/order";
var localVarPathParams = new Dictionary();
@@ -810,13 +806,13 @@ namespace IO.Swagger.Api
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (order != null && order.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = order; // byte array
}
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/UserApi.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/UserApi.cs
index 5d2dea93328..e6393552f07 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/UserApi.cs
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Api/UserApi.cs
@@ -31,9 +31,9 @@ namespace IO.Swagger.Api
/// This can only be done by the logged in user.
///
/// Thrown when fails to make API call
- /// Created user object
+ /// Created user object
///
- void CreateUser (User body);
+ void CreateUser (User user);
///
/// Create user
@@ -42,9 +42,9 @@ namespace IO.Swagger.Api
/// This can only be done by the logged in user.
///
/// Thrown when fails to make API call
- /// Created user object
+ /// Created user object
/// ApiResponse of Object(void)
- ApiResponse CreateUserWithHttpInfo (User body);
+ ApiResponse CreateUserWithHttpInfo (User user);
///
/// Creates list of users with given input array
///
@@ -52,9 +52,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
///
- void CreateUsersWithArrayInput (List body);
+ void CreateUsersWithArrayInput (List user);
///
/// Creates list of users with given input array
@@ -63,9 +63,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
/// ApiResponse of Object(void)
- ApiResponse CreateUsersWithArrayInputWithHttpInfo (List body);
+ ApiResponse CreateUsersWithArrayInputWithHttpInfo (List user);
///
/// Creates list of users with given input array
///
@@ -73,9 +73,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
///
- void CreateUsersWithListInput (List body);
+ void CreateUsersWithListInput (List user);
///
/// Creates list of users with given input array
@@ -84,9 +84,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
/// ApiResponse of Object(void)
- ApiResponse CreateUsersWithListInputWithHttpInfo (List body);
+ ApiResponse CreateUsersWithListInputWithHttpInfo (List user);
///
/// Delete user
///
@@ -115,7 +115,7 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// The name that needs to be fetched. Use user1 for testing.
+ /// The name that needs to be fetched. Use user1 for testing.
/// User
User GetUserByName (string username);
@@ -126,7 +126,7 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// The name that needs to be fetched. Use user1 for testing.
+ /// The name that needs to be fetched. Use user1 for testing.
/// ApiResponse of User
ApiResponse GetUserByNameWithHttpInfo (string username);
///
@@ -179,9 +179,9 @@ namespace IO.Swagger.Api
///
/// Thrown when fails to make API call
/// name that need to be deleted
- /// Updated user object
+ /// Updated user object
///
- void UpdateUser (string username, User body);
+ void UpdateUser (string username, User user);
///
/// Updated user
@@ -191,9 +191,9 @@ namespace IO.Swagger.Api
///
/// Thrown when fails to make API call
/// name that need to be deleted
- /// Updated user object
+ /// Updated user object
/// ApiResponse of Object(void)
- ApiResponse UpdateUserWithHttpInfo (string username, User body);
+ ApiResponse UpdateUserWithHttpInfo (string username, User user);
#endregion Synchronous Operations
#region Asynchronous Operations
///
@@ -203,9 +203,9 @@ namespace IO.Swagger.Api
/// This can only be done by the logged in user.
///
/// Thrown when fails to make API call
- /// Created user object
+ /// Created user object
/// Task of void
- System.Threading.Tasks.Task CreateUserAsync (User body);
+ System.Threading.Tasks.Task CreateUserAsync (User user);
///
/// Create user
@@ -214,9 +214,9 @@ namespace IO.Swagger.Api
/// This can only be done by the logged in user.
///
/// Thrown when fails to make API call
- /// Created user object
+ /// Created user object
/// Task of ApiResponse
- System.Threading.Tasks.Task> CreateUserAsyncWithHttpInfo (User body);
+ System.Threading.Tasks.Task> CreateUserAsyncWithHttpInfo (User user);
///
/// Creates list of users with given input array
///
@@ -224,9 +224,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
/// Task of void
- System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List body);
+ System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List user);
///
/// Creates list of users with given input array
@@ -235,9 +235,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
/// Task of ApiResponse
- System.Threading.Tasks.Task> CreateUsersWithArrayInputAsyncWithHttpInfo (List body);
+ System.Threading.Tasks.Task> CreateUsersWithArrayInputAsyncWithHttpInfo (List user);
///
/// Creates list of users with given input array
///
@@ -245,9 +245,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
/// Task of void
- System.Threading.Tasks.Task CreateUsersWithListInputAsync (List body);
+ System.Threading.Tasks.Task CreateUsersWithListInputAsync (List user);
///
/// Creates list of users with given input array
@@ -256,9 +256,9 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
/// Task of ApiResponse
- System.Threading.Tasks.Task> CreateUsersWithListInputAsyncWithHttpInfo (List body);
+ System.Threading.Tasks.Task> CreateUsersWithListInputAsyncWithHttpInfo (List user);
///
/// Delete user
///
@@ -287,7 +287,7 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// The name that needs to be fetched. Use user1 for testing.
+ /// The name that needs to be fetched. Use user1 for testing.
/// Task of User
System.Threading.Tasks.Task GetUserByNameAsync (string username);
@@ -298,7 +298,7 @@ namespace IO.Swagger.Api
///
///
/// Thrown when fails to make API call
- /// The name that needs to be fetched. Use user1 for testing.
+ /// The name that needs to be fetched. Use user1 for testing.
/// Task of ApiResponse (User)
System.Threading.Tasks.Task> GetUserByNameAsyncWithHttpInfo (string username);
///
@@ -351,9 +351,9 @@ namespace IO.Swagger.Api
///
/// Thrown when fails to make API call
/// name that need to be deleted
- /// Updated user object
+ /// Updated user object
/// Task of void
- System.Threading.Tasks.Task UpdateUserAsync (string username, User body);
+ System.Threading.Tasks.Task UpdateUserAsync (string username, User user);
///
/// Updated user
@@ -363,9 +363,9 @@ namespace IO.Swagger.Api
///
/// Thrown when fails to make API call
/// name that need to be deleted
- /// Updated user object
+ /// Updated user object
/// Task of ApiResponse
- System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo (string username, User body);
+ System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo (string username, User user);
#endregion Asynchronous Operations
}
@@ -470,24 +470,24 @@ namespace IO.Swagger.Api
/// Create user This can only be done by the logged in user.
///
/// Thrown when fails to make API call
- /// Created user object
+ /// Created user object
///
- public void CreateUser (User body)
+ public void CreateUser (User user)
{
- CreateUserWithHttpInfo(body);
+ CreateUserWithHttpInfo(user);
}
///
/// Create user This can only be done by the logged in user.
///
/// Thrown when fails to make API call
- /// Created user object
+ /// Created user object
/// ApiResponse of Object(void)
- public ApiResponse CreateUserWithHttpInfo (User body)
+ public ApiResponse CreateUserWithHttpInfo (User user)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
+ // verify the required parameter 'user' is set
+ if (user == null)
+ throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
var localVarPath = "./user";
var localVarPathParams = new Dictionary();
@@ -504,20 +504,18 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (user != null && user.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = user; // byte array
}
@@ -543,11 +541,11 @@ namespace IO.Swagger.Api
/// Create user This can only be done by the logged in user.
///
/// Thrown when fails to make API call
- /// Created user object
+ /// Created user object
/// Task of void
- public async System.Threading.Tasks.Task CreateUserAsync (User body)
+ public async System.Threading.Tasks.Task CreateUserAsync (User user)
{
- await CreateUserAsyncWithHttpInfo(body);
+ await CreateUserAsyncWithHttpInfo(user);
}
@@ -555,13 +553,13 @@ namespace IO.Swagger.Api
/// Create user This can only be done by the logged in user.
///
/// Thrown when fails to make API call
- /// Created user object
+ /// Created user object
/// Task of ApiResponse
- public async System.Threading.Tasks.Task> CreateUserAsyncWithHttpInfo (User body)
+ public async System.Threading.Tasks.Task> CreateUserAsyncWithHttpInfo (User user)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
+ // verify the required parameter 'user' is set
+ if (user == null)
+ throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
var localVarPath = "./user";
var localVarPathParams = new Dictionary();
@@ -578,20 +576,18 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (user != null && user.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = user; // byte array
}
@@ -617,24 +613,24 @@ namespace IO.Swagger.Api
/// Creates list of users with given input array
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
///
- public void CreateUsersWithArrayInput (List body)
+ public void CreateUsersWithArrayInput (List user)
{
- CreateUsersWithArrayInputWithHttpInfo(body);
+ CreateUsersWithArrayInputWithHttpInfo(user);
}
///
/// Creates list of users with given input array
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
/// ApiResponse of Object(void)
- public ApiResponse CreateUsersWithArrayInputWithHttpInfo (List body)
+ public ApiResponse CreateUsersWithArrayInputWithHttpInfo (List user)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
+ // verify the required parameter 'user' is set
+ if (user == null)
+ throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
var localVarPath = "./user/createWithArray";
var localVarPathParams = new Dictionary();
@@ -651,20 +647,18 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (user != null && user.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = user; // byte array
}
@@ -690,11 +684,11 @@ namespace IO.Swagger.Api
/// Creates list of users with given input array
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
/// Task of void
- public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List body)
+ public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List user)
{
- await CreateUsersWithArrayInputAsyncWithHttpInfo(body);
+ await CreateUsersWithArrayInputAsyncWithHttpInfo(user);
}
@@ -702,13 +696,13 @@ namespace IO.Swagger.Api
/// Creates list of users with given input array
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
/// Task of ApiResponse
- public async System.Threading.Tasks.Task> CreateUsersWithArrayInputAsyncWithHttpInfo (List body)
+ public async System.Threading.Tasks.Task> CreateUsersWithArrayInputAsyncWithHttpInfo (List user)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
+ // verify the required parameter 'user' is set
+ if (user == null)
+ throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
var localVarPath = "./user/createWithArray";
var localVarPathParams = new Dictionary();
@@ -725,20 +719,18 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (user != null && user.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = user; // byte array
}
@@ -764,24 +756,24 @@ namespace IO.Swagger.Api
/// Creates list of users with given input array
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
///
- public void CreateUsersWithListInput (List body)
+ public void CreateUsersWithListInput (List user)
{
- CreateUsersWithListInputWithHttpInfo(body);
+ CreateUsersWithListInputWithHttpInfo(user);
}
///
/// Creates list of users with given input array
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
/// ApiResponse of Object(void)
- public ApiResponse CreateUsersWithListInputWithHttpInfo (List body)
+ public ApiResponse CreateUsersWithListInputWithHttpInfo (List user)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
+ // verify the required parameter 'user' is set
+ if (user == null)
+ throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
var localVarPath = "./user/createWithList";
var localVarPathParams = new Dictionary();
@@ -798,20 +790,18 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (user != null && user.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = user; // byte array
}
@@ -837,11 +827,11 @@ namespace IO.Swagger.Api
/// Creates list of users with given input array
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
/// Task of void
- public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List body)
+ public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List user)
{
- await CreateUsersWithListInputAsyncWithHttpInfo(body);
+ await CreateUsersWithListInputAsyncWithHttpInfo(user);
}
@@ -849,13 +839,13 @@ namespace IO.Swagger.Api
/// Creates list of users with given input array
///
/// Thrown when fails to make API call
- /// List of user object
+ /// List of user object
/// Task of ApiResponse
- public async System.Threading.Tasks.Task> CreateUsersWithListInputAsyncWithHttpInfo (List body)
+ public async System.Threading.Tasks.Task> CreateUsersWithListInputAsyncWithHttpInfo (List user)
{
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
+ // verify the required parameter 'user' is set
+ if (user == null)
+ throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
var localVarPath = "./user/createWithList";
var localVarPathParams = new Dictionary();
@@ -872,20 +862,18 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
- if (body != null && body.GetType() != typeof(byte[]))
+ if (user != null && user.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = user; // byte array
}
@@ -945,8 +933,6 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -1012,8 +998,6 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -1044,7 +1028,7 @@ namespace IO.Swagger.Api
/// Get user by user name
///
/// Thrown when fails to make API call
- /// The name that needs to be fetched. Use user1 for testing.
+ /// The name that needs to be fetched. Use user1 for testing.
/// User
public User GetUserByName (string username)
{
@@ -1056,7 +1040,7 @@ namespace IO.Swagger.Api
/// Get user by user name
///
/// Thrown when fails to make API call
- /// The name that needs to be fetched. Use user1 for testing.
+ /// The name that needs to be fetched. Use user1 for testing.
/// ApiResponse of User
public ApiResponse< User > GetUserByNameWithHttpInfo (string username)
{
@@ -1111,7 +1095,7 @@ namespace IO.Swagger.Api
/// Get user by user name
///
/// Thrown when fails to make API call
- /// The name that needs to be fetched. Use user1 for testing.
+ /// The name that needs to be fetched. Use user1 for testing.
/// Task of User
public async System.Threading.Tasks.Task GetUserByNameAsync (string username)
{
@@ -1124,7 +1108,7 @@ namespace IO.Swagger.Api
/// Get user by user name
///
/// Thrown when fails to make API call
- /// The name that needs to be fetched. Use user1 for testing.
+ /// The name that needs to be fetched. Use user1 for testing.
/// Task of ApiResponse (User)
public async System.Threading.Tasks.Task> GetUserByNameAsyncWithHttpInfo (string username)
{
@@ -1355,8 +1339,6 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -1416,8 +1398,6 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
@@ -1448,11 +1428,11 @@ namespace IO.Swagger.Api
///
/// Thrown when fails to make API call
/// name that need to be deleted
- /// Updated user object
+ /// Updated user object
///
- public void UpdateUser (string username, User body)
+ public void UpdateUser (string username, User user)
{
- UpdateUserWithHttpInfo(username, body);
+ UpdateUserWithHttpInfo(username, user);
}
///
@@ -1460,16 +1440,16 @@ namespace IO.Swagger.Api
///
/// Thrown when fails to make API call
/// name that need to be deleted
- /// Updated user object
+ /// Updated user object
/// ApiResponse of Object(void)
- public ApiResponse UpdateUserWithHttpInfo (string username, User body)
+ public ApiResponse UpdateUserWithHttpInfo (string username, User user)
{
// verify the required parameter 'username' is set
if (username == null)
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
+ // verify the required parameter 'user' is set
+ if (user == null)
+ throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
var localVarPath = "./user/{username}";
var localVarPathParams = new Dictionary();
@@ -1486,21 +1466,19 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter
- if (body != null && body.GetType() != typeof(byte[]))
+ if (user != null && user.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = user; // byte array
}
@@ -1527,11 +1505,11 @@ namespace IO.Swagger.Api
///
/// Thrown when fails to make API call
/// name that need to be deleted
- /// Updated user object
+ /// Updated user object
/// Task of void
- public async System.Threading.Tasks.Task UpdateUserAsync (string username, User body)
+ public async System.Threading.Tasks.Task UpdateUserAsync (string username, User user)
{
- await UpdateUserAsyncWithHttpInfo(username, body);
+ await UpdateUserAsyncWithHttpInfo(username, user);
}
@@ -1540,16 +1518,16 @@ namespace IO.Swagger.Api
///
/// Thrown when fails to make API call
/// name that need to be deleted
- /// Updated user object
+ /// Updated user object
/// Task of ApiResponse
- public async System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo (string username, User body)
+ public async System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo (string username, User user)
{
// verify the required parameter 'username' is set
if (username == null)
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
- // verify the required parameter 'body' is set
- if (body == null)
- throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
+ // verify the required parameter 'user' is set
+ if (user == null)
+ throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
var localVarPath = "./user/{username}";
var localVarPathParams = new Dictionary();
@@ -1566,21 +1544,19 @@ namespace IO.Swagger.Api
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
- "application/xml",
- "application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter
- if (body != null && body.GetType() != typeof(byte[]))
+ if (user != null && user.GetType() != typeof(byte[]))
{
- localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
}
else
{
- localVarPostBody = body; // byte array
+ localVarPostBody = user; // byte array
}
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Client/GlobalConfiguration.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Client/GlobalConfiguration.cs
index d8b196fc3e8..5ec786b4956 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Client/GlobalConfiguration.cs
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Client/GlobalConfiguration.cs
@@ -25,7 +25,7 @@ namespace IO.Swagger.Client
///
///
/// A customized implementation via partial class may reside in another file and may
- /// be excluded from automatic generation via a .swagger-codegen-ignore file.
+ /// be excluded from automatic generation via a .openapi-generator-ignore file.
///
public partial class GlobalConfiguration : Configuration
{
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs
index 015746e47c4..7e51257c2e8 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs
@@ -37,7 +37,7 @@ namespace IO.Swagger.Model
/// Initializes a new instance of the class.
///
/// declawed.
- public Cat(bool? declawed = default(bool?), string className = "Cat", string color = "red") : base(className, color)
+ public Cat(bool? declawed = default(bool?), string className = default(string), string color = "red") : base(className, color)
{
this.Declawed = declawed;
}
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Dog.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Dog.cs
index 07cb7d55fa1..351d5d7cf0b 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Dog.cs
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Dog.cs
@@ -37,7 +37,7 @@ namespace IO.Swagger.Model
/// Initializes a new instance of the class.
///
/// breed.
- public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color)
+ public Dog(string breed = default(string), string className = default(string), string color = "red") : base(className, color)
{
this.Breed = breed;
}
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs
index 8a26f250c55..9669d139018 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs
@@ -60,6 +60,37 @@ namespace IO.Swagger.Model
[DataMember(Name="enum_string", EmitDefaultValue=false)]
public EnumStringEnum? EnumString { get; set; }
///
+ /// Defines EnumStringRequired
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum EnumStringRequiredEnum
+ {
+
+ ///
+ /// Enum UPPER for value: UPPER
+ ///
+ [EnumMember(Value = "UPPER")]
+ UPPER = 1,
+
+ ///
+ /// Enum Lower for value: lower
+ ///
+ [EnumMember(Value = "lower")]
+ Lower = 2,
+
+ ///
+ /// Enum Empty for value:
+ ///
+ [EnumMember(Value = "")]
+ Empty = 3
+ }
+
+ ///
+ /// Gets or Sets EnumStringRequired
+ ///
+ [DataMember(Name="enum_string_required", EmitDefaultValue=false)]
+ public EnumStringRequiredEnum EnumStringRequired { get; set; }
+ ///
/// Defines EnumInteger
///
public enum EnumIntegerEnum
@@ -116,12 +147,27 @@ namespace IO.Swagger.Model
///
/// Initializes a new instance of the class.
///
+ [JsonConstructorAttribute]
+ protected EnumTest() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
/// enumString.
+ /// enumStringRequired (required).
/// enumInteger.
/// enumNumber.
/// outerEnum.
- public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?))
+ public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?))
{
+ // to ensure "enumStringRequired" is required (not null)
+ if (enumStringRequired == null)
+ {
+ throw new InvalidDataException("enumStringRequired is a required property for EnumTest and cannot be null");
+ }
+ else
+ {
+ this.EnumStringRequired = enumStringRequired;
+ }
this.EnumString = enumString;
this.EnumInteger = enumInteger;
this.EnumNumber = enumNumber;
@@ -132,6 +178,7 @@ namespace IO.Swagger.Model
+
///
/// Returns the string presentation of the object
///
@@ -141,6 +188,7 @@ namespace IO.Swagger.Model
var sb = new StringBuilder();
sb.Append("class EnumTest {\n");
sb.Append(" EnumString: ").Append(EnumString).Append("\n");
+ sb.Append(" EnumStringRequired: ").Append(EnumStringRequired).Append("\n");
sb.Append(" EnumInteger: ").Append(EnumInteger).Append("\n");
sb.Append(" EnumNumber: ").Append(EnumNumber).Append("\n");
sb.Append(" OuterEnum: ").Append(OuterEnum).Append("\n");
@@ -183,6 +231,11 @@ namespace IO.Swagger.Model
(this.EnumString != null &&
this.EnumString.Equals(input.EnumString))
) &&
+ (
+ this.EnumStringRequired == input.EnumStringRequired ||
+ (this.EnumStringRequired != null &&
+ this.EnumStringRequired.Equals(input.EnumStringRequired))
+ ) &&
(
this.EnumInteger == input.EnumInteger ||
(this.EnumInteger != null &&
@@ -211,6 +264,8 @@ namespace IO.Swagger.Model
int hashCode = 41;
if (this.EnumString != null)
hashCode = hashCode * 59 + this.EnumString.GetHashCode();
+ if (this.EnumStringRequired != null)
+ hashCode = hashCode * 59 + this.EnumStringRequired.GetHashCode();
if (this.EnumInteger != null)
hashCode = hashCode * 59 + this.EnumInteger.GetHashCode();
if (this.EnumNumber != null)
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs
index d7af9916a9f..fa5c4ff9b8e 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs
@@ -49,7 +49,7 @@ namespace IO.Swagger.Model
/// dateTime.
/// uuid.
/// password (required).
- public FormatTest(int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), decimal? number = default(decimal?), float? _float = default(float?), double? _double = default(double?), string _string = default(string), byte[] _byte = default(byte[]), byte[] binary = default(byte[]), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string))
+ public FormatTest(int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), decimal? number = default(decimal?), float? _float = default(float?), double? _double = default(double?), string _string = default(string), byte[] _byte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string))
{
// to ensure "number" is required (not null)
if (number == null)
@@ -150,7 +150,7 @@ namespace IO.Swagger.Model
/// Gets or Sets Binary
///
[DataMember(Name="binary", EmitDefaultValue=false)]
- public byte[] Binary { get; set; }
+ public System.IO.Stream Binary { get; set; }
///
/// Gets or Sets Date
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs
index 8e584d1d945..d6955659f4a 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs
@@ -31,10 +31,10 @@ namespace IO.Swagger.Model
///
/// Initializes a new instance of the class.
///
- /// _123List.
- public List(string _123List = default(string))
+ /// _123list.
+ public List(string _123list = default(string))
{
- this._123List = _123List;
+ this._123List = _123list;
}
///
diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs
index 0bf2d9e57cc..824de8cf988 100644
--- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs
+++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs
@@ -34,7 +34,7 @@ namespace IO.Swagger.Model
/// myNumber.
/// myString.
/// myBoolean.
- public OuterComposite(OuterNumber myNumber = default(OuterNumber), OuterString myString = default(OuterString), OuterBoolean myBoolean = default(OuterBoolean))
+ public OuterComposite(decimal? myNumber = default(decimal?), string myString = default(string), bool? myBoolean = default(bool?))
{
this.MyNumber = myNumber;
this.MyString = myString;
@@ -45,19 +45,19 @@ namespace IO.Swagger.Model
/// Gets or Sets MyNumber
///
[DataMember(Name="my_number", EmitDefaultValue=false)]
- public OuterNumber MyNumber { get; set; }
+ public decimal? MyNumber { get; set; }
///
/// Gets or Sets MyString
///
[DataMember(Name="my_string", EmitDefaultValue=false)]
- public OuterString MyString { get; set; }
+ public string MyString { get; set; }
///
/// Gets or Sets MyBoolean
///
[DataMember(Name="my_boolean", EmitDefaultValue=false)]
- public OuterBoolean MyBoolean { get; set; }
+ public bool? MyBoolean { get; set; }
///
/// Returns the string presentation of the object