From d35f4b08d9fb8b71e5dd54451827a8f83026c43d Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 5 Jan 2019 09:39:10 +0800 Subject: [PATCH] Fix various typos in the templates (Ruby, C#) (#1803) * Fix typos * update petstore samples --- .../csharp-dotnet2/Configuration.mustache | 2 +- .../csharp-refactor/Configuration.mustache | 2 +- .../resources/csharp/Configuration.mustache | 2 +- .../ruby-client/base_object.mustache | 2 +- .../src/IO.Swagger/Client/Configuration.cs | 2 +- .../ruby/lib/petstore/models/model_return.rb | 2 +- .../OpenAPIClient/.openapi-generator/VERSION | 2 +- .../Lib/OpenAPIClient/README.md | 6 +- .../Lib/OpenAPIClient/docs/PetApi.md | 16 +- .../Lib/OpenAPIClient/docs/StoreApi.md | 10 +- .../Lib/OpenAPIClient/docs/UserApi.md | 40 +-- .../Org/OpenAPITools/Api/PetApi.cs | 28 +- .../Org/OpenAPITools/Api/StoreApi.cs | 14 +- .../Org/OpenAPITools/Api/UserApi.cs | 56 ++-- .../Org/OpenAPITools/Client/Configuration.cs | 2 +- .../Org.OpenAPITools/Client/Configuration.cs | 2 +- .../Org.OpenAPITools/Client/Configuration.cs | 2 +- .../.openapi-generator/VERSION | 2 +- .../csharp/OpenAPIClientNet35/README.md | 6 +- .../OpenAPIClientNet35/docs/AnotherFakeApi.md | 8 +- .../OpenAPIClientNet35/docs/EnumTest.md | 2 +- .../csharp/OpenAPIClientNet35/docs/FakeApi.md | 40 +-- .../docs/FakeClassnameTags123Api.md | 8 +- .../csharp/OpenAPIClientNet35/docs/PetApi.md | 16 +- .../OpenAPIClientNet35/docs/StoreApi.md | 8 +- .../csharp/OpenAPIClientNet35/docs/UserApi.md | 32 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 30 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 144 ++++----- .../Api/FakeClassnameTags123Api.cs | 30 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 60 ++-- .../src/Org.OpenAPITools/Api/StoreApi.cs | 30 +- .../src/Org.OpenAPITools/Api/UserApi.cs | 120 ++++---- .../Org.OpenAPITools/Client/Configuration.cs | 2 +- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 12 +- .../.openapi-generator/VERSION | 2 +- .../csharp/OpenAPIClientNet40/README.md | 6 +- .../OpenAPIClientNet40/docs/AnotherFakeApi.md | 8 +- .../OpenAPIClientNet40/docs/EnumTest.md | 2 +- .../csharp/OpenAPIClientNet40/docs/FakeApi.md | 40 +-- .../docs/FakeClassnameTags123Api.md | 8 +- .../csharp/OpenAPIClientNet40/docs/PetApi.md | 16 +- .../OpenAPIClientNet40/docs/StoreApi.md | 8 +- .../csharp/OpenAPIClientNet40/docs/UserApi.md | 32 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 30 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 144 ++++----- .../Api/FakeClassnameTags123Api.cs | 30 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 60 ++-- .../src/Org.OpenAPITools/Api/StoreApi.cs | 30 +- .../src/Org.OpenAPITools/Api/UserApi.cs | 120 ++++---- .../Org.OpenAPITools/Client/Configuration.cs | 2 +- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 12 +- .../.openapi-generator/VERSION | 2 +- .../csharp/OpenAPIClientNetStandard/README.md | 6 +- .../docs/AnotherFakeApi.md | 8 +- .../OpenAPIClientNetStandard/docs/EnumTest.md | 2 +- .../OpenAPIClientNetStandard/docs/FakeApi.md | 40 +-- .../docs/FakeClassnameTags123Api.md | 8 +- .../OpenAPIClientNetStandard/docs/PetApi.md | 16 +- .../OpenAPIClientNetStandard/docs/StoreApi.md | 8 +- .../OpenAPIClientNetStandard/docs/UserApi.md | 32 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 60 ++-- .../src/Org.OpenAPITools/Api/FakeApi.cs | 288 +++++++++--------- .../Api/FakeClassnameTags123Api.cs | 60 ++-- .../src/Org.OpenAPITools/Api/PetApi.cs | 120 ++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 60 ++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 240 +++++++-------- .../Org.OpenAPITools/Client/Configuration.cs | 2 +- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 12 +- .../.openapi-generator/VERSION | 2 +- .../README.md | 6 +- .../docs/AnotherFakeApi.md | 8 +- .../docs/EnumTest.md | 2 +- .../docs/FakeApi.md | 40 +-- .../docs/FakeClassnameTags123Api.md | 8 +- .../docs/PetApi.md | 16 +- .../docs/StoreApi.md | 8 +- .../docs/UserApi.md | 32 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 60 ++-- .../src/Org.OpenAPITools/Api/FakeApi.cs | 288 +++++++++--------- .../Api/FakeClassnameTags123Api.cs | 60 ++-- .../src/Org.OpenAPITools/Api/PetApi.cs | 120 ++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 60 ++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 240 +++++++-------- .../Org.OpenAPITools/Client/Configuration.cs | 2 +- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 12 +- .../flutter_petstore/lib/main.dart | 2 +- .../dart/flutter_petstore/lib/main.dart | 2 +- .../models/additional_properties_class.rb | 2 +- .../ruby/lib/petstore/models/animal.rb | 2 +- .../ruby/lib/petstore/models/api_response.rb | 2 +- .../models/array_of_array_of_number_only.rb | 2 +- .../petstore/models/array_of_number_only.rb | 2 +- .../ruby/lib/petstore/models/array_test.rb | 2 +- .../lib/petstore/models/capitalization.rb | 2 +- .../petstore/ruby/lib/petstore/models/cat.rb | 2 +- .../ruby/lib/petstore/models/category.rb | 2 +- .../ruby/lib/petstore/models/class_model.rb | 2 +- .../ruby/lib/petstore/models/client.rb | 2 +- .../petstore/ruby/lib/petstore/models/dog.rb | 2 +- .../ruby/lib/petstore/models/enum_arrays.rb | 2 +- .../ruby/lib/petstore/models/enum_test.rb | 2 +- .../petstore/ruby/lib/petstore/models/file.rb | 2 +- .../petstore/models/file_schema_test_class.rb | 2 +- .../ruby/lib/petstore/models/format_test.rb | 2 +- .../lib/petstore/models/has_only_read_only.rb | 2 +- .../petstore/ruby/lib/petstore/models/list.rb | 2 +- .../ruby/lib/petstore/models/map_test.rb | 2 +- ...perties_and_additional_properties_class.rb | 2 +- .../lib/petstore/models/model200_response.rb | 2 +- .../ruby/lib/petstore/models/model_return.rb | 2 +- .../petstore/ruby/lib/petstore/models/name.rb | 2 +- .../ruby/lib/petstore/models/number_only.rb | 2 +- .../ruby/lib/petstore/models/order.rb | 2 +- .../lib/petstore/models/outer_composite.rb | 2 +- .../petstore/ruby/lib/petstore/models/pet.rb | 2 +- .../lib/petstore/models/read_only_first.rb | 2 +- .../lib/petstore/models/special_model_name.rb | 2 +- .../petstore/ruby/lib/petstore/models/tag.rb | 2 +- .../petstore/ruby/lib/petstore/models/user.rb | 2 +- .../Pods/Alamofire/README.md | 2 +- .../models/additional_properties_class.rb | 2 +- .../ruby/lib/petstore/models/animal.rb | 2 +- .../ruby/lib/petstore/models/api_response.rb | 2 +- .../models/array_of_array_of_number_only.rb | 2 +- .../petstore/models/array_of_number_only.rb | 2 +- .../ruby/lib/petstore/models/array_test.rb | 2 +- .../lib/petstore/models/capitalization.rb | 2 +- .../petstore/ruby/lib/petstore/models/cat.rb | 2 +- .../ruby/lib/petstore/models/category.rb | 2 +- .../ruby/lib/petstore/models/class_model.rb | 2 +- .../ruby/lib/petstore/models/client.rb | 2 +- .../petstore/ruby/lib/petstore/models/dog.rb | 2 +- .../ruby/lib/petstore/models/enum_arrays.rb | 2 +- .../ruby/lib/petstore/models/enum_test.rb | 2 +- .../petstore/ruby/lib/petstore/models/file.rb | 2 +- .../petstore/models/file_schema_test_class.rb | 2 +- .../petstore/ruby/lib/petstore/models/foo.rb | 2 +- .../ruby/lib/petstore/models/format_test.rb | 2 +- .../lib/petstore/models/has_only_read_only.rb | 2 +- .../models/inline_response_default.rb | 2 +- .../petstore/ruby/lib/petstore/models/list.rb | 2 +- .../ruby/lib/petstore/models/map_test.rb | 2 +- ...perties_and_additional_properties_class.rb | 2 +- .../lib/petstore/models/model200_response.rb | 2 +- .../ruby/lib/petstore/models/model_return.rb | 2 +- .../petstore/ruby/lib/petstore/models/name.rb | 2 +- .../ruby/lib/petstore/models/number_only.rb | 2 +- .../ruby/lib/petstore/models/order.rb | 2 +- .../lib/petstore/models/outer_composite.rb | 2 +- .../petstore/ruby/lib/petstore/models/pet.rb | 2 +- .../lib/petstore/models/read_only_first.rb | 2 +- .../lib/petstore/models/special_model_name.rb | 2 +- .../petstore/ruby/lib/petstore/models/tag.rb | 2 +- .../petstore/ruby/lib/petstore/models/user.rb | 2 +- 158 files changed, 1677 insertions(+), 1687 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/csharp-dotnet2/Configuration.mustache b/modules/openapi-generator/src/main/resources/csharp-dotnet2/Configuration.mustache index a175367ab74..e09f39fc601 100644 --- a/modules/openapi-generator/src/main/resources/csharp-dotnet2/Configuration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-dotnet2/Configuration.mustache @@ -84,7 +84,7 @@ namespace {{clientPackage}} private static string _dateTimeFormat = ISO8601_DATETIME_FORMAT; /// - /// Gets or sets the the date time format used when serializing in the ApiClient + /// Gets or sets the date time format used when serializing in the ApiClient /// By default, it's set to ISO 8601 - "o", for others see: /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx diff --git a/modules/openapi-generator/src/main/resources/csharp-refactor/Configuration.mustache b/modules/openapi-generator/src/main/resources/csharp-refactor/Configuration.mustache index b45ba01ae2f..7f70ee4c5e6 100644 --- a/modules/openapi-generator/src/main/resources/csharp-refactor/Configuration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-refactor/Configuration.mustache @@ -242,7 +242,7 @@ namespace {{packageName}}.Client } /// - /// Gets or sets the the date time format used when serializing in the ApiClient + /// Gets or sets the date time format used when serializing in the ApiClient /// By default, it's set to ISO 8601 - "o", for others see: /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx diff --git a/modules/openapi-generator/src/main/resources/csharp/Configuration.mustache b/modules/openapi-generator/src/main/resources/csharp/Configuration.mustache index 1d22d329ba8..65f1de6a8d8 100644 --- a/modules/openapi-generator/src/main/resources/csharp/Configuration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/Configuration.mustache @@ -322,7 +322,7 @@ namespace {{packageName}}.Client } /// - /// Gets or sets the the date time format used when serializing in the ApiClient + /// Gets or sets the date time format used when serializing in the ApiClient /// By default, it's set to ISO 8601 - "o", for others see: /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx diff --git a/modules/openapi-generator/src/main/resources/ruby-client/base_object.mustache b/modules/openapi-generator/src/main/resources/ruby-client/base_object.mustache index 9ebcde2c6c1..4a28047738a 100644 --- a/modules/openapi-generator/src/main/resources/ruby-client/base_object.mustache +++ b/modules/openapi-generator/src/main/resources/ruby-client/base_object.mustache @@ -15,7 +15,7 @@ {{/parent}} self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore-security-test/csharp/SwaggerClient/src/IO.Swagger/Client/Configuration.cs b/samples/client/petstore-security-test/csharp/SwaggerClient/src/IO.Swagger/Client/Configuration.cs index 91cf1610fc4..74980eb05f0 100644 --- a/samples/client/petstore-security-test/csharp/SwaggerClient/src/IO.Swagger/Client/Configuration.cs +++ b/samples/client/petstore-security-test/csharp/SwaggerClient/src/IO.Swagger/Client/Configuration.cs @@ -329,7 +329,7 @@ namespace IO.Swagger.Client } /// - /// Gets or sets the the date time format used when serializing in the ApiClient + /// Gets or sets the date time format used when serializing in the ApiClient /// By default, it's set to ISO 8601 - "o", for others see: /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx diff --git a/samples/client/petstore-security-test/ruby/lib/petstore/models/model_return.rb b/samples/client/petstore-security-test/ruby/lib/petstore/models/model_return.rb index 2751695da3e..e5eb0204e1c 100644 --- a/samples/client/petstore-security-test/ruby/lib/petstore/models/model_return.rb +++ b/samples/client/petstore-security-test/ruby/lib/petstore/models/model_return.rb @@ -85,7 +85,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/.openapi-generator/VERSION b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/.openapi-generator/VERSION index a6527129083..afa63656064 100644 --- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/.openapi-generator/VERSION +++ b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/.openapi-generator/VERSION @@ -1 +1 @@ -3.3.2-SNAPSHOT \ No newline at end of file +4.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/README.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/README.md index a58248e1fde..b68ca22592a 100644 --- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/README.md +++ b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/README.md @@ -53,12 +53,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(); - var pet = new Pet(); // Pet | Pet object that needs to be added to the store + var body = new Pet(); // Pet | Pet object that needs to be added to the store try { // Add a new pet to the store - apiInstance.AddPet(pet); + apiInstance.AddPet(body); } catch (Exception e) { @@ -103,8 +103,6 @@ Class | Method | HTTP request | Description - [Org.OpenAPITools.Model.ApiResponse](docs/ApiResponse.md) - [Org.OpenAPITools.Model.Category](docs/Category.md) - - [Org.OpenAPITools.Model.InlineObject](docs/InlineObject.md) - - [Org.OpenAPITools.Model.InlineObject1](docs/InlineObject1.md) - [Org.OpenAPITools.Model.Order](docs/Order.md) - [Org.OpenAPITools.Model.Pet](docs/Pet.md) - [Org.OpenAPITools.Model.Tag](docs/Tag.md) diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/PetApi.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/PetApi.md index 0051c617a1d..3ce062d25aa 100644 --- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/PetApi.md +++ b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/PetApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **AddPet** -> void AddPet (Pet pet) +> void AddPet (Pet body) Add a new pet to the store @@ -39,12 +39,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(); - var pet = new Pet(); // Pet | Pet object that needs to be added to the store + var body = new Pet(); // Pet | Pet object that needs to be added to the store try { // Add a new pet to the store - apiInstance.AddPet(pet); + apiInstance.AddPet(body); } catch (Exception e) { @@ -59,7 +59,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type @@ -339,7 +339,7 @@ Name | Type | Description | Notes # **UpdatePet** -> void UpdatePet (Pet pet) +> void UpdatePet (Pet body) Update an existing pet @@ -362,12 +362,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(); - var pet = new Pet(); // Pet | Pet object that needs to be added to the store + var body = new Pet(); // Pet | Pet object that needs to be added to the store try { // Update an existing pet - apiInstance.UpdatePet(pet); + apiInstance.UpdatePet(body); } catch (Exception e) { @@ -382,7 +382,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/StoreApi.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/StoreApi.md index c49894a3ff1..9ee43d09cc1 100644 --- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/StoreApi.md +++ b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/StoreApi.md @@ -198,7 +198,7 @@ No authorization required # **PlaceOrder** -> Order PlaceOrder (Order order) +> Order PlaceOrder (Order body) Place an order for a pet @@ -218,12 +218,12 @@ namespace Example { var apiInstance = new StoreApi(); - var order = new Order(); // Order | order placed for purchasing the pet + var body = new Order(); // Order | order placed for purchasing the pet try { // Place an order for a pet - Order result = apiInstance.PlaceOrder(order); + Order result = apiInstance.PlaceOrder(body); Debug.WriteLine(result); } catch (Exception e) @@ -239,7 +239,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | [**Order**](Order.md)| order placed for purchasing the pet | + **body** | [**Order**](Order.md)| order placed for purchasing the pet | ### Return type @@ -251,7 +251,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/xml, application/json [[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-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/UserApi.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/UserApi.md index 5ab87ee0d4d..75a3595de6c 100644 --- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/UserApi.md +++ b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **CreateUser** -> void CreateUser (User user) +> void CreateUser (User body) Create user @@ -38,12 +38,12 @@ namespace Example { var apiInstance = new UserApi(); - var user = new User(); // User | Created user object + var body = new User(); // User | Created user object try { // Create user - apiInstance.CreateUser(user); + apiInstance.CreateUser(body); } catch (Exception e) { @@ -58,7 +58,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -70,14 +70,14 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **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 user) +> void CreateUsersWithArrayInput (List body) Creates list of users with given input array @@ -97,12 +97,12 @@ namespace Example { var apiInstance = new UserApi(); - var user = new List(); // List | List of user object + var body = new List(); // List | List of user object try { // Creates list of users with given input array - apiInstance.CreateUsersWithArrayInput(user); + apiInstance.CreateUsersWithArrayInput(body); } catch (Exception e) { @@ -117,7 +117,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List**](List.md)| List of user object | + **body** | [**List**](List.md)| List of user object | ### Return type @@ -129,14 +129,14 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **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 user) +> void CreateUsersWithListInput (List body) Creates list of users with given input array @@ -156,12 +156,12 @@ namespace Example { var apiInstance = new UserApi(); - var user = new List(); // List | List of user object + var body = new List(); // List | List of user object try { // Creates list of users with given input array - apiInstance.CreateUsersWithListInput(user); + apiInstance.CreateUsersWithListInput(body); } catch (Exception e) { @@ -176,7 +176,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List**](List.md)| List of user object | + **body** | [**List**](List.md)| List of user object | ### Return type @@ -188,7 +188,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **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) @@ -433,7 +433,7 @@ No authorization required # **UpdateUser** -> void UpdateUser (string username, User user) +> void UpdateUser (string username, User body) Updated user @@ -456,12 +456,12 @@ namespace Example var apiInstance = new UserApi(); var username = username_example; // string | name that need to be deleted - var user = new User(); // User | Updated user object + var body = new User(); // User | Updated user object try { // Updated user - apiInstance.UpdateUser(username, user); + apiInstance.UpdateUser(username, body); } catch (Exception e) { @@ -477,7 +477,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **string**| name that need to be deleted | - **user** | [**User**](User.md)| Updated user object | + **body** | [**User**](User.md)| Updated user object | ### Return type @@ -489,7 +489,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **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-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/PetApi.cs index 66e0f6ab5cc..48b1119b50a 100644 --- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/PetApi.cs @@ -14,9 +14,9 @@ namespace Org.OpenAPITools.Api /// /// Add a new pet to the store /// - /// Pet object that needs to be added to the store + /// Pet object that needs to be added to the store /// - void AddPet (Pet pet); + void AddPet (Pet body); /// /// Deletes a pet /// @@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api /// /// Update an existing pet /// - /// Pet object that needs to be added to the store + /// Pet object that needs to be added to the store /// - void UpdatePet (Pet pet); + void UpdatePet (Pet body); /// /// Updates a pet in the store with form data /// @@ -122,13 +122,13 @@ namespace Org.OpenAPITools.Api /// /// Add a new pet to the store /// - /// Pet object that needs to be added to the store + /// Pet object that needs to be added to the store /// - public void AddPet (Pet pet) + public void AddPet (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) throw new ApiException(400, "Missing required parameter 'pet' when calling AddPet"); + // verify the required parameter 'body' is set + if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling AddPet"); var path = "/pet"; @@ -140,7 +140,7 @@ namespace Org.OpenAPITools.Api var fileParams = new Dictionary(); String postBody = null; - postBody = ApiClient.Serialize(pet); // http body (model) parameter + postBody = ApiClient.Serialize(body); // http body (model) parameter // authentication setting, if any String[] authSettings = new String[] { "petstore_auth" }; @@ -309,13 +309,13 @@ namespace Org.OpenAPITools.Api /// /// Update an existing pet /// - /// Pet object that needs to be added to the store + /// Pet object that needs to be added to the store /// - public void UpdatePet (Pet pet) + public void UpdatePet (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) throw new ApiException(400, "Missing required parameter 'pet' when calling UpdatePet"); + // verify the required parameter 'body' is set + if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling UpdatePet"); var path = "/pet"; @@ -327,7 +327,7 @@ namespace Org.OpenAPITools.Api var fileParams = new Dictionary(); String postBody = null; - postBody = ApiClient.Serialize(pet); // http body (model) parameter + postBody = ApiClient.Serialize(body); // http body (model) parameter // authentication setting, if any String[] authSettings = new String[] { "petstore_auth" }; diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/StoreApi.cs index 3390bbbcaba..df7be44e7b9 100644 --- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/StoreApi.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api /// /// Place an order for a pet /// - /// order placed for purchasing the pet + /// order placed for purchasing the pet /// Order - Order PlaceOrder (Order order); + Order PlaceOrder (Order body); } /// @@ -198,13 +198,13 @@ namespace Org.OpenAPITools.Api /// /// Place an order for a pet /// - /// order placed for purchasing the pet + /// order placed for purchasing the pet /// Order - public Order PlaceOrder (Order order) + public Order PlaceOrder (Order body) { - // verify the required parameter 'order' is set - if (order == null) throw new ApiException(400, "Missing required parameter 'order' when calling PlaceOrder"); + // verify the required parameter 'body' is set + if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling PlaceOrder"); var path = "/store/order"; @@ -216,7 +216,7 @@ namespace Org.OpenAPITools.Api var fileParams = new Dictionary(); String postBody = null; - postBody = ApiClient.Serialize(order); // http body (model) parameter + postBody = ApiClient.Serialize(body); // http body (model) parameter // authentication setting, if any String[] authSettings = new String[] { }; diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/UserApi.cs index 60a0ccac599..3f453e6b9b2 100644 --- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/UserApi.cs @@ -14,21 +14,21 @@ namespace Org.OpenAPITools.Api /// /// Create user This can only be done by the logged in user. /// - /// Created user object + /// Created user object /// - void CreateUser (User user); + void CreateUser (User body); /// /// Creates list of users with given input array /// - /// List of user object + /// List of user object /// - void CreateUsersWithArrayInput (List user); + void CreateUsersWithArrayInput (List body); /// /// Creates list of users with given input array /// - /// List of user object + /// List of user object /// - void CreateUsersWithListInput (List user); + void CreateUsersWithListInput (List body); /// /// Delete user This can only be done by the logged in user. /// @@ -57,9 +57,9 @@ namespace Org.OpenAPITools.Api /// Updated user This can only be done by the logged in user. /// /// name that need to be deleted - /// Updated user object + /// Updated user object /// - void UpdateUser (string username, User user); + void UpdateUser (string username, User body); } /// @@ -118,13 +118,13 @@ namespace Org.OpenAPITools.Api /// /// Create user This can only be done by the logged in user. /// - /// Created user object + /// Created user object /// - public void CreateUser (User user) + public void CreateUser (User body) { - // verify the required parameter 'user' is set - if (user == null) throw new ApiException(400, "Missing required parameter 'user' when calling CreateUser"); + // verify the required parameter 'body' is set + if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling CreateUser"); var path = "/user"; @@ -136,7 +136,7 @@ namespace Org.OpenAPITools.Api var fileParams = new Dictionary(); String postBody = null; - postBody = ApiClient.Serialize(user); // http body (model) parameter + postBody = ApiClient.Serialize(body); // http body (model) parameter // authentication setting, if any String[] authSettings = new String[] { }; @@ -155,13 +155,13 @@ namespace Org.OpenAPITools.Api /// /// Creates list of users with given input array /// - /// List of user object + /// List of user object /// - public void CreateUsersWithArrayInput (List user) + public void CreateUsersWithArrayInput (List body) { - // verify the required parameter 'user' is set - if (user == null) throw new ApiException(400, "Missing required parameter 'user' when calling CreateUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling CreateUsersWithArrayInput"); var path = "/user/createWithArray"; @@ -173,7 +173,7 @@ namespace Org.OpenAPITools.Api var fileParams = new Dictionary(); String postBody = null; - postBody = ApiClient.Serialize(user); // http body (model) parameter + postBody = ApiClient.Serialize(body); // http body (model) parameter // authentication setting, if any String[] authSettings = new String[] { }; @@ -192,13 +192,13 @@ namespace Org.OpenAPITools.Api /// /// Creates list of users with given input array /// - /// List of user object + /// List of user object /// - public void CreateUsersWithListInput (List user) + public void CreateUsersWithListInput (List body) { - // verify the required parameter 'user' is set - if (user == null) throw new ApiException(400, "Missing required parameter 'user' when calling CreateUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling CreateUsersWithListInput"); var path = "/user/createWithList"; @@ -210,7 +210,7 @@ namespace Org.OpenAPITools.Api var fileParams = new Dictionary(); String postBody = null; - postBody = ApiClient.Serialize(user); // http body (model) parameter + postBody = ApiClient.Serialize(body); // http body (model) parameter // authentication setting, if any String[] authSettings = new String[] { }; @@ -378,16 +378,16 @@ namespace Org.OpenAPITools.Api /// Updated user This can only be done by the logged in user. /// /// name that need to be deleted - /// Updated user object + /// Updated user object /// - public void UpdateUser (string username, User user) + public void UpdateUser (string username, User body) { // verify the required parameter 'username' is set if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling UpdateUser"); - // verify the required parameter 'user' is set - if (user == null) throw new ApiException(400, "Missing required parameter 'user' when calling UpdateUser"); + // verify the required parameter 'body' is set + if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling UpdateUser"); var path = "/user/{username}"; @@ -400,7 +400,7 @@ namespace Org.OpenAPITools.Api var fileParams = new Dictionary(); String postBody = null; - postBody = ApiClient.Serialize(user); // http body (model) parameter + postBody = ApiClient.Serialize(body); // http body (model) parameter // authentication setting, if any String[] authSettings = new String[] { }; diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Client/Configuration.cs index 8cac9c7d9db..7546607fa99 100644 --- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Client/Configuration.cs @@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Client private static string _dateTimeFormat = ISO8601_DATETIME_FORMAT; /// - /// Gets or sets the the date time format used when serializing in the ApiClient + /// Gets or sets the date time format used when serializing in the ApiClient /// By default, it's set to ISO 8601 - "o", for others see: /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx diff --git a/samples/client/petstore/csharp-refactor/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-refactor/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs index 160872d029a..ca0b52df6ae 100644 --- a/samples/client/petstore/csharp-refactor/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-refactor/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs @@ -249,7 +249,7 @@ namespace Org.OpenAPITools.Client } /// - /// Gets or sets the the date time format used when serializing in the ApiClient + /// Gets or sets the date time format used when serializing in the ApiClient /// By default, it's set to ISO 8601 - "o", for others see: /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs index d6178f475db..b530746cb5a 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs @@ -328,7 +328,7 @@ namespace Org.OpenAPITools.Client } /// - /// Gets or sets the the date time format used when serializing in the ApiClient + /// Gets or sets the date time format used when serializing in the ApiClient /// By default, it's set to ISO 8601 - "o", for others see: /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/.openapi-generator/VERSION b/samples/client/petstore/csharp/OpenAPIClientNet35/.openapi-generator/VERSION index d077ffb477a..afa63656064 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/.openapi-generator/VERSION +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/.openapi-generator/VERSION @@ -1 +1 @@ -3.3.4-SNAPSHOT \ No newline at end of file +4.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/README.md b/samples/client/petstore/csharp/OpenAPIClientNet35/README.md index aabf26b7899..8dc6d97251c 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/README.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/README.md @@ -71,12 +71,12 @@ namespace Example { var apiInstance = new AnotherFakeApi(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test special tags - ModelClient result = apiInstance.Call123TestSpecialTags(modelClient); + ModelClient result = apiInstance.Call123TestSpecialTags(body); Debug.WriteLine(result); } catch (Exception e) @@ -138,7 +138,6 @@ 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) @@ -169,7 +168,6 @@ Class | Method | HTTP request | Description - [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md) - [Model.Return](docs/Return.md) - [Model.SpecialModelName](docs/SpecialModelName.md) - - [Model.StringBooleanMap](docs/StringBooleanMap.md) - [Model.Tag](docs/Tag.md) - [Model.User](docs/User.md) diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/AnotherFakeApi.md b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/AnotherFakeApi.md index 81cc3106d64..612293b48bb 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/AnotherFakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **Call123TestSpecialTags** -> ModelClient Call123TestSpecialTags (ModelClient modelClient) +> ModelClient Call123TestSpecialTags (ModelClient body) To test special tags @@ -30,12 +30,12 @@ namespace Example public void main() { var apiInstance = new AnotherFakeApi(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test special tags - ModelClient result = apiInstance.Call123TestSpecialTags(modelClient); + ModelClient result = apiInstance.Call123TestSpecialTags(body); Debug.WriteLine(result); } catch (Exception e) @@ -51,7 +51,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelClient** | [**ModelClient**](ModelClient.md)| client model | + **body** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/EnumTest.md b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/EnumTest.md index 65bc4d2cb04..0e1666d4fea 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/EnumTest.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/EnumTest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **EnumStringRequired** | **string** | | **EnumInteger** | **int?** | | [optional] **EnumNumber** | **double?** | | [optional] -**OuterEnum** | **OuterEnum** | | [optional] +**OuterEnum** | [**OuterEnum**](OuterEnum.md) | | [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/OpenAPIClientNet35/docs/FakeApi.md b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/FakeApi.md index 5be422501cd..c2d06117726 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/FakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/FakeApi.md @@ -80,7 +80,7 @@ No authorization required # **FakeOuterCompositeSerialize** -> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null) +> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null) @@ -101,11 +101,11 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional) + var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional) try { - OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body); Debug.WriteLine(result); } catch (Exception e) @@ -121,7 +121,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] + **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] ### Return type @@ -260,7 +260,7 @@ No authorization required # **TestBodyWithFileSchema** -> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass) +> void TestBodyWithFileSchema (FileSchemaTestClass body) @@ -281,11 +281,11 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | + var body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.TestBodyWithFileSchema(fileSchemaTestClass); + apiInstance.TestBodyWithFileSchema(body); } catch (Exception e) { @@ -300,7 +300,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -319,7 +319,7 @@ No authorization required # **TestBodyWithQueryParams** -> void TestBodyWithQueryParams (string query, User user) +> void TestBodyWithQueryParams (string query, User body) @@ -339,11 +339,11 @@ namespace Example { var apiInstance = new FakeApi(); var query = query_example; // string | - var user = new User(); // User | + var body = new User(); // User | try { - apiInstance.TestBodyWithQueryParams(query, user); + apiInstance.TestBodyWithQueryParams(query, body); } catch (Exception e) { @@ -359,7 +359,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **string**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -378,7 +378,7 @@ No authorization required # **TestClientModel** -> ModelClient TestClientModel (ModelClient modelClient) +> ModelClient TestClientModel (ModelClient body) To test \"client\" model @@ -399,12 +399,12 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test \"client\" model - ModelClient result = apiInstance.TestClientModel(modelClient); + ModelClient result = apiInstance.TestClientModel(body); Debug.WriteLine(result); } catch (Exception e) @@ -420,7 +420,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelClient** | [**ModelClient**](ModelClient.md)| client model | + **body** | [**ModelClient**](ModelClient.md)| client model | ### Return type @@ -673,7 +673,7 @@ No authorization required # **TestInlineAdditionalProperties** -> void TestInlineAdditionalProperties (Dictionary requestBody) +> void TestInlineAdditionalProperties (Dictionary param) test inline additionalProperties @@ -692,12 +692,12 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var requestBody = new Dictionary(); // Dictionary | request body + var param = new Dictionary(); // Dictionary | request body try { // test inline additionalProperties - apiInstance.TestInlineAdditionalProperties(requestBody); + apiInstance.TestInlineAdditionalProperties(param); } catch (Exception e) { @@ -712,7 +712,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Dictionary<string, string>**](string.md)| request body | + **param** | [**Dictionary<string, string>**](string.md)| request body | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/FakeClassnameTags123Api.md b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/FakeClassnameTags123Api.md index f069b098399..abea3cb9977 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **TestClassname** -> ModelClient TestClassname (ModelClient modelClient) +> ModelClient TestClassname (ModelClient body) To test class name in snake case @@ -35,12 +35,12 @@ namespace Example // Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer"); var apiInstance = new FakeClassnameTags123Api(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test class name in snake case - ModelClient result = apiInstance.TestClassname(modelClient); + ModelClient result = apiInstance.TestClassname(body); Debug.WriteLine(result); } catch (Exception e) @@ -56,7 +56,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelClient** | [**ModelClient**](ModelClient.md)| client model | + **body** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/PetApi.md b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/PetApi.md index dd23df9b368..0735bce6fa6 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/PetApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **AddPet** -> void AddPet (Pet pet) +> void AddPet (Pet body) Add a new pet to the store @@ -39,12 +39,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(); - var pet = new Pet(); // Pet | Pet object that needs to be added to the store + var body = new Pet(); // Pet | Pet object that needs to be added to the store try { // Add a new pet to the store - apiInstance.AddPet(pet); + apiInstance.AddPet(body); } catch (Exception e) { @@ -59,7 +59,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type @@ -335,7 +335,7 @@ Name | Type | Description | Notes # **UpdatePet** -> void UpdatePet (Pet pet) +> void UpdatePet (Pet body) Update an existing pet @@ -357,12 +357,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(); - var pet = new Pet(); // Pet | Pet object that needs to be added to the store + var body = new Pet(); // Pet | Pet object that needs to be added to the store try { // Update an existing pet - apiInstance.UpdatePet(pet); + apiInstance.UpdatePet(body); } catch (Exception e) { @@ -377,7 +377,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/StoreApi.md b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/StoreApi.md index ff7608854f8..dbcf53db616 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/StoreApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/StoreApi.md @@ -195,7 +195,7 @@ No authorization required # **PlaceOrder** -> Order PlaceOrder (Order order) +> Order PlaceOrder (Order body) Place an order for a pet @@ -214,12 +214,12 @@ namespace Example public void main() { var apiInstance = new StoreApi(); - var order = new Order(); // Order | order placed for purchasing the pet + var body = new Order(); // Order | order placed for purchasing the pet try { // Place an order for a pet - Order result = apiInstance.PlaceOrder(order); + Order result = apiInstance.PlaceOrder(body); Debug.WriteLine(result); } catch (Exception e) @@ -235,7 +235,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | [**Order**](Order.md)| order placed for purchasing the pet | + **body** | [**Order**](Order.md)| order placed for purchasing the pet | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/UserApi.md b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/UserApi.md index 857ab27084c..9a535e16a82 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/UserApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **CreateUser** -> void CreateUser (User user) +> void CreateUser (User body) Create user @@ -37,12 +37,12 @@ namespace Example public void main() { var apiInstance = new UserApi(); - var user = new User(); // User | Created user object + var body = new User(); // User | Created user object try { // Create user - apiInstance.CreateUser(user); + apiInstance.CreateUser(body); } catch (Exception e) { @@ -57,7 +57,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -76,7 +76,7 @@ No authorization required # **CreateUsersWithArrayInput** -> void CreateUsersWithArrayInput (List user) +> void CreateUsersWithArrayInput (List body) Creates list of users with given input array @@ -95,12 +95,12 @@ namespace Example public void main() { var apiInstance = new UserApi(); - var user = new List(); // List | List of user object + var body = new List(); // List | List of user object try { // Creates list of users with given input array - apiInstance.CreateUsersWithArrayInput(user); + apiInstance.CreateUsersWithArrayInput(body); } catch (Exception e) { @@ -115,7 +115,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -134,7 +134,7 @@ No authorization required # **CreateUsersWithListInput** -> void CreateUsersWithListInput (List user) +> void CreateUsersWithListInput (List body) Creates list of users with given input array @@ -153,12 +153,12 @@ namespace Example public void main() { var apiInstance = new UserApi(); - var user = new List(); // List | List of user object + var body = new List(); // List | List of user object try { // Creates list of users with given input array - apiInstance.CreateUsersWithListInput(user); + apiInstance.CreateUsersWithListInput(body); } catch (Exception e) { @@ -173,7 +173,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -426,7 +426,7 @@ No authorization required # **UpdateUser** -> void UpdateUser (string username, User user) +> void UpdateUser (string username, User body) Updated user @@ -448,12 +448,12 @@ namespace Example { var apiInstance = new UserApi(); var username = username_example; // string | name that need to be deleted - var user = new User(); // User | Updated user object + var body = new User(); // User | Updated user object try { // Updated user - apiInstance.UpdateUser(username, user); + apiInstance.UpdateUser(username, body); } catch (Exception e) { @@ -469,7 +469,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **string**| name that need to be deleted | - **user** | [**User**](User.md)| Updated user object | + **body** | [**User**](User.md)| Updated user object | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 65d361bc200..64a97b78f7c 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api /// To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - ModelClient Call123TestSpecialTags (ModelClient modelClient); + ModelClient Call123TestSpecialTags (ModelClient body); /// /// To test special tags @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api /// To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient); + ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient body); #endregion Synchronous Operations } @@ -160,11 +160,11 @@ namespace Org.OpenAPITools.Api /// To test special tags To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - public ModelClient Call123TestSpecialTags (ModelClient modelClient) + public ModelClient Call123TestSpecialTags (ModelClient body) { - ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient); + ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(body); return localVarResponse.Data; } @@ -172,13 +172,13 @@ namespace Org.OpenAPITools.Api /// To test special tags To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient) + public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags"); var localVarPath = "/another-fake/dummy"; var localVarPathParams = new Dictionary(); @@ -202,13 +202,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/FakeApi.cs index 9549caf3f23..0e479f48117 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/FakeApi.cs @@ -52,9 +52,9 @@ namespace Org.OpenAPITools.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 outerComposite = null); + OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null); /// /// @@ -63,9 +63,9 @@ namespace Org.OpenAPITools.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 outerComposite = null); + ApiResponse FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null); /// /// /// @@ -115,9 +115,9 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// - void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass); + void TestBodyWithFileSchema (FileSchemaTestClass body); /// /// @@ -126,9 +126,9 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass); + ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body); /// /// /// @@ -137,9 +137,9 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// - void TestBodyWithQueryParams (string query, User user); + void TestBodyWithQueryParams (string query, User body); /// /// @@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User user); + ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User body); /// /// To test \"client\" model /// @@ -159,9 +159,9 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - ModelClient TestClientModel (ModelClient modelClient); + ModelClient TestClientModel (ModelClient body); /// /// To test \"client\" model @@ -170,9 +170,9 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - ApiResponse TestClientModelWithHttpInfo (ModelClient modelClient); + ApiResponse TestClientModelWithHttpInfo (ModelClient body); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -293,9 +293,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// request body + /// request body /// - void TestInlineAdditionalProperties (Dictionary requestBody); + void TestInlineAdditionalProperties (Dictionary param); /// /// test inline additionalProperties @@ -304,9 +304,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// request body + /// request body /// ApiResponse of Object(void) - ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary requestBody); + ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary param); /// /// test json serialization of form data /// @@ -515,11 +515,11 @@ namespace Org.OpenAPITools.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 - public OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null) + public OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null) { - ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite); + ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -527,9 +527,9 @@ namespace Org.OpenAPITools.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 - public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null) + public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null) { var localVarPath = "/fake/outer/composite"; @@ -553,13 +553,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (outerComposite != null && outerComposite.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(outerComposite); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = outerComposite; // byte array + localVarPostBody = body; // byte array } @@ -725,24 +725,24 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// - public void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass) + public void TestBodyWithFileSchema (FileSchemaTestClass body) { - TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + TestBodyWithFileSchemaWithHttpInfo(body); } /// /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// ApiResponse of Object(void) - public ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass) + public ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body) { - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) - throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema"); var localVarPath = "/fake/body-with-file-schema"; var localVarPathParams = new Dictionary(); @@ -765,13 +765,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (fileSchemaTestClass != null && fileSchemaTestClass.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(fileSchemaTestClass); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = fileSchemaTestClass; // byte array + localVarPostBody = body; // byte array } @@ -798,11 +798,11 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// - public void TestBodyWithQueryParams (string query, User user) + public void TestBodyWithQueryParams (string query, User body) { - TestBodyWithQueryParamsWithHttpInfo(query, user); + TestBodyWithQueryParamsWithHttpInfo(query, body); } /// @@ -810,16 +810,16 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// ApiResponse of Object(void) - public ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User user) + public ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User body) { // verify the required parameter 'query' is set if (query == null) throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams"); - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams"); var localVarPath = "/fake/body-with-query-params"; var localVarPathParams = new Dictionary(); @@ -843,13 +843,13 @@ namespace Org.OpenAPITools.Api localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -875,11 +875,11 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - public ModelClient TestClientModel (ModelClient modelClient) + public ModelClient TestClientModel (ModelClient body) { - ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient); + ApiResponse localVarResponse = TestClientModelWithHttpInfo(body); return localVarResponse.Data; } @@ -887,13 +887,13 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient modelClient) + public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel"); var localVarPath = "/fake"; var localVarPathParams = new Dictionary(); @@ -917,13 +917,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } @@ -1236,24 +1236,24 @@ namespace Org.OpenAPITools.Api /// test inline additionalProperties /// /// Thrown when fails to make API call - /// request body + /// request body /// - public void TestInlineAdditionalProperties (Dictionary requestBody) + public void TestInlineAdditionalProperties (Dictionary param) { - TestInlineAdditionalPropertiesWithHttpInfo(requestBody); + TestInlineAdditionalPropertiesWithHttpInfo(param); } /// /// test inline additionalProperties /// /// Thrown when fails to make API call - /// request body + /// request body /// ApiResponse of Object(void) - public ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary requestBody) + public ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary param) { - // verify the required parameter 'requestBody' is set - if (requestBody == null) - throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) + throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties"); var localVarPath = "/fake/inline-additionalProperties"; var localVarPathParams = new Dictionary(); @@ -1276,13 +1276,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (requestBody != null && requestBody.GetType() != typeof(byte[])) + if (param != null && param.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter } else { - localVarPostBody = requestBody; // byte array + localVarPostBody = param; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 63f51ab5875..05a57c0ecfe 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api /// To test class name in snake case /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - ModelClient TestClassname (ModelClient modelClient); + ModelClient TestClassname (ModelClient body); /// /// To test class name in snake case @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api /// To test class name in snake case /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - ApiResponse TestClassnameWithHttpInfo (ModelClient modelClient); + ApiResponse TestClassnameWithHttpInfo (ModelClient body); #endregion Synchronous Operations } @@ -160,11 +160,11 @@ namespace Org.OpenAPITools.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 - public ModelClient TestClassname (ModelClient modelClient) + public ModelClient TestClassname (ModelClient body) { - ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient); + ApiResponse localVarResponse = TestClassnameWithHttpInfo(body); return localVarResponse.Data; } @@ -172,13 +172,13 @@ namespace Org.OpenAPITools.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 /// ApiResponse of ModelClient - public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient modelClient) + public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname"); var localVarPath = "/fake_classname_test"; var localVarPathParams = new Dictionary(); @@ -202,13 +202,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } // authentication (api_key_query) required diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/PetApi.cs index 1c0444f8bb3..f8c1b3058ea 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/PetApi.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.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 pet); + void AddPet (Pet body); /// /// Add a new pet to the store @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.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 pet); + ApiResponse AddPetWithHttpInfo (Pet body); /// /// Deletes a pet /// @@ -138,9 +138,9 @@ namespace Org.OpenAPITools.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 pet); + void UpdatePet (Pet body); /// /// Update an existing pet @@ -149,9 +149,9 @@ namespace Org.OpenAPITools.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 pet); + ApiResponse UpdatePetWithHttpInfo (Pet body); /// /// Updates a pet in the store with form data /// @@ -342,24 +342,24 @@ namespace Org.OpenAPITools.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 pet) + public void AddPet (Pet body) { - AddPetWithHttpInfo(pet); + AddPetWithHttpInfo(body); } /// /// 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 pet) + public ApiResponse AddPetWithHttpInfo (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) - throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet"); var localVarPath = "/pet"; var localVarPathParams = new Dictionary(); @@ -383,13 +383,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (pet != null && pet.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = pet; // byte array + localVarPostBody = body; // byte array } // authentication (petstore_auth) required @@ -712,24 +712,24 @@ namespace Org.OpenAPITools.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 pet) + public void UpdatePet (Pet body) { - UpdatePetWithHttpInfo(pet); + UpdatePetWithHttpInfo(body); } /// /// 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 pet) + public ApiResponse UpdatePetWithHttpInfo (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) - throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet"); var localVarPath = "/pet"; var localVarPathParams = new Dictionary(); @@ -753,13 +753,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (pet != null && pet.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = pet; // byte array + localVarPostBody = body; // byte array } // authentication (petstore_auth) required diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/StoreApi.cs index 778cc6a6399..5db0e63ddc7 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/StoreApi.cs @@ -92,9 +92,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// order placed for purchasing the pet + /// order placed for purchasing the pet /// Order - Order PlaceOrder (Order order); + Order PlaceOrder (Order body); /// /// Place an order for a pet @@ -103,9 +103,9 @@ namespace Org.OpenAPITools.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 order); + ApiResponse PlaceOrderWithHttpInfo (Order body); #endregion Synchronous Operations } @@ -417,11 +417,11 @@ namespace Org.OpenAPITools.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 order) + public Order PlaceOrder (Order body) { - ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order); + ApiResponse localVarResponse = PlaceOrderWithHttpInfo(body); return localVarResponse.Data; } @@ -429,13 +429,13 @@ namespace Org.OpenAPITools.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 order) + public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body) { - // verify the required parameter 'order' is set - if (order == null) - throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder"); var localVarPath = "/store/order"; var localVarPathParams = new Dictionary(); @@ -459,13 +459,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (order != null && order.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = order; // byte array + localVarPostBody = body; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/UserApi.cs index c746905213b..bb748630574 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/UserApi.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.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 user); + void CreateUser (User body); /// /// Create user @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.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 user); + ApiResponse CreateUserWithHttpInfo (User body); /// /// Creates list of users with given input array /// @@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// - void CreateUsersWithArrayInput (List user); + void CreateUsersWithArrayInput (List body); /// /// Creates list of users with given input array @@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// ApiResponse of Object(void) - ApiResponse CreateUsersWithArrayInputWithHttpInfo (List user); + ApiResponse CreateUsersWithArrayInputWithHttpInfo (List body); /// /// Creates list of users with given input array /// @@ -73,9 +73,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// - void CreateUsersWithListInput (List user); + void CreateUsersWithListInput (List body); /// /// Creates list of users with given input array @@ -84,9 +84,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// ApiResponse of Object(void) - ApiResponse CreateUsersWithListInputWithHttpInfo (List user); + ApiResponse CreateUsersWithListInputWithHttpInfo (List body); /// /// Delete user /// @@ -179,9 +179,9 @@ namespace Org.OpenAPITools.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 user); + void UpdateUser (string username, User body); /// /// Updated user @@ -191,9 +191,9 @@ namespace Org.OpenAPITools.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 user); + ApiResponse UpdateUserWithHttpInfo (string username, User body); #endregion Synchronous Operations } @@ -309,24 +309,24 @@ namespace Org.OpenAPITools.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 user) + public void CreateUser (User body) { - CreateUserWithHttpInfo(user); + CreateUserWithHttpInfo(body); } /// /// 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 user) + public ApiResponse CreateUserWithHttpInfo (User body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser"); var localVarPath = "/user"; var localVarPathParams = new Dictionary(); @@ -348,13 +348,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -380,24 +380,24 @@ namespace Org.OpenAPITools.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 user) + public void CreateUsersWithArrayInput (List body) { - CreateUsersWithArrayInputWithHttpInfo(user); + CreateUsersWithArrayInputWithHttpInfo(body); } /// /// 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 user) + public ApiResponse CreateUsersWithArrayInputWithHttpInfo (List body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput"); var localVarPath = "/user/createWithArray"; var localVarPathParams = new Dictionary(); @@ -419,13 +419,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -451,24 +451,24 @@ namespace Org.OpenAPITools.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 user) + public void CreateUsersWithListInput (List body) { - CreateUsersWithListInputWithHttpInfo(user); + CreateUsersWithListInputWithHttpInfo(body); } /// /// 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 user) + public ApiResponse CreateUsersWithListInputWithHttpInfo (List body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput"); var localVarPath = "/user/createWithList"; var localVarPathParams = new Dictionary(); @@ -490,13 +490,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -785,11 +785,11 @@ namespace Org.OpenAPITools.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 user) + public void UpdateUser (string username, User body) { - UpdateUserWithHttpInfo(username, user); + UpdateUserWithHttpInfo(username, body); } /// @@ -797,16 +797,16 @@ namespace Org.OpenAPITools.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 user) + public ApiResponse UpdateUserWithHttpInfo (string username, User body) { // 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 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' 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"); var localVarPath = "/user/{username}"; var localVarPathParams = new Dictionary(); @@ -829,13 +829,13 @@ namespace Org.OpenAPITools.Api localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Client/Configuration.cs index fb1c8a99d3a..6a082c1953a 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Client/Configuration.cs @@ -327,7 +327,7 @@ namespace Org.OpenAPITools.Client } /// - /// Gets or sets the the date time format used when serializing in the ApiClient + /// Gets or sets the date time format used when serializing in the ApiClient /// By default, it's set to ISO 8601 - "o", for others see: /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/Animal.cs index 08f782e889a..bb7016334f7 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/Animal.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// Animal /// [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] + [JsonConverter(typeof(JsonSubtypes), "ClassName")] [JsonSubtypes.KnownSubType(typeof(Dog), "Dog")] [JsonSubtypes.KnownSubType(typeof(Cat), "Cat")] public partial class Animal : IEquatable diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/EnumTest.cs index 0329f3f29f8..cc5c9a84970 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Model/EnumTest.cs @@ -140,11 +140,6 @@ namespace Org.OpenAPITools.Model [DataMember(Name="enum_number", EmitDefaultValue=false)] public EnumNumberEnum? EnumNumber { get; set; } /// - /// Gets or Sets OuterEnum - /// - [DataMember(Name="outerEnum", EmitDefaultValue=false)] - public OuterEnum? OuterEnum { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] @@ -157,7 +152,7 @@ namespace Org.OpenAPITools.Model /// enumInteger. /// enumNumber. /// outerEnum. - public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), 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) @@ -178,6 +173,11 @@ namespace Org.OpenAPITools.Model + /// + /// Gets or Sets OuterEnum + /// + [DataMember(Name="outerEnum", EmitDefaultValue=false)] + public OuterEnum OuterEnum { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/.openapi-generator/VERSION b/samples/client/petstore/csharp/OpenAPIClientNet40/.openapi-generator/VERSION index d077ffb477a..afa63656064 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/.openapi-generator/VERSION +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/.openapi-generator/VERSION @@ -1 +1 @@ -3.3.4-SNAPSHOT \ No newline at end of file +4.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/README.md b/samples/client/petstore/csharp/OpenAPIClientNet40/README.md index aabf26b7899..8dc6d97251c 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/README.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/README.md @@ -71,12 +71,12 @@ namespace Example { var apiInstance = new AnotherFakeApi(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test special tags - ModelClient result = apiInstance.Call123TestSpecialTags(modelClient); + ModelClient result = apiInstance.Call123TestSpecialTags(body); Debug.WriteLine(result); } catch (Exception e) @@ -138,7 +138,6 @@ 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) @@ -169,7 +168,6 @@ Class | Method | HTTP request | Description - [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md) - [Model.Return](docs/Return.md) - [Model.SpecialModelName](docs/SpecialModelName.md) - - [Model.StringBooleanMap](docs/StringBooleanMap.md) - [Model.Tag](docs/Tag.md) - [Model.User](docs/User.md) diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/AnotherFakeApi.md b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/AnotherFakeApi.md index 81cc3106d64..612293b48bb 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/AnotherFakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **Call123TestSpecialTags** -> ModelClient Call123TestSpecialTags (ModelClient modelClient) +> ModelClient Call123TestSpecialTags (ModelClient body) To test special tags @@ -30,12 +30,12 @@ namespace Example public void main() { var apiInstance = new AnotherFakeApi(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test special tags - ModelClient result = apiInstance.Call123TestSpecialTags(modelClient); + ModelClient result = apiInstance.Call123TestSpecialTags(body); Debug.WriteLine(result); } catch (Exception e) @@ -51,7 +51,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelClient** | [**ModelClient**](ModelClient.md)| client model | + **body** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/EnumTest.md b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/EnumTest.md index 65bc4d2cb04..0e1666d4fea 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/EnumTest.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/EnumTest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **EnumStringRequired** | **string** | | **EnumInteger** | **int?** | | [optional] **EnumNumber** | **double?** | | [optional] -**OuterEnum** | **OuterEnum** | | [optional] +**OuterEnum** | [**OuterEnum**](OuterEnum.md) | | [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/OpenAPIClientNet40/docs/FakeApi.md b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/FakeApi.md index 5be422501cd..c2d06117726 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/FakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/FakeApi.md @@ -80,7 +80,7 @@ No authorization required # **FakeOuterCompositeSerialize** -> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null) +> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null) @@ -101,11 +101,11 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional) + var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional) try { - OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body); Debug.WriteLine(result); } catch (Exception e) @@ -121,7 +121,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] + **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] ### Return type @@ -260,7 +260,7 @@ No authorization required # **TestBodyWithFileSchema** -> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass) +> void TestBodyWithFileSchema (FileSchemaTestClass body) @@ -281,11 +281,11 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | + var body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.TestBodyWithFileSchema(fileSchemaTestClass); + apiInstance.TestBodyWithFileSchema(body); } catch (Exception e) { @@ -300,7 +300,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -319,7 +319,7 @@ No authorization required # **TestBodyWithQueryParams** -> void TestBodyWithQueryParams (string query, User user) +> void TestBodyWithQueryParams (string query, User body) @@ -339,11 +339,11 @@ namespace Example { var apiInstance = new FakeApi(); var query = query_example; // string | - var user = new User(); // User | + var body = new User(); // User | try { - apiInstance.TestBodyWithQueryParams(query, user); + apiInstance.TestBodyWithQueryParams(query, body); } catch (Exception e) { @@ -359,7 +359,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **string**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -378,7 +378,7 @@ No authorization required # **TestClientModel** -> ModelClient TestClientModel (ModelClient modelClient) +> ModelClient TestClientModel (ModelClient body) To test \"client\" model @@ -399,12 +399,12 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test \"client\" model - ModelClient result = apiInstance.TestClientModel(modelClient); + ModelClient result = apiInstance.TestClientModel(body); Debug.WriteLine(result); } catch (Exception e) @@ -420,7 +420,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelClient** | [**ModelClient**](ModelClient.md)| client model | + **body** | [**ModelClient**](ModelClient.md)| client model | ### Return type @@ -673,7 +673,7 @@ No authorization required # **TestInlineAdditionalProperties** -> void TestInlineAdditionalProperties (Dictionary requestBody) +> void TestInlineAdditionalProperties (Dictionary param) test inline additionalProperties @@ -692,12 +692,12 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var requestBody = new Dictionary(); // Dictionary | request body + var param = new Dictionary(); // Dictionary | request body try { // test inline additionalProperties - apiInstance.TestInlineAdditionalProperties(requestBody); + apiInstance.TestInlineAdditionalProperties(param); } catch (Exception e) { @@ -712,7 +712,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Dictionary<string, string>**](string.md)| request body | + **param** | [**Dictionary<string, string>**](string.md)| request body | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/FakeClassnameTags123Api.md b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/FakeClassnameTags123Api.md index f069b098399..abea3cb9977 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **TestClassname** -> ModelClient TestClassname (ModelClient modelClient) +> ModelClient TestClassname (ModelClient body) To test class name in snake case @@ -35,12 +35,12 @@ namespace Example // Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer"); var apiInstance = new FakeClassnameTags123Api(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test class name in snake case - ModelClient result = apiInstance.TestClassname(modelClient); + ModelClient result = apiInstance.TestClassname(body); Debug.WriteLine(result); } catch (Exception e) @@ -56,7 +56,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelClient** | [**ModelClient**](ModelClient.md)| client model | + **body** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/PetApi.md b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/PetApi.md index dd23df9b368..0735bce6fa6 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/PetApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **AddPet** -> void AddPet (Pet pet) +> void AddPet (Pet body) Add a new pet to the store @@ -39,12 +39,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(); - var pet = new Pet(); // Pet | Pet object that needs to be added to the store + var body = new Pet(); // Pet | Pet object that needs to be added to the store try { // Add a new pet to the store - apiInstance.AddPet(pet); + apiInstance.AddPet(body); } catch (Exception e) { @@ -59,7 +59,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type @@ -335,7 +335,7 @@ Name | Type | Description | Notes # **UpdatePet** -> void UpdatePet (Pet pet) +> void UpdatePet (Pet body) Update an existing pet @@ -357,12 +357,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(); - var pet = new Pet(); // Pet | Pet object that needs to be added to the store + var body = new Pet(); // Pet | Pet object that needs to be added to the store try { // Update an existing pet - apiInstance.UpdatePet(pet); + apiInstance.UpdatePet(body); } catch (Exception e) { @@ -377,7 +377,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/StoreApi.md b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/StoreApi.md index ff7608854f8..dbcf53db616 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/StoreApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/StoreApi.md @@ -195,7 +195,7 @@ No authorization required # **PlaceOrder** -> Order PlaceOrder (Order order) +> Order PlaceOrder (Order body) Place an order for a pet @@ -214,12 +214,12 @@ namespace Example public void main() { var apiInstance = new StoreApi(); - var order = new Order(); // Order | order placed for purchasing the pet + var body = new Order(); // Order | order placed for purchasing the pet try { // Place an order for a pet - Order result = apiInstance.PlaceOrder(order); + Order result = apiInstance.PlaceOrder(body); Debug.WriteLine(result); } catch (Exception e) @@ -235,7 +235,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | [**Order**](Order.md)| order placed for purchasing the pet | + **body** | [**Order**](Order.md)| order placed for purchasing the pet | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/UserApi.md b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/UserApi.md index 857ab27084c..9a535e16a82 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/UserApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **CreateUser** -> void CreateUser (User user) +> void CreateUser (User body) Create user @@ -37,12 +37,12 @@ namespace Example public void main() { var apiInstance = new UserApi(); - var user = new User(); // User | Created user object + var body = new User(); // User | Created user object try { // Create user - apiInstance.CreateUser(user); + apiInstance.CreateUser(body); } catch (Exception e) { @@ -57,7 +57,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -76,7 +76,7 @@ No authorization required # **CreateUsersWithArrayInput** -> void CreateUsersWithArrayInput (List user) +> void CreateUsersWithArrayInput (List body) Creates list of users with given input array @@ -95,12 +95,12 @@ namespace Example public void main() { var apiInstance = new UserApi(); - var user = new List(); // List | List of user object + var body = new List(); // List | List of user object try { // Creates list of users with given input array - apiInstance.CreateUsersWithArrayInput(user); + apiInstance.CreateUsersWithArrayInput(body); } catch (Exception e) { @@ -115,7 +115,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -134,7 +134,7 @@ No authorization required # **CreateUsersWithListInput** -> void CreateUsersWithListInput (List user) +> void CreateUsersWithListInput (List body) Creates list of users with given input array @@ -153,12 +153,12 @@ namespace Example public void main() { var apiInstance = new UserApi(); - var user = new List(); // List | List of user object + var body = new List(); // List | List of user object try { // Creates list of users with given input array - apiInstance.CreateUsersWithListInput(user); + apiInstance.CreateUsersWithListInput(body); } catch (Exception e) { @@ -173,7 +173,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -426,7 +426,7 @@ No authorization required # **UpdateUser** -> void UpdateUser (string username, User user) +> void UpdateUser (string username, User body) Updated user @@ -448,12 +448,12 @@ namespace Example { var apiInstance = new UserApi(); var username = username_example; // string | name that need to be deleted - var user = new User(); // User | Updated user object + var body = new User(); // User | Updated user object try { // Updated user - apiInstance.UpdateUser(username, user); + apiInstance.UpdateUser(username, body); } catch (Exception e) { @@ -469,7 +469,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **string**| name that need to be deleted | - **user** | [**User**](User.md)| Updated user object | + **body** | [**User**](User.md)| Updated user object | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index dd32c4300ab..c7c3df76a9a 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api /// To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - ModelClient Call123TestSpecialTags (ModelClient modelClient); + ModelClient Call123TestSpecialTags (ModelClient body); /// /// To test special tags @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api /// To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient); + ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient body); #endregion Synchronous Operations } @@ -160,11 +160,11 @@ namespace Org.OpenAPITools.Api /// To test special tags To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - public ModelClient Call123TestSpecialTags (ModelClient modelClient) + public ModelClient Call123TestSpecialTags (ModelClient body) { - ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient); + ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(body); return localVarResponse.Data; } @@ -172,13 +172,13 @@ namespace Org.OpenAPITools.Api /// To test special tags To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient) + public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags"); var localVarPath = "/another-fake/dummy"; var localVarPathParams = new Dictionary(); @@ -202,13 +202,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/FakeApi.cs index 511622b8fd3..b225378de5d 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/FakeApi.cs @@ -52,9 +52,9 @@ namespace Org.OpenAPITools.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 outerComposite = null); + OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null); /// /// @@ -63,9 +63,9 @@ namespace Org.OpenAPITools.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 outerComposite = null); + ApiResponse FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null); /// /// /// @@ -115,9 +115,9 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// - void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass); + void TestBodyWithFileSchema (FileSchemaTestClass body); /// /// @@ -126,9 +126,9 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass); + ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body); /// /// /// @@ -137,9 +137,9 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// - void TestBodyWithQueryParams (string query, User user); + void TestBodyWithQueryParams (string query, User body); /// /// @@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User user); + ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User body); /// /// To test \"client\" model /// @@ -159,9 +159,9 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - ModelClient TestClientModel (ModelClient modelClient); + ModelClient TestClientModel (ModelClient body); /// /// To test \"client\" model @@ -170,9 +170,9 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - ApiResponse TestClientModelWithHttpInfo (ModelClient modelClient); + ApiResponse TestClientModelWithHttpInfo (ModelClient body); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -293,9 +293,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// request body + /// request body /// - void TestInlineAdditionalProperties (Dictionary requestBody); + void TestInlineAdditionalProperties (Dictionary param); /// /// test inline additionalProperties @@ -304,9 +304,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// request body + /// request body /// ApiResponse of Object(void) - ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary requestBody); + ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary param); /// /// test json serialization of form data /// @@ -515,11 +515,11 @@ namespace Org.OpenAPITools.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 - public OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null) + public OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null) { - ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite); + ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -527,9 +527,9 @@ namespace Org.OpenAPITools.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 - public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null) + public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null) { var localVarPath = "/fake/outer/composite"; @@ -553,13 +553,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (outerComposite != null && outerComposite.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(outerComposite); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = outerComposite; // byte array + localVarPostBody = body; // byte array } @@ -725,24 +725,24 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// - public void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass) + public void TestBodyWithFileSchema (FileSchemaTestClass body) { - TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + TestBodyWithFileSchemaWithHttpInfo(body); } /// /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// ApiResponse of Object(void) - public ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass) + public ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body) { - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) - throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema"); var localVarPath = "/fake/body-with-file-schema"; var localVarPathParams = new Dictionary(); @@ -765,13 +765,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (fileSchemaTestClass != null && fileSchemaTestClass.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(fileSchemaTestClass); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = fileSchemaTestClass; // byte array + localVarPostBody = body; // byte array } @@ -798,11 +798,11 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// - public void TestBodyWithQueryParams (string query, User user) + public void TestBodyWithQueryParams (string query, User body) { - TestBodyWithQueryParamsWithHttpInfo(query, user); + TestBodyWithQueryParamsWithHttpInfo(query, body); } /// @@ -810,16 +810,16 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// ApiResponse of Object(void) - public ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User user) + public ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User body) { // verify the required parameter 'query' is set if (query == null) throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams"); - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams"); var localVarPath = "/fake/body-with-query-params"; var localVarPathParams = new Dictionary(); @@ -843,13 +843,13 @@ namespace Org.OpenAPITools.Api localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -875,11 +875,11 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - public ModelClient TestClientModel (ModelClient modelClient) + public ModelClient TestClientModel (ModelClient body) { - ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient); + ApiResponse localVarResponse = TestClientModelWithHttpInfo(body); return localVarResponse.Data; } @@ -887,13 +887,13 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient modelClient) + public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel"); var localVarPath = "/fake"; var localVarPathParams = new Dictionary(); @@ -917,13 +917,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } @@ -1236,24 +1236,24 @@ namespace Org.OpenAPITools.Api /// test inline additionalProperties /// /// Thrown when fails to make API call - /// request body + /// request body /// - public void TestInlineAdditionalProperties (Dictionary requestBody) + public void TestInlineAdditionalProperties (Dictionary param) { - TestInlineAdditionalPropertiesWithHttpInfo(requestBody); + TestInlineAdditionalPropertiesWithHttpInfo(param); } /// /// test inline additionalProperties /// /// Thrown when fails to make API call - /// request body + /// request body /// ApiResponse of Object(void) - public ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary requestBody) + public ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary param) { - // verify the required parameter 'requestBody' is set - if (requestBody == null) - throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) + throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties"); var localVarPath = "/fake/inline-additionalProperties"; var localVarPathParams = new Dictionary(); @@ -1276,13 +1276,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (requestBody != null && requestBody.GetType() != typeof(byte[])) + if (param != null && param.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter } else { - localVarPostBody = requestBody; // byte array + localVarPostBody = param; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 99c32e13e11..03cabaf2454 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api /// To test class name in snake case /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - ModelClient TestClassname (ModelClient modelClient); + ModelClient TestClassname (ModelClient body); /// /// To test class name in snake case @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api /// To test class name in snake case /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - ApiResponse TestClassnameWithHttpInfo (ModelClient modelClient); + ApiResponse TestClassnameWithHttpInfo (ModelClient body); #endregion Synchronous Operations } @@ -160,11 +160,11 @@ namespace Org.OpenAPITools.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 - public ModelClient TestClassname (ModelClient modelClient) + public ModelClient TestClassname (ModelClient body) { - ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient); + ApiResponse localVarResponse = TestClassnameWithHttpInfo(body); return localVarResponse.Data; } @@ -172,13 +172,13 @@ namespace Org.OpenAPITools.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 /// ApiResponse of ModelClient - public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient modelClient) + public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname"); var localVarPath = "/fake_classname_test"; var localVarPathParams = new Dictionary(); @@ -202,13 +202,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } // authentication (api_key_query) required diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/PetApi.cs index 1c596393525..d9cdaf4853a 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/PetApi.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.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 pet); + void AddPet (Pet body); /// /// Add a new pet to the store @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.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 pet); + ApiResponse AddPetWithHttpInfo (Pet body); /// /// Deletes a pet /// @@ -138,9 +138,9 @@ namespace Org.OpenAPITools.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 pet); + void UpdatePet (Pet body); /// /// Update an existing pet @@ -149,9 +149,9 @@ namespace Org.OpenAPITools.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 pet); + ApiResponse UpdatePetWithHttpInfo (Pet body); /// /// Updates a pet in the store with form data /// @@ -342,24 +342,24 @@ namespace Org.OpenAPITools.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 pet) + public void AddPet (Pet body) { - AddPetWithHttpInfo(pet); + AddPetWithHttpInfo(body); } /// /// 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 pet) + public ApiResponse AddPetWithHttpInfo (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) - throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet"); var localVarPath = "/pet"; var localVarPathParams = new Dictionary(); @@ -383,13 +383,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (pet != null && pet.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = pet; // byte array + localVarPostBody = body; // byte array } // authentication (petstore_auth) required @@ -712,24 +712,24 @@ namespace Org.OpenAPITools.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 pet) + public void UpdatePet (Pet body) { - UpdatePetWithHttpInfo(pet); + UpdatePetWithHttpInfo(body); } /// /// 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 pet) + public ApiResponse UpdatePetWithHttpInfo (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) - throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet"); var localVarPath = "/pet"; var localVarPathParams = new Dictionary(); @@ -753,13 +753,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (pet != null && pet.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = pet; // byte array + localVarPostBody = body; // byte array } // authentication (petstore_auth) required diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/StoreApi.cs index e45658963ea..df3a06304de 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/StoreApi.cs @@ -92,9 +92,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// order placed for purchasing the pet + /// order placed for purchasing the pet /// Order - Order PlaceOrder (Order order); + Order PlaceOrder (Order body); /// /// Place an order for a pet @@ -103,9 +103,9 @@ namespace Org.OpenAPITools.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 order); + ApiResponse PlaceOrderWithHttpInfo (Order body); #endregion Synchronous Operations } @@ -417,11 +417,11 @@ namespace Org.OpenAPITools.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 order) + public Order PlaceOrder (Order body) { - ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order); + ApiResponse localVarResponse = PlaceOrderWithHttpInfo(body); return localVarResponse.Data; } @@ -429,13 +429,13 @@ namespace Org.OpenAPITools.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 order) + public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body) { - // verify the required parameter 'order' is set - if (order == null) - throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder"); var localVarPath = "/store/order"; var localVarPathParams = new Dictionary(); @@ -459,13 +459,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (order != null && order.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = order; // byte array + localVarPostBody = body; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/UserApi.cs index 62f1c2181ea..844305e7a31 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/UserApi.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.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 user); + void CreateUser (User body); /// /// Create user @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.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 user); + ApiResponse CreateUserWithHttpInfo (User body); /// /// Creates list of users with given input array /// @@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// - void CreateUsersWithArrayInput (List user); + void CreateUsersWithArrayInput (List body); /// /// Creates list of users with given input array @@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// ApiResponse of Object(void) - ApiResponse CreateUsersWithArrayInputWithHttpInfo (List user); + ApiResponse CreateUsersWithArrayInputWithHttpInfo (List body); /// /// Creates list of users with given input array /// @@ -73,9 +73,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// - void CreateUsersWithListInput (List user); + void CreateUsersWithListInput (List body); /// /// Creates list of users with given input array @@ -84,9 +84,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// ApiResponse of Object(void) - ApiResponse CreateUsersWithListInputWithHttpInfo (List user); + ApiResponse CreateUsersWithListInputWithHttpInfo (List body); /// /// Delete user /// @@ -179,9 +179,9 @@ namespace Org.OpenAPITools.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 user); + void UpdateUser (string username, User body); /// /// Updated user @@ -191,9 +191,9 @@ namespace Org.OpenAPITools.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 user); + ApiResponse UpdateUserWithHttpInfo (string username, User body); #endregion Synchronous Operations } @@ -309,24 +309,24 @@ namespace Org.OpenAPITools.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 user) + public void CreateUser (User body) { - CreateUserWithHttpInfo(user); + CreateUserWithHttpInfo(body); } /// /// 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 user) + public ApiResponse CreateUserWithHttpInfo (User body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser"); var localVarPath = "/user"; var localVarPathParams = new Dictionary(); @@ -348,13 +348,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -380,24 +380,24 @@ namespace Org.OpenAPITools.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 user) + public void CreateUsersWithArrayInput (List body) { - CreateUsersWithArrayInputWithHttpInfo(user); + CreateUsersWithArrayInputWithHttpInfo(body); } /// /// 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 user) + public ApiResponse CreateUsersWithArrayInputWithHttpInfo (List body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput"); var localVarPath = "/user/createWithArray"; var localVarPathParams = new Dictionary(); @@ -419,13 +419,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -451,24 +451,24 @@ namespace Org.OpenAPITools.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 user) + public void CreateUsersWithListInput (List body) { - CreateUsersWithListInputWithHttpInfo(user); + CreateUsersWithListInputWithHttpInfo(body); } /// /// 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 user) + public ApiResponse CreateUsersWithListInputWithHttpInfo (List body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput"); var localVarPath = "/user/createWithList"; var localVarPathParams = new Dictionary(); @@ -490,13 +490,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -785,11 +785,11 @@ namespace Org.OpenAPITools.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 user) + public void UpdateUser (string username, User body) { - UpdateUserWithHttpInfo(username, user); + UpdateUserWithHttpInfo(username, body); } /// @@ -797,16 +797,16 @@ namespace Org.OpenAPITools.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 user) + public ApiResponse UpdateUserWithHttpInfo (string username, User body) { // 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 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' 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"); var localVarPath = "/user/{username}"; var localVarPathParams = new Dictionary(); @@ -829,13 +829,13 @@ namespace Org.OpenAPITools.Api localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Client/Configuration.cs index d6178f475db..b530746cb5a 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Client/Configuration.cs @@ -328,7 +328,7 @@ namespace Org.OpenAPITools.Client } /// - /// Gets or sets the the date time format used when serializing in the ApiClient + /// Gets or sets the date time format used when serializing in the ApiClient /// By default, it's set to ISO 8601 - "o", for others see: /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/Animal.cs index d5279dbdb81..16c89207e31 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/Animal.cs @@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model /// Animal /// [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] + [JsonConverter(typeof(JsonSubtypes), "ClassName")] [JsonSubtypes.KnownSubType(typeof(Dog), "Dog")] [JsonSubtypes.KnownSubType(typeof(Cat), "Cat")] public partial class Animal : IEquatable, IValidatableObject diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/EnumTest.cs index 7099a980016..707ab1fb39e 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Model/EnumTest.cs @@ -140,11 +140,6 @@ namespace Org.OpenAPITools.Model [DataMember(Name="enum_number", EmitDefaultValue=false)] public EnumNumberEnum? EnumNumber { get; set; } /// - /// Gets or Sets OuterEnum - /// - [DataMember(Name="outerEnum", EmitDefaultValue=false)] - public OuterEnum? OuterEnum { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] @@ -157,7 +152,7 @@ namespace Org.OpenAPITools.Model /// enumInteger. /// enumNumber. /// outerEnum. - public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), 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) @@ -178,6 +173,11 @@ namespace Org.OpenAPITools.Model + /// + /// Gets or Sets OuterEnum + /// + [DataMember(Name="outerEnum", EmitDefaultValue=false)] + public OuterEnum OuterEnum { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/.openapi-generator/VERSION b/samples/client/petstore/csharp/OpenAPIClientNetStandard/.openapi-generator/VERSION index d077ffb477a..afa63656064 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/.openapi-generator/VERSION +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/.openapi-generator/VERSION @@ -1 +1 @@ -3.3.4-SNAPSHOT \ No newline at end of file +4.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/README.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/README.md index f6e48e27a2b..a4deb3508da 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/README.md +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/README.md @@ -49,12 +49,12 @@ namespace Example { var apiInstance = new AnotherFakeApi(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test special tags - ModelClient result = apiInstance.Call123TestSpecialTags(modelClient); + ModelClient result = apiInstance.Call123TestSpecialTags(body); Debug.WriteLine(result); } catch (Exception e) @@ -116,7 +116,6 @@ 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) @@ -147,7 +146,6 @@ Class | Method | HTTP request | Description - [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md) - [Model.Return](docs/Return.md) - [Model.SpecialModelName](docs/SpecialModelName.md) - - [Model.StringBooleanMap](docs/StringBooleanMap.md) - [Model.Tag](docs/Tag.md) - [Model.User](docs/User.md) diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/AnotherFakeApi.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/AnotherFakeApi.md index 81cc3106d64..612293b48bb 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/AnotherFakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **Call123TestSpecialTags** -> ModelClient Call123TestSpecialTags (ModelClient modelClient) +> ModelClient Call123TestSpecialTags (ModelClient body) To test special tags @@ -30,12 +30,12 @@ namespace Example public void main() { var apiInstance = new AnotherFakeApi(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test special tags - ModelClient result = apiInstance.Call123TestSpecialTags(modelClient); + ModelClient result = apiInstance.Call123TestSpecialTags(body); Debug.WriteLine(result); } catch (Exception e) @@ -51,7 +51,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelClient** | [**ModelClient**](ModelClient.md)| client model | + **body** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/EnumTest.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/EnumTest.md index 65bc4d2cb04..0e1666d4fea 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/EnumTest.md +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/EnumTest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **EnumStringRequired** | **string** | | **EnumInteger** | **int?** | | [optional] **EnumNumber** | **double?** | | [optional] -**OuterEnum** | **OuterEnum** | | [optional] +**OuterEnum** | [**OuterEnum**](OuterEnum.md) | | [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/OpenAPIClientNetStandard/docs/FakeApi.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeApi.md index 5be422501cd..c2d06117726 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeApi.md @@ -80,7 +80,7 @@ No authorization required # **FakeOuterCompositeSerialize** -> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null) +> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null) @@ -101,11 +101,11 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional) + var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional) try { - OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body); Debug.WriteLine(result); } catch (Exception e) @@ -121,7 +121,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] + **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] ### Return type @@ -260,7 +260,7 @@ No authorization required # **TestBodyWithFileSchema** -> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass) +> void TestBodyWithFileSchema (FileSchemaTestClass body) @@ -281,11 +281,11 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | + var body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.TestBodyWithFileSchema(fileSchemaTestClass); + apiInstance.TestBodyWithFileSchema(body); } catch (Exception e) { @@ -300,7 +300,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -319,7 +319,7 @@ No authorization required # **TestBodyWithQueryParams** -> void TestBodyWithQueryParams (string query, User user) +> void TestBodyWithQueryParams (string query, User body) @@ -339,11 +339,11 @@ namespace Example { var apiInstance = new FakeApi(); var query = query_example; // string | - var user = new User(); // User | + var body = new User(); // User | try { - apiInstance.TestBodyWithQueryParams(query, user); + apiInstance.TestBodyWithQueryParams(query, body); } catch (Exception e) { @@ -359,7 +359,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **string**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -378,7 +378,7 @@ No authorization required # **TestClientModel** -> ModelClient TestClientModel (ModelClient modelClient) +> ModelClient TestClientModel (ModelClient body) To test \"client\" model @@ -399,12 +399,12 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test \"client\" model - ModelClient result = apiInstance.TestClientModel(modelClient); + ModelClient result = apiInstance.TestClientModel(body); Debug.WriteLine(result); } catch (Exception e) @@ -420,7 +420,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelClient** | [**ModelClient**](ModelClient.md)| client model | + **body** | [**ModelClient**](ModelClient.md)| client model | ### Return type @@ -673,7 +673,7 @@ No authorization required # **TestInlineAdditionalProperties** -> void TestInlineAdditionalProperties (Dictionary requestBody) +> void TestInlineAdditionalProperties (Dictionary param) test inline additionalProperties @@ -692,12 +692,12 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var requestBody = new Dictionary(); // Dictionary | request body + var param = new Dictionary(); // Dictionary | request body try { // test inline additionalProperties - apiInstance.TestInlineAdditionalProperties(requestBody); + apiInstance.TestInlineAdditionalProperties(param); } catch (Exception e) { @@ -712,7 +712,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Dictionary<string, string>**](string.md)| request body | + **param** | [**Dictionary<string, string>**](string.md)| request body | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeClassnameTags123Api.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeClassnameTags123Api.md index f069b098399..abea3cb9977 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **TestClassname** -> ModelClient TestClassname (ModelClient modelClient) +> ModelClient TestClassname (ModelClient body) To test class name in snake case @@ -35,12 +35,12 @@ namespace Example // Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer"); var apiInstance = new FakeClassnameTags123Api(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test class name in snake case - ModelClient result = apiInstance.TestClassname(modelClient); + ModelClient result = apiInstance.TestClassname(body); Debug.WriteLine(result); } catch (Exception e) @@ -56,7 +56,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelClient** | [**ModelClient**](ModelClient.md)| client model | + **body** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/PetApi.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/PetApi.md index dd23df9b368..0735bce6fa6 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/PetApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **AddPet** -> void AddPet (Pet pet) +> void AddPet (Pet body) Add a new pet to the store @@ -39,12 +39,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(); - var pet = new Pet(); // Pet | Pet object that needs to be added to the store + var body = new Pet(); // Pet | Pet object that needs to be added to the store try { // Add a new pet to the store - apiInstance.AddPet(pet); + apiInstance.AddPet(body); } catch (Exception e) { @@ -59,7 +59,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type @@ -335,7 +335,7 @@ Name | Type | Description | Notes # **UpdatePet** -> void UpdatePet (Pet pet) +> void UpdatePet (Pet body) Update an existing pet @@ -357,12 +357,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(); - var pet = new Pet(); // Pet | Pet object that needs to be added to the store + var body = new Pet(); // Pet | Pet object that needs to be added to the store try { // Update an existing pet - apiInstance.UpdatePet(pet); + apiInstance.UpdatePet(body); } catch (Exception e) { @@ -377,7 +377,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/StoreApi.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/StoreApi.md index ff7608854f8..dbcf53db616 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/StoreApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/StoreApi.md @@ -195,7 +195,7 @@ No authorization required # **PlaceOrder** -> Order PlaceOrder (Order order) +> Order PlaceOrder (Order body) Place an order for a pet @@ -214,12 +214,12 @@ namespace Example public void main() { var apiInstance = new StoreApi(); - var order = new Order(); // Order | order placed for purchasing the pet + var body = new Order(); // Order | order placed for purchasing the pet try { // Place an order for a pet - Order result = apiInstance.PlaceOrder(order); + Order result = apiInstance.PlaceOrder(body); Debug.WriteLine(result); } catch (Exception e) @@ -235,7 +235,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | [**Order**](Order.md)| order placed for purchasing the pet | + **body** | [**Order**](Order.md)| order placed for purchasing the pet | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/UserApi.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/UserApi.md index 857ab27084c..9a535e16a82 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/UserApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **CreateUser** -> void CreateUser (User user) +> void CreateUser (User body) Create user @@ -37,12 +37,12 @@ namespace Example public void main() { var apiInstance = new UserApi(); - var user = new User(); // User | Created user object + var body = new User(); // User | Created user object try { // Create user - apiInstance.CreateUser(user); + apiInstance.CreateUser(body); } catch (Exception e) { @@ -57,7 +57,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -76,7 +76,7 @@ No authorization required # **CreateUsersWithArrayInput** -> void CreateUsersWithArrayInput (List user) +> void CreateUsersWithArrayInput (List body) Creates list of users with given input array @@ -95,12 +95,12 @@ namespace Example public void main() { var apiInstance = new UserApi(); - var user = new List(); // List | List of user object + var body = new List(); // List | List of user object try { // Creates list of users with given input array - apiInstance.CreateUsersWithArrayInput(user); + apiInstance.CreateUsersWithArrayInput(body); } catch (Exception e) { @@ -115,7 +115,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -134,7 +134,7 @@ No authorization required # **CreateUsersWithListInput** -> void CreateUsersWithListInput (List user) +> void CreateUsersWithListInput (List body) Creates list of users with given input array @@ -153,12 +153,12 @@ namespace Example public void main() { var apiInstance = new UserApi(); - var user = new List(); // List | List of user object + var body = new List(); // List | List of user object try { // Creates list of users with given input array - apiInstance.CreateUsersWithListInput(user); + apiInstance.CreateUsersWithListInput(body); } catch (Exception e) { @@ -173,7 +173,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -426,7 +426,7 @@ No authorization required # **UpdateUser** -> void UpdateUser (string username, User user) +> void UpdateUser (string username, User body) Updated user @@ -448,12 +448,12 @@ namespace Example { var apiInstance = new UserApi(); var username = username_example; // string | name that need to be deleted - var user = new User(); // User | Updated user object + var body = new User(); // User | Updated user object try { // Updated user - apiInstance.UpdateUser(username, user); + apiInstance.UpdateUser(username, body); } catch (Exception e) { @@ -469,7 +469,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **string**| name that need to be deleted | - **user** | [**User**](User.md)| Updated user object | + **body** | [**User**](User.md)| Updated user object | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 8da2f97f375..50c879f669a 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api /// To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - ModelClient Call123TestSpecialTags (ModelClient modelClient); + ModelClient Call123TestSpecialTags (ModelClient body); /// /// To test special tags @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api /// To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient); + ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient body); #endregion Synchronous Operations #region Asynchronous Operations /// @@ -54,9 +54,9 @@ namespace Org.OpenAPITools.Api /// To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ModelClient - System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient modelClient); + System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient body); /// /// To test special tags @@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Api /// To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient); + System.Threading.Tasks.Task> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body); #endregion Asynchronous Operations } @@ -183,11 +183,11 @@ namespace Org.OpenAPITools.Api /// To test special tags To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - public ModelClient Call123TestSpecialTags (ModelClient modelClient) + public ModelClient Call123TestSpecialTags (ModelClient body) { - ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient); + ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(body); return localVarResponse.Data; } @@ -195,13 +195,13 @@ namespace Org.OpenAPITools.Api /// To test special tags To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient) + public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags"); var localVarPath = "./another-fake/dummy"; var localVarPathParams = new Dictionary(); @@ -225,13 +225,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } @@ -257,11 +257,11 @@ namespace Org.OpenAPITools.Api /// To test special tags To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ModelClient - public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient modelClient) + public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient body) { - ApiResponse localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(modelClient); + ApiResponse localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(body); return localVarResponse.Data; } @@ -270,13 +270,13 @@ namespace Org.OpenAPITools.Api /// To test special tags To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient) + public async System.Threading.Tasks.Task> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags"); var localVarPath = "./another-fake/dummy"; var localVarPathParams = new Dictionary(); @@ -300,13 +300,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeApi.cs index f2eaa0b5682..f23530daca6 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeApi.cs @@ -52,9 +52,9 @@ namespace Org.OpenAPITools.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 outerComposite = null); + OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null); /// /// @@ -63,9 +63,9 @@ namespace Org.OpenAPITools.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 outerComposite = null); + ApiResponse FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null); /// /// /// @@ -115,9 +115,9 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// - void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass); + void TestBodyWithFileSchema (FileSchemaTestClass body); /// /// @@ -126,9 +126,9 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass); + ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body); /// /// /// @@ -137,9 +137,9 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// - void TestBodyWithQueryParams (string query, User user); + void TestBodyWithQueryParams (string query, User body); /// /// @@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User user); + ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User body); /// /// To test \"client\" model /// @@ -159,9 +159,9 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - ModelClient TestClientModel (ModelClient modelClient); + ModelClient TestClientModel (ModelClient body); /// /// To test \"client\" model @@ -170,9 +170,9 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - ApiResponse TestClientModelWithHttpInfo (ModelClient modelClient); + ApiResponse TestClientModelWithHttpInfo (ModelClient body); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -293,9 +293,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// request body + /// request body /// - void TestInlineAdditionalProperties (Dictionary requestBody); + void TestInlineAdditionalProperties (Dictionary param); /// /// test inline additionalProperties @@ -304,9 +304,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// request body + /// request body /// ApiResponse of Object(void) - ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary requestBody); + ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary param); /// /// test json serialization of form data /// @@ -360,9 +360,9 @@ namespace Org.OpenAPITools.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) /// Task of OuterComposite - System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync (OuterComposite outerComposite = null); + System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync (OuterComposite body = null); /// /// @@ -371,9 +371,9 @@ namespace Org.OpenAPITools.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) /// Task of ApiResponse (OuterComposite) - System.Threading.Tasks.Task> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite outerComposite = null); + System.Threading.Tasks.Task> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null); /// /// /// @@ -423,9 +423,9 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass fileSchemaTestClass); + System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body); /// /// @@ -434,9 +434,9 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass fileSchemaTestClass); + System.Threading.Tasks.Task> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body); /// /// /// @@ -445,9 +445,9 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User user); + System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body); /// /// @@ -457,9 +457,9 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User user); + System.Threading.Tasks.Task> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body); /// /// To test \"client\" model /// @@ -467,9 +467,9 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ModelClient - System.Threading.Tasks.Task TestClientModelAsync (ModelClient modelClient); + System.Threading.Tasks.Task TestClientModelAsync (ModelClient body); /// /// To test \"client\" model @@ -478,9 +478,9 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> TestClientModelAsyncWithHttpInfo (ModelClient modelClient); + System.Threading.Tasks.Task> TestClientModelAsyncWithHttpInfo (ModelClient body); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -601,9 +601,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// request body + /// request body /// Task of void - System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary requestBody); + System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary param); /// /// test inline additionalProperties @@ -612,9 +612,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// request body + /// request body /// Task of ApiResponse - System.Threading.Tasks.Task> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary requestBody); + System.Threading.Tasks.Task> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary param); /// /// test json serialization of form data /// @@ -894,11 +894,11 @@ namespace Org.OpenAPITools.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 - public OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null) + public OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null) { - ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite); + ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -906,9 +906,9 @@ namespace Org.OpenAPITools.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 - public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null) + public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null) { var localVarPath = "./fake/outer/composite"; @@ -932,13 +932,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (outerComposite != null && outerComposite.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(outerComposite); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = outerComposite; // byte array + localVarPostBody = body; // byte array } @@ -964,11 +964,11 @@ namespace Org.OpenAPITools.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) /// Task of OuterComposite - public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync (OuterComposite outerComposite = null) + public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync (OuterComposite body = null) { - ApiResponse localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(outerComposite); + ApiResponse localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(body); return localVarResponse.Data; } @@ -977,9 +977,9 @@ namespace Org.OpenAPITools.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) /// Task of ApiResponse (OuterComposite) - public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite outerComposite = null) + public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null) { var localVarPath = "./fake/outer/composite"; @@ -1003,13 +1003,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (outerComposite != null && outerComposite.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(outerComposite); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = outerComposite; // byte array + localVarPostBody = body; // byte array } @@ -1317,24 +1317,24 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// - public void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass) + public void TestBodyWithFileSchema (FileSchemaTestClass body) { - TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + TestBodyWithFileSchemaWithHttpInfo(body); } /// /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// ApiResponse of Object(void) - public ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass) + public ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body) { - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) - throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema"); var localVarPath = "./fake/body-with-file-schema"; var localVarPathParams = new Dictionary(); @@ -1357,13 +1357,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (fileSchemaTestClass != null && fileSchemaTestClass.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(fileSchemaTestClass); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = fileSchemaTestClass; // byte array + localVarPostBody = body; // byte array } @@ -1389,11 +1389,11 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass fileSchemaTestClass) + public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body) { - await TestBodyWithFileSchemaAsyncWithHttpInfo(fileSchemaTestClass); + await TestBodyWithFileSchemaAsyncWithHttpInfo(body); } @@ -1401,13 +1401,13 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass fileSchemaTestClass) + public async System.Threading.Tasks.Task> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body) { - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) - throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema"); var localVarPath = "./fake/body-with-file-schema"; var localVarPathParams = new Dictionary(); @@ -1430,13 +1430,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (fileSchemaTestClass != null && fileSchemaTestClass.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(fileSchemaTestClass); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = fileSchemaTestClass; // byte array + localVarPostBody = body; // byte array } @@ -1463,11 +1463,11 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// - public void TestBodyWithQueryParams (string query, User user) + public void TestBodyWithQueryParams (string query, User body) { - TestBodyWithQueryParamsWithHttpInfo(query, user); + TestBodyWithQueryParamsWithHttpInfo(query, body); } /// @@ -1475,16 +1475,16 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// ApiResponse of Object(void) - public ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User user) + public ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User body) { // verify the required parameter 'query' is set if (query == null) throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams"); - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams"); var localVarPath = "./fake/body-with-query-params"; var localVarPathParams = new Dictionary(); @@ -1508,13 +1508,13 @@ namespace Org.OpenAPITools.Api localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -1541,11 +1541,11 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User user) + public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body) { - await TestBodyWithQueryParamsAsyncWithHttpInfo(query, user); + await TestBodyWithQueryParamsAsyncWithHttpInfo(query, body); } @@ -1554,16 +1554,16 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User user) + public async System.Threading.Tasks.Task> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body) { // verify the required parameter 'query' is set if (query == null) throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams"); - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams"); var localVarPath = "./fake/body-with-query-params"; var localVarPathParams = new Dictionary(); @@ -1587,13 +1587,13 @@ namespace Org.OpenAPITools.Api localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -1619,11 +1619,11 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - public ModelClient TestClientModel (ModelClient modelClient) + public ModelClient TestClientModel (ModelClient body) { - ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient); + ApiResponse localVarResponse = TestClientModelWithHttpInfo(body); return localVarResponse.Data; } @@ -1631,13 +1631,13 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient modelClient) + public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel"); var localVarPath = "./fake"; var localVarPathParams = new Dictionary(); @@ -1661,13 +1661,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } @@ -1693,11 +1693,11 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ModelClient - public async System.Threading.Tasks.Task TestClientModelAsync (ModelClient modelClient) + public async System.Threading.Tasks.Task TestClientModelAsync (ModelClient body) { - ApiResponse localVarResponse = await TestClientModelAsyncWithHttpInfo(modelClient); + ApiResponse localVarResponse = await TestClientModelAsyncWithHttpInfo(body); return localVarResponse.Data; } @@ -1706,13 +1706,13 @@ namespace Org.OpenAPITools.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 modelClient) + public async System.Threading.Tasks.Task> TestClientModelAsyncWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel"); var localVarPath = "./fake"; var localVarPathParams = new Dictionary(); @@ -1736,13 +1736,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } @@ -2345,24 +2345,24 @@ namespace Org.OpenAPITools.Api /// test inline additionalProperties /// /// Thrown when fails to make API call - /// request body + /// request body /// - public void TestInlineAdditionalProperties (Dictionary requestBody) + public void TestInlineAdditionalProperties (Dictionary param) { - TestInlineAdditionalPropertiesWithHttpInfo(requestBody); + TestInlineAdditionalPropertiesWithHttpInfo(param); } /// /// test inline additionalProperties /// /// Thrown when fails to make API call - /// request body + /// request body /// ApiResponse of Object(void) - public ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary requestBody) + public ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary param) { - // verify the required parameter 'requestBody' is set - if (requestBody == null) - throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) + throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties"); var localVarPath = "./fake/inline-additionalProperties"; var localVarPathParams = new Dictionary(); @@ -2385,13 +2385,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (requestBody != null && requestBody.GetType() != typeof(byte[])) + if (param != null && param.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter } else { - localVarPostBody = requestBody; // byte array + localVarPostBody = param; // byte array } @@ -2417,11 +2417,11 @@ namespace Org.OpenAPITools.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 (Dictionary requestBody) + public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary param) { - await TestInlineAdditionalPropertiesAsyncWithHttpInfo(requestBody); + await TestInlineAdditionalPropertiesAsyncWithHttpInfo(param); } @@ -2429,13 +2429,13 @@ namespace Org.OpenAPITools.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 (Dictionary requestBody) + public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary param) { - // verify the required parameter 'requestBody' is set - if (requestBody == null) - throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) + throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties"); var localVarPath = "./fake/inline-additionalProperties"; var localVarPathParams = new Dictionary(); @@ -2458,13 +2458,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (requestBody != null && requestBody.GetType() != typeof(byte[])) + if (param != null && param.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter } else { - localVarPostBody = requestBody; // byte array + localVarPostBody = param; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index f73a932acde..378388ef755 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api /// To test class name in snake case /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - ModelClient TestClassname (ModelClient modelClient); + ModelClient TestClassname (ModelClient body); /// /// To test class name in snake case @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api /// To test class name in snake case /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - ApiResponse TestClassnameWithHttpInfo (ModelClient modelClient); + ApiResponse TestClassnameWithHttpInfo (ModelClient body); #endregion Synchronous Operations #region Asynchronous Operations /// @@ -54,9 +54,9 @@ namespace Org.OpenAPITools.Api /// 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 modelClient); + System.Threading.Tasks.Task TestClassnameAsync (ModelClient body); /// /// To test class name in snake case @@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Api /// 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 modelClient); + System.Threading.Tasks.Task> TestClassnameAsyncWithHttpInfo (ModelClient body); #endregion Asynchronous Operations } @@ -183,11 +183,11 @@ namespace Org.OpenAPITools.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 - public ModelClient TestClassname (ModelClient modelClient) + public ModelClient TestClassname (ModelClient body) { - ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient); + ApiResponse localVarResponse = TestClassnameWithHttpInfo(body); return localVarResponse.Data; } @@ -195,13 +195,13 @@ namespace Org.OpenAPITools.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 /// ApiResponse of ModelClient - public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient modelClient) + public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname"); var localVarPath = "./fake_classname_test"; var localVarPathParams = new Dictionary(); @@ -225,13 +225,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } // authentication (api_key_query) required @@ -262,11 +262,11 @@ namespace Org.OpenAPITools.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 /// Task of ModelClient - public async System.Threading.Tasks.Task TestClassnameAsync (ModelClient modelClient) + public async System.Threading.Tasks.Task TestClassnameAsync (ModelClient body) { - ApiResponse localVarResponse = await TestClassnameAsyncWithHttpInfo(modelClient); + ApiResponse localVarResponse = await TestClassnameAsyncWithHttpInfo(body); return localVarResponse.Data; } @@ -275,13 +275,13 @@ namespace Org.OpenAPITools.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 /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> TestClassnameAsyncWithHttpInfo (ModelClient modelClient) + public async System.Threading.Tasks.Task> TestClassnameAsyncWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname"); var localVarPath = "./fake_classname_test"; var localVarPathParams = new Dictionary(); @@ -305,13 +305,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } // authentication (api_key_query) required diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/PetApi.cs index c6c1644b386..212ceacbd04 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/PetApi.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.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 pet); + void AddPet (Pet body); /// /// Add a new pet to the store @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.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 pet); + ApiResponse AddPetWithHttpInfo (Pet body); /// /// Deletes a pet /// @@ -138,9 +138,9 @@ namespace Org.OpenAPITools.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 pet); + void UpdatePet (Pet body); /// /// Update an existing pet @@ -149,9 +149,9 @@ namespace Org.OpenAPITools.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 pet); + ApiResponse UpdatePetWithHttpInfo (Pet body); /// /// Updates a pet in the store with form data /// @@ -236,9 +236,9 @@ namespace Org.OpenAPITools.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 pet); + System.Threading.Tasks.Task AddPetAsync (Pet body); /// /// Add a new pet to the store @@ -247,9 +247,9 @@ namespace Org.OpenAPITools.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 pet); + System.Threading.Tasks.Task> AddPetAsyncWithHttpInfo (Pet body); /// /// Deletes a pet /// @@ -343,9 +343,9 @@ namespace Org.OpenAPITools.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 pet); + System.Threading.Tasks.Task UpdatePetAsync (Pet body); /// /// Update an existing pet @@ -354,9 +354,9 @@ namespace Org.OpenAPITools.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 pet); + System.Threading.Tasks.Task> UpdatePetAsyncWithHttpInfo (Pet body); /// /// Updates a pet in the store with form data /// @@ -547,24 +547,24 @@ namespace Org.OpenAPITools.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 pet) + public void AddPet (Pet body) { - AddPetWithHttpInfo(pet); + AddPetWithHttpInfo(body); } /// /// 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 pet) + public ApiResponse AddPetWithHttpInfo (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) - throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet"); var localVarPath = "./pet"; var localVarPathParams = new Dictionary(); @@ -588,13 +588,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (pet != null && pet.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = pet; // byte array + localVarPostBody = body; // byte array } // authentication (petstore_auth) required @@ -626,11 +626,11 @@ namespace Org.OpenAPITools.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 pet) + public async System.Threading.Tasks.Task AddPetAsync (Pet body) { - await AddPetAsyncWithHttpInfo(pet); + await AddPetAsyncWithHttpInfo(body); } @@ -638,13 +638,13 @@ namespace Org.OpenAPITools.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 pet) + public async System.Threading.Tasks.Task> AddPetAsyncWithHttpInfo (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) - throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet"); var localVarPath = "./pet"; var localVarPathParams = new Dictionary(); @@ -668,13 +668,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (pet != null && pet.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = pet; // byte array + localVarPostBody = body; // byte array } // authentication (petstore_auth) required @@ -1292,24 +1292,24 @@ namespace Org.OpenAPITools.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 pet) + public void UpdatePet (Pet body) { - UpdatePetWithHttpInfo(pet); + UpdatePetWithHttpInfo(body); } /// /// 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 pet) + public ApiResponse UpdatePetWithHttpInfo (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) - throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet"); var localVarPath = "./pet"; var localVarPathParams = new Dictionary(); @@ -1333,13 +1333,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (pet != null && pet.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = pet; // byte array + localVarPostBody = body; // byte array } // authentication (petstore_auth) required @@ -1371,11 +1371,11 @@ namespace Org.OpenAPITools.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 pet) + public async System.Threading.Tasks.Task UpdatePetAsync (Pet body) { - await UpdatePetAsyncWithHttpInfo(pet); + await UpdatePetAsyncWithHttpInfo(body); } @@ -1383,13 +1383,13 @@ namespace Org.OpenAPITools.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 pet) + public async System.Threading.Tasks.Task> UpdatePetAsyncWithHttpInfo (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) - throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet"); var localVarPath = "./pet"; var localVarPathParams = new Dictionary(); @@ -1413,13 +1413,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (pet != null && pet.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = pet; // byte array + localVarPostBody = body; // byte array } // authentication (petstore_auth) required diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/StoreApi.cs index 851c41d3a94..7a83c46d57c 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/StoreApi.cs @@ -92,9 +92,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// order placed for purchasing the pet + /// order placed for purchasing the pet /// Order - Order PlaceOrder (Order order); + Order PlaceOrder (Order body); /// /// Place an order for a pet @@ -103,9 +103,9 @@ namespace Org.OpenAPITools.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 order); + ApiResponse PlaceOrderWithHttpInfo (Order body); #endregion Synchronous Operations #region Asynchronous Operations /// @@ -176,9 +176,9 @@ namespace Org.OpenAPITools.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 order); + System.Threading.Tasks.Task PlaceOrderAsync (Order body); /// /// Place an order for a pet @@ -187,9 +187,9 @@ namespace Org.OpenAPITools.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 order); + System.Threading.Tasks.Task> PlaceOrderAsyncWithHttpInfo (Order body); #endregion Asynchronous Operations } @@ -700,11 +700,11 @@ namespace Org.OpenAPITools.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 order) + public Order PlaceOrder (Order body) { - ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order); + ApiResponse localVarResponse = PlaceOrderWithHttpInfo(body); return localVarResponse.Data; } @@ -712,13 +712,13 @@ namespace Org.OpenAPITools.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 order) + public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body) { - // verify the required parameter 'order' is set - if (order == null) - throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder"); var localVarPath = "./store/order"; var localVarPathParams = new Dictionary(); @@ -742,13 +742,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (order != null && order.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = order; // byte array + localVarPostBody = body; // byte array } @@ -774,11 +774,11 @@ namespace Org.OpenAPITools.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 order) + public async System.Threading.Tasks.Task PlaceOrderAsync (Order body) { - ApiResponse localVarResponse = await PlaceOrderAsyncWithHttpInfo(order); + ApiResponse localVarResponse = await PlaceOrderAsyncWithHttpInfo(body); return localVarResponse.Data; } @@ -787,13 +787,13 @@ namespace Org.OpenAPITools.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 order) + public async System.Threading.Tasks.Task> PlaceOrderAsyncWithHttpInfo (Order body) { - // verify the required parameter 'order' is set - if (order == null) - throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder"); var localVarPath = "./store/order"; var localVarPathParams = new Dictionary(); @@ -817,13 +817,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (order != null && order.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = order; // byte array + localVarPostBody = body; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/UserApi.cs index b22ab90c883..cd75fe741c0 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/UserApi.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.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 user); + void CreateUser (User body); /// /// Create user @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.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 user); + ApiResponse CreateUserWithHttpInfo (User body); /// /// Creates list of users with given input array /// @@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// - void CreateUsersWithArrayInput (List user); + void CreateUsersWithArrayInput (List body); /// /// Creates list of users with given input array @@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// ApiResponse of Object(void) - ApiResponse CreateUsersWithArrayInputWithHttpInfo (List user); + ApiResponse CreateUsersWithArrayInputWithHttpInfo (List body); /// /// Creates list of users with given input array /// @@ -73,9 +73,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// - void CreateUsersWithListInput (List user); + void CreateUsersWithListInput (List body); /// /// Creates list of users with given input array @@ -84,9 +84,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// ApiResponse of Object(void) - ApiResponse CreateUsersWithListInputWithHttpInfo (List user); + ApiResponse CreateUsersWithListInputWithHttpInfo (List body); /// /// Delete user /// @@ -179,9 +179,9 @@ namespace Org.OpenAPITools.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 user); + void UpdateUser (string username, User body); /// /// Updated user @@ -191,9 +191,9 @@ namespace Org.OpenAPITools.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 user); + ApiResponse UpdateUserWithHttpInfo (string username, User body); #endregion Synchronous Operations #region Asynchronous Operations /// @@ -203,9 +203,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task CreateUserAsync (User body); /// /// Create user @@ -214,9 +214,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task> CreateUserAsyncWithHttpInfo (User body); /// /// Creates list of users with given input array /// @@ -224,9 +224,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List body); /// /// Creates list of users with given input array @@ -235,9 +235,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task> CreateUsersWithArrayInputAsyncWithHttpInfo (List body); /// /// Creates list of users with given input array /// @@ -245,9 +245,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task CreateUsersWithListInputAsync (List body); /// /// Creates list of users with given input array @@ -256,9 +256,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task> CreateUsersWithListInputAsyncWithHttpInfo (List body); /// /// Delete user /// @@ -351,9 +351,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task UpdateUserAsync (string username, User body); /// /// Updated user @@ -363,9 +363,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo (string username, User body); #endregion Asynchronous Operations } @@ -481,24 +481,24 @@ namespace Org.OpenAPITools.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 user) + public void CreateUser (User body) { - CreateUserWithHttpInfo(user); + CreateUserWithHttpInfo(body); } /// /// 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 user) + public ApiResponse CreateUserWithHttpInfo (User body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser"); var localVarPath = "./user"; var localVarPathParams = new Dictionary(); @@ -520,13 +520,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -552,11 +552,11 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task CreateUserAsync (User body) { - await CreateUserAsyncWithHttpInfo(user); + await CreateUserAsyncWithHttpInfo(body); } @@ -564,13 +564,13 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task> CreateUserAsyncWithHttpInfo (User body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser"); var localVarPath = "./user"; var localVarPathParams = new Dictionary(); @@ -592,13 +592,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -624,24 +624,24 @@ namespace Org.OpenAPITools.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 user) + public void CreateUsersWithArrayInput (List body) { - CreateUsersWithArrayInputWithHttpInfo(user); + CreateUsersWithArrayInputWithHttpInfo(body); } /// /// 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 user) + public ApiResponse CreateUsersWithArrayInputWithHttpInfo (List body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput"); var localVarPath = "./user/createWithArray"; var localVarPathParams = new Dictionary(); @@ -663,13 +663,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -695,11 +695,11 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List body) { - await CreateUsersWithArrayInputAsyncWithHttpInfo(user); + await CreateUsersWithArrayInputAsyncWithHttpInfo(body); } @@ -707,13 +707,13 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task> CreateUsersWithArrayInputAsyncWithHttpInfo (List body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput"); var localVarPath = "./user/createWithArray"; var localVarPathParams = new Dictionary(); @@ -735,13 +735,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -767,24 +767,24 @@ namespace Org.OpenAPITools.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 user) + public void CreateUsersWithListInput (List body) { - CreateUsersWithListInputWithHttpInfo(user); + CreateUsersWithListInputWithHttpInfo(body); } /// /// 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 user) + public ApiResponse CreateUsersWithListInputWithHttpInfo (List body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput"); var localVarPath = "./user/createWithList"; var localVarPathParams = new Dictionary(); @@ -806,13 +806,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -838,11 +838,11 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List body) { - await CreateUsersWithListInputAsyncWithHttpInfo(user); + await CreateUsersWithListInputAsyncWithHttpInfo(body); } @@ -850,13 +850,13 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task> CreateUsersWithListInputAsyncWithHttpInfo (List body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput"); var localVarPath = "./user/createWithList"; var localVarPathParams = new Dictionary(); @@ -878,13 +878,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -1439,11 +1439,11 @@ namespace Org.OpenAPITools.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 user) + public void UpdateUser (string username, User body) { - UpdateUserWithHttpInfo(username, user); + UpdateUserWithHttpInfo(username, body); } /// @@ -1451,16 +1451,16 @@ namespace Org.OpenAPITools.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 user) + public ApiResponse UpdateUserWithHttpInfo (string username, User body) { // 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 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' 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"); var localVarPath = "./user/{username}"; var localVarPathParams = new Dictionary(); @@ -1483,13 +1483,13 @@ namespace Org.OpenAPITools.Api localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -1516,11 +1516,11 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task UpdateUserAsync (string username, User body) { - await UpdateUserAsyncWithHttpInfo(username, user); + await UpdateUserAsyncWithHttpInfo(username, body); } @@ -1529,16 +1529,16 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo (string username, User body) { // 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 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' 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"); var localVarPath = "./user/{username}"; var localVarPathParams = new Dictionary(); @@ -1561,13 +1561,13 @@ namespace Org.OpenAPITools.Api localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Client/Configuration.cs index fb26d766182..1283c692cd0 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Client/Configuration.cs @@ -323,7 +323,7 @@ namespace Org.OpenAPITools.Client } /// - /// Gets or sets the the date time format used when serializing in the ApiClient + /// Gets or sets the date time format used when serializing in the ApiClient /// By default, it's set to ISO 8601 - "o", for others see: /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Model/Animal.cs index 4dac740d240..035d2103f98 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Model/Animal.cs @@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model /// Animal /// [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] + [JsonConverter(typeof(JsonSubtypes), "ClassName")] [JsonSubtypes.KnownSubType(typeof(Dog), "Dog")] [JsonSubtypes.KnownSubType(typeof(Cat), "Cat")] public partial class Animal : IEquatable diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Model/EnumTest.cs index 17d1f39b2be..073073c6ae8 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Model/EnumTest.cs @@ -138,11 +138,6 @@ namespace Org.OpenAPITools.Model [DataMember(Name="enum_number", EmitDefaultValue=false)] public EnumNumberEnum? EnumNumber { get; set; } /// - /// Gets or Sets OuterEnum - /// - [DataMember(Name="outerEnum", EmitDefaultValue=false)] - public OuterEnum? OuterEnum { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] @@ -155,7 +150,7 @@ namespace Org.OpenAPITools.Model /// enumInteger. /// enumNumber. /// outerEnum. - public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), 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) @@ -176,6 +171,11 @@ namespace Org.OpenAPITools.Model + /// + /// Gets or Sets OuterEnum + /// + [DataMember(Name="outerEnum", EmitDefaultValue=false)] + public OuterEnum OuterEnum { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/.openapi-generator/VERSION b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/.openapi-generator/VERSION index d077ffb477a..afa63656064 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/.openapi-generator/VERSION +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/.openapi-generator/VERSION @@ -1 +1 @@ -3.3.4-SNAPSHOT \ No newline at end of file +4.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/README.md b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/README.md index aabf26b7899..8dc6d97251c 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/README.md +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/README.md @@ -71,12 +71,12 @@ namespace Example { var apiInstance = new AnotherFakeApi(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test special tags - ModelClient result = apiInstance.Call123TestSpecialTags(modelClient); + ModelClient result = apiInstance.Call123TestSpecialTags(body); Debug.WriteLine(result); } catch (Exception e) @@ -138,7 +138,6 @@ 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) @@ -169,7 +168,6 @@ Class | Method | HTTP request | Description - [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md) - [Model.Return](docs/Return.md) - [Model.SpecialModelName](docs/SpecialModelName.md) - - [Model.StringBooleanMap](docs/StringBooleanMap.md) - [Model.Tag](docs/Tag.md) - [Model.User](docs/User.md) diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/AnotherFakeApi.md b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/AnotherFakeApi.md index 81cc3106d64..612293b48bb 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/AnotherFakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **Call123TestSpecialTags** -> ModelClient Call123TestSpecialTags (ModelClient modelClient) +> ModelClient Call123TestSpecialTags (ModelClient body) To test special tags @@ -30,12 +30,12 @@ namespace Example public void main() { var apiInstance = new AnotherFakeApi(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test special tags - ModelClient result = apiInstance.Call123TestSpecialTags(modelClient); + ModelClient result = apiInstance.Call123TestSpecialTags(body); Debug.WriteLine(result); } catch (Exception e) @@ -51,7 +51,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelClient** | [**ModelClient**](ModelClient.md)| client model | + **body** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/EnumTest.md b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/EnumTest.md index 65bc4d2cb04..0e1666d4fea 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/EnumTest.md +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/EnumTest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **EnumStringRequired** | **string** | | **EnumInteger** | **int?** | | [optional] **EnumNumber** | **double?** | | [optional] -**OuterEnum** | **OuterEnum** | | [optional] +**OuterEnum** | [**OuterEnum**](OuterEnum.md) | | [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/OpenAPIClientWithPropertyChanged/docs/FakeApi.md b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/FakeApi.md index 5be422501cd..c2d06117726 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/FakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/FakeApi.md @@ -80,7 +80,7 @@ No authorization required # **FakeOuterCompositeSerialize** -> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null) +> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null) @@ -101,11 +101,11 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional) + var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional) try { - OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body); Debug.WriteLine(result); } catch (Exception e) @@ -121,7 +121,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] + **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] ### Return type @@ -260,7 +260,7 @@ No authorization required # **TestBodyWithFileSchema** -> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass) +> void TestBodyWithFileSchema (FileSchemaTestClass body) @@ -281,11 +281,11 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | + var body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.TestBodyWithFileSchema(fileSchemaTestClass); + apiInstance.TestBodyWithFileSchema(body); } catch (Exception e) { @@ -300,7 +300,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -319,7 +319,7 @@ No authorization required # **TestBodyWithQueryParams** -> void TestBodyWithQueryParams (string query, User user) +> void TestBodyWithQueryParams (string query, User body) @@ -339,11 +339,11 @@ namespace Example { var apiInstance = new FakeApi(); var query = query_example; // string | - var user = new User(); // User | + var body = new User(); // User | try { - apiInstance.TestBodyWithQueryParams(query, user); + apiInstance.TestBodyWithQueryParams(query, body); } catch (Exception e) { @@ -359,7 +359,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **string**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -378,7 +378,7 @@ No authorization required # **TestClientModel** -> ModelClient TestClientModel (ModelClient modelClient) +> ModelClient TestClientModel (ModelClient body) To test \"client\" model @@ -399,12 +399,12 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test \"client\" model - ModelClient result = apiInstance.TestClientModel(modelClient); + ModelClient result = apiInstance.TestClientModel(body); Debug.WriteLine(result); } catch (Exception e) @@ -420,7 +420,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelClient** | [**ModelClient**](ModelClient.md)| client model | + **body** | [**ModelClient**](ModelClient.md)| client model | ### Return type @@ -673,7 +673,7 @@ No authorization required # **TestInlineAdditionalProperties** -> void TestInlineAdditionalProperties (Dictionary requestBody) +> void TestInlineAdditionalProperties (Dictionary param) test inline additionalProperties @@ -692,12 +692,12 @@ namespace Example public void main() { var apiInstance = new FakeApi(); - var requestBody = new Dictionary(); // Dictionary | request body + var param = new Dictionary(); // Dictionary | request body try { // test inline additionalProperties - apiInstance.TestInlineAdditionalProperties(requestBody); + apiInstance.TestInlineAdditionalProperties(param); } catch (Exception e) { @@ -712,7 +712,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Dictionary<string, string>**](string.md)| request body | + **param** | [**Dictionary<string, string>**](string.md)| request body | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/FakeClassnameTags123Api.md b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/FakeClassnameTags123Api.md index f069b098399..abea3cb9977 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **TestClassname** -> ModelClient TestClassname (ModelClient modelClient) +> ModelClient TestClassname (ModelClient body) To test class name in snake case @@ -35,12 +35,12 @@ namespace Example // Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer"); var apiInstance = new FakeClassnameTags123Api(); - var modelClient = new ModelClient(); // ModelClient | client model + var body = new ModelClient(); // ModelClient | client model try { // To test class name in snake case - ModelClient result = apiInstance.TestClassname(modelClient); + ModelClient result = apiInstance.TestClassname(body); Debug.WriteLine(result); } catch (Exception e) @@ -56,7 +56,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelClient** | [**ModelClient**](ModelClient.md)| client model | + **body** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/PetApi.md b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/PetApi.md index dd23df9b368..0735bce6fa6 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/PetApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **AddPet** -> void AddPet (Pet pet) +> void AddPet (Pet body) Add a new pet to the store @@ -39,12 +39,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(); - var pet = new Pet(); // Pet | Pet object that needs to be added to the store + var body = new Pet(); // Pet | Pet object that needs to be added to the store try { // Add a new pet to the store - apiInstance.AddPet(pet); + apiInstance.AddPet(body); } catch (Exception e) { @@ -59,7 +59,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type @@ -335,7 +335,7 @@ Name | Type | Description | Notes # **UpdatePet** -> void UpdatePet (Pet pet) +> void UpdatePet (Pet body) Update an existing pet @@ -357,12 +357,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(); - var pet = new Pet(); // Pet | Pet object that needs to be added to the store + var body = new Pet(); // Pet | Pet object that needs to be added to the store try { // Update an existing pet - apiInstance.UpdatePet(pet); + apiInstance.UpdatePet(body); } catch (Exception e) { @@ -377,7 +377,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | + **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/StoreApi.md b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/StoreApi.md index ff7608854f8..dbcf53db616 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/StoreApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/StoreApi.md @@ -195,7 +195,7 @@ No authorization required # **PlaceOrder** -> Order PlaceOrder (Order order) +> Order PlaceOrder (Order body) Place an order for a pet @@ -214,12 +214,12 @@ namespace Example public void main() { var apiInstance = new StoreApi(); - var order = new Order(); // Order | order placed for purchasing the pet + var body = new Order(); // Order | order placed for purchasing the pet try { // Place an order for a pet - Order result = apiInstance.PlaceOrder(order); + Order result = apiInstance.PlaceOrder(body); Debug.WriteLine(result); } catch (Exception e) @@ -235,7 +235,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | [**Order**](Order.md)| order placed for purchasing the pet | + **body** | [**Order**](Order.md)| order placed for purchasing the pet | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/UserApi.md b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/UserApi.md index 857ab27084c..9a535e16a82 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/UserApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **CreateUser** -> void CreateUser (User user) +> void CreateUser (User body) Create user @@ -37,12 +37,12 @@ namespace Example public void main() { var apiInstance = new UserApi(); - var user = new User(); // User | Created user object + var body = new User(); // User | Created user object try { // Create user - apiInstance.CreateUser(user); + apiInstance.CreateUser(body); } catch (Exception e) { @@ -57,7 +57,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -76,7 +76,7 @@ No authorization required # **CreateUsersWithArrayInput** -> void CreateUsersWithArrayInput (List user) +> void CreateUsersWithArrayInput (List body) Creates list of users with given input array @@ -95,12 +95,12 @@ namespace Example public void main() { var apiInstance = new UserApi(); - var user = new List(); // List | List of user object + var body = new List(); // List | List of user object try { // Creates list of users with given input array - apiInstance.CreateUsersWithArrayInput(user); + apiInstance.CreateUsersWithArrayInput(body); } catch (Exception e) { @@ -115,7 +115,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -134,7 +134,7 @@ No authorization required # **CreateUsersWithListInput** -> void CreateUsersWithListInput (List user) +> void CreateUsersWithListInput (List body) Creates list of users with given input array @@ -153,12 +153,12 @@ namespace Example public void main() { var apiInstance = new UserApi(); - var user = new List(); // List | List of user object + var body = new List(); // List | List of user object try { // Creates list of users with given input array - apiInstance.CreateUsersWithListInput(user); + apiInstance.CreateUsersWithListInput(body); } catch (Exception e) { @@ -173,7 +173,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -426,7 +426,7 @@ No authorization required # **UpdateUser** -> void UpdateUser (string username, User user) +> void UpdateUser (string username, User body) Updated user @@ -448,12 +448,12 @@ namespace Example { var apiInstance = new UserApi(); var username = username_example; // string | name that need to be deleted - var user = new User(); // User | Updated user object + var body = new User(); // User | Updated user object try { // Updated user - apiInstance.UpdateUser(username, user); + apiInstance.UpdateUser(username, body); } catch (Exception e) { @@ -469,7 +469,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **string**| name that need to be deleted | - **user** | [**User**](User.md)| Updated user object | + **body** | [**User**](User.md)| Updated user object | ### Return type diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index cf759d5e82c..53ce7dec4bc 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api /// To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - ModelClient Call123TestSpecialTags (ModelClient modelClient); + ModelClient Call123TestSpecialTags (ModelClient body); /// /// To test special tags @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api /// To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient); + ApiResponse Call123TestSpecialTagsWithHttpInfo (ModelClient body); #endregion Synchronous Operations #region Asynchronous Operations /// @@ -54,9 +54,9 @@ namespace Org.OpenAPITools.Api /// To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ModelClient - System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient modelClient); + System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient body); /// /// To test special tags @@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Api /// To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient); + System.Threading.Tasks.Task> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body); #endregion Asynchronous Operations } @@ -183,11 +183,11 @@ namespace Org.OpenAPITools.Api /// To test special tags To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - public ModelClient Call123TestSpecialTags (ModelClient modelClient) + public ModelClient Call123TestSpecialTags (ModelClient body) { - ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient); + ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(body); return localVarResponse.Data; } @@ -195,13 +195,13 @@ namespace Org.OpenAPITools.Api /// To test special tags To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient) + public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags"); var localVarPath = "/another-fake/dummy"; var localVarPathParams = new Dictionary(); @@ -225,13 +225,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } @@ -257,11 +257,11 @@ namespace Org.OpenAPITools.Api /// To test special tags To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ModelClient - public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient modelClient) + public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync (ModelClient body) { - ApiResponse localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(modelClient); + ApiResponse localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(body); return localVarResponse.Data; } @@ -270,13 +270,13 @@ namespace Org.OpenAPITools.Api /// To test special tags To test special tags and operation ID starting with number /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient) + public async System.Threading.Tasks.Task> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags"); var localVarPath = "/another-fake/dummy"; var localVarPathParams = new Dictionary(); @@ -300,13 +300,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/FakeApi.cs index 5de355ea7db..d8b3e598376 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/FakeApi.cs @@ -52,9 +52,9 @@ namespace Org.OpenAPITools.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 outerComposite = null); + OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null); /// /// @@ -63,9 +63,9 @@ namespace Org.OpenAPITools.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 outerComposite = null); + ApiResponse FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null); /// /// /// @@ -115,9 +115,9 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// - void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass); + void TestBodyWithFileSchema (FileSchemaTestClass body); /// /// @@ -126,9 +126,9 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass); + ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body); /// /// /// @@ -137,9 +137,9 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// - void TestBodyWithQueryParams (string query, User user); + void TestBodyWithQueryParams (string query, User body); /// /// @@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User user); + ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User body); /// /// To test \"client\" model /// @@ -159,9 +159,9 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - ModelClient TestClientModel (ModelClient modelClient); + ModelClient TestClientModel (ModelClient body); /// /// To test \"client\" model @@ -170,9 +170,9 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - ApiResponse TestClientModelWithHttpInfo (ModelClient modelClient); + ApiResponse TestClientModelWithHttpInfo (ModelClient body); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -293,9 +293,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// request body + /// request body /// - void TestInlineAdditionalProperties (Dictionary requestBody); + void TestInlineAdditionalProperties (Dictionary param); /// /// test inline additionalProperties @@ -304,9 +304,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// request body + /// request body /// ApiResponse of Object(void) - ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary requestBody); + ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary param); /// /// test json serialization of form data /// @@ -360,9 +360,9 @@ namespace Org.OpenAPITools.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) /// Task of OuterComposite - System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync (OuterComposite outerComposite = null); + System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync (OuterComposite body = null); /// /// @@ -371,9 +371,9 @@ namespace Org.OpenAPITools.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) /// Task of ApiResponse (OuterComposite) - System.Threading.Tasks.Task> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite outerComposite = null); + System.Threading.Tasks.Task> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null); /// /// /// @@ -423,9 +423,9 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass fileSchemaTestClass); + System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body); /// /// @@ -434,9 +434,9 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass fileSchemaTestClass); + System.Threading.Tasks.Task> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body); /// /// /// @@ -445,9 +445,9 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User user); + System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body); /// /// @@ -457,9 +457,9 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User user); + System.Threading.Tasks.Task> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body); /// /// To test \"client\" model /// @@ -467,9 +467,9 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ModelClient - System.Threading.Tasks.Task TestClientModelAsync (ModelClient modelClient); + System.Threading.Tasks.Task TestClientModelAsync (ModelClient body); /// /// To test \"client\" model @@ -478,9 +478,9 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> TestClientModelAsyncWithHttpInfo (ModelClient modelClient); + System.Threading.Tasks.Task> TestClientModelAsyncWithHttpInfo (ModelClient body); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -601,9 +601,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// request body + /// request body /// Task of void - System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary requestBody); + System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary param); /// /// test inline additionalProperties @@ -612,9 +612,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// request body + /// request body /// Task of ApiResponse - System.Threading.Tasks.Task> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary requestBody); + System.Threading.Tasks.Task> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary param); /// /// test json serialization of form data /// @@ -894,11 +894,11 @@ namespace Org.OpenAPITools.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 - public OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null) + public OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null) { - ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite); + ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -906,9 +906,9 @@ namespace Org.OpenAPITools.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 - public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null) + public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null) { var localVarPath = "/fake/outer/composite"; @@ -932,13 +932,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (outerComposite != null && outerComposite.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(outerComposite); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = outerComposite; // byte array + localVarPostBody = body; // byte array } @@ -964,11 +964,11 @@ namespace Org.OpenAPITools.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) /// Task of OuterComposite - public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync (OuterComposite outerComposite = null) + public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync (OuterComposite body = null) { - ApiResponse localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(outerComposite); + ApiResponse localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(body); return localVarResponse.Data; } @@ -977,9 +977,9 @@ namespace Org.OpenAPITools.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) /// Task of ApiResponse (OuterComposite) - public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite outerComposite = null) + public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null) { var localVarPath = "/fake/outer/composite"; @@ -1003,13 +1003,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (outerComposite != null && outerComposite.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(outerComposite); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = outerComposite; // byte array + localVarPostBody = body; // byte array } @@ -1317,24 +1317,24 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// - public void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass) + public void TestBodyWithFileSchema (FileSchemaTestClass body) { - TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + TestBodyWithFileSchemaWithHttpInfo(body); } /// /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// ApiResponse of Object(void) - public ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass) + public ApiResponse TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body) { - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) - throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema"); var localVarPath = "/fake/body-with-file-schema"; var localVarPathParams = new Dictionary(); @@ -1357,13 +1357,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (fileSchemaTestClass != null && fileSchemaTestClass.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(fileSchemaTestClass); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = fileSchemaTestClass; // byte array + localVarPostBody = body; // byte array } @@ -1389,11 +1389,11 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass fileSchemaTestClass) + public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body) { - await TestBodyWithFileSchemaAsyncWithHttpInfo(fileSchemaTestClass); + await TestBodyWithFileSchemaAsyncWithHttpInfo(body); } @@ -1401,13 +1401,13 @@ namespace Org.OpenAPITools.Api /// For this test, the body for this request much reference a schema named `File`. /// /// Thrown when fails to make API call - /// + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass fileSchemaTestClass) + public async System.Threading.Tasks.Task> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body) { - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) - throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema"); var localVarPath = "/fake/body-with-file-schema"; var localVarPathParams = new Dictionary(); @@ -1430,13 +1430,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (fileSchemaTestClass != null && fileSchemaTestClass.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(fileSchemaTestClass); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = fileSchemaTestClass; // byte array + localVarPostBody = body; // byte array } @@ -1463,11 +1463,11 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// - public void TestBodyWithQueryParams (string query, User user) + public void TestBodyWithQueryParams (string query, User body) { - TestBodyWithQueryParamsWithHttpInfo(query, user); + TestBodyWithQueryParamsWithHttpInfo(query, body); } /// @@ -1475,16 +1475,16 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// ApiResponse of Object(void) - public ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User user) + public ApiResponse TestBodyWithQueryParamsWithHttpInfo (string query, User body) { // verify the required parameter 'query' is set if (query == null) throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams"); - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams"); var localVarPath = "/fake/body-with-query-params"; var localVarPathParams = new Dictionary(); @@ -1508,13 +1508,13 @@ namespace Org.OpenAPITools.Api localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -1541,11 +1541,11 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User user) + public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body) { - await TestBodyWithQueryParamsAsyncWithHttpInfo(query, user); + await TestBodyWithQueryParamsAsyncWithHttpInfo(query, body); } @@ -1554,16 +1554,16 @@ namespace Org.OpenAPITools.Api /// /// Thrown when fails to make API call /// - /// + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User user) + public async System.Threading.Tasks.Task> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body) { // verify the required parameter 'query' is set if (query == null) throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams"); - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams"); var localVarPath = "/fake/body-with-query-params"; var localVarPathParams = new Dictionary(); @@ -1587,13 +1587,13 @@ namespace Org.OpenAPITools.Api localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -1619,11 +1619,11 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - public ModelClient TestClientModel (ModelClient modelClient) + public ModelClient TestClientModel (ModelClient body) { - ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient); + ApiResponse localVarResponse = TestClientModelWithHttpInfo(body); return localVarResponse.Data; } @@ -1631,13 +1631,13 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient modelClient) + public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel"); var localVarPath = "/fake"; var localVarPathParams = new Dictionary(); @@ -1661,13 +1661,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } @@ -1693,11 +1693,11 @@ namespace Org.OpenAPITools.Api /// To test \"client\" model To test \"client\" model /// /// Thrown when fails to make API call - /// client model + /// client model /// Task of ModelClient - public async System.Threading.Tasks.Task TestClientModelAsync (ModelClient modelClient) + public async System.Threading.Tasks.Task TestClientModelAsync (ModelClient body) { - ApiResponse localVarResponse = await TestClientModelAsyncWithHttpInfo(modelClient); + ApiResponse localVarResponse = await TestClientModelAsyncWithHttpInfo(body); return localVarResponse.Data; } @@ -1706,13 +1706,13 @@ namespace Org.OpenAPITools.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 modelClient) + public async System.Threading.Tasks.Task> TestClientModelAsyncWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel"); var localVarPath = "/fake"; var localVarPathParams = new Dictionary(); @@ -1736,13 +1736,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } @@ -2345,24 +2345,24 @@ namespace Org.OpenAPITools.Api /// test inline additionalProperties /// /// Thrown when fails to make API call - /// request body + /// request body /// - public void TestInlineAdditionalProperties (Dictionary requestBody) + public void TestInlineAdditionalProperties (Dictionary param) { - TestInlineAdditionalPropertiesWithHttpInfo(requestBody); + TestInlineAdditionalPropertiesWithHttpInfo(param); } /// /// test inline additionalProperties /// /// Thrown when fails to make API call - /// request body + /// request body /// ApiResponse of Object(void) - public ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary requestBody) + public ApiResponse TestInlineAdditionalPropertiesWithHttpInfo (Dictionary param) { - // verify the required parameter 'requestBody' is set - if (requestBody == null) - throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) + throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties"); var localVarPath = "/fake/inline-additionalProperties"; var localVarPathParams = new Dictionary(); @@ -2385,13 +2385,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (requestBody != null && requestBody.GetType() != typeof(byte[])) + if (param != null && param.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter } else { - localVarPostBody = requestBody; // byte array + localVarPostBody = param; // byte array } @@ -2417,11 +2417,11 @@ namespace Org.OpenAPITools.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 (Dictionary requestBody) + public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary param) { - await TestInlineAdditionalPropertiesAsyncWithHttpInfo(requestBody); + await TestInlineAdditionalPropertiesAsyncWithHttpInfo(param); } @@ -2429,13 +2429,13 @@ namespace Org.OpenAPITools.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 (Dictionary requestBody) + public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary param) { - // verify the required parameter 'requestBody' is set - if (requestBody == null) - throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) + throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties"); var localVarPath = "/fake/inline-additionalProperties"; var localVarPathParams = new Dictionary(); @@ -2458,13 +2458,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (requestBody != null && requestBody.GetType() != typeof(byte[])) + if (param != null && param.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter } else { - localVarPostBody = requestBody; // byte array + localVarPostBody = param; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 07156e17824..eba1f35f96f 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api /// To test class name in snake case /// /// Thrown when fails to make API call - /// client model + /// client model /// ModelClient - ModelClient TestClassname (ModelClient modelClient); + ModelClient TestClassname (ModelClient body); /// /// To test class name in snake case @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api /// To test class name in snake case /// /// Thrown when fails to make API call - /// client model + /// client model /// ApiResponse of ModelClient - ApiResponse TestClassnameWithHttpInfo (ModelClient modelClient); + ApiResponse TestClassnameWithHttpInfo (ModelClient body); #endregion Synchronous Operations #region Asynchronous Operations /// @@ -54,9 +54,9 @@ namespace Org.OpenAPITools.Api /// 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 modelClient); + System.Threading.Tasks.Task TestClassnameAsync (ModelClient body); /// /// To test class name in snake case @@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Api /// 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 modelClient); + System.Threading.Tasks.Task> TestClassnameAsyncWithHttpInfo (ModelClient body); #endregion Asynchronous Operations } @@ -183,11 +183,11 @@ namespace Org.OpenAPITools.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 - public ModelClient TestClassname (ModelClient modelClient) + public ModelClient TestClassname (ModelClient body) { - ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient); + ApiResponse localVarResponse = TestClassnameWithHttpInfo(body); return localVarResponse.Data; } @@ -195,13 +195,13 @@ namespace Org.OpenAPITools.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 /// ApiResponse of ModelClient - public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient modelClient) + public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname"); var localVarPath = "/fake_classname_test"; var localVarPathParams = new Dictionary(); @@ -225,13 +225,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } // authentication (api_key_query) required @@ -262,11 +262,11 @@ namespace Org.OpenAPITools.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 /// Task of ModelClient - public async System.Threading.Tasks.Task TestClassnameAsync (ModelClient modelClient) + public async System.Threading.Tasks.Task TestClassnameAsync (ModelClient body) { - ApiResponse localVarResponse = await TestClassnameAsyncWithHttpInfo(modelClient); + ApiResponse localVarResponse = await TestClassnameAsyncWithHttpInfo(body); return localVarResponse.Data; } @@ -275,13 +275,13 @@ namespace Org.OpenAPITools.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 /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> TestClassnameAsyncWithHttpInfo (ModelClient modelClient) + public async System.Threading.Tasks.Task> TestClassnameAsyncWithHttpInfo (ModelClient body) { - // verify the required parameter 'modelClient' is set - if (modelClient == null) - throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname"); var localVarPath = "/fake_classname_test"; var localVarPathParams = new Dictionary(); @@ -305,13 +305,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (modelClient != null && modelClient.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = modelClient; // byte array + localVarPostBody = body; // byte array } // authentication (api_key_query) required diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/PetApi.cs index 8f2f2105e2f..21f74b3dd3b 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/PetApi.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.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 pet); + void AddPet (Pet body); /// /// Add a new pet to the store @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.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 pet); + ApiResponse AddPetWithHttpInfo (Pet body); /// /// Deletes a pet /// @@ -138,9 +138,9 @@ namespace Org.OpenAPITools.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 pet); + void UpdatePet (Pet body); /// /// Update an existing pet @@ -149,9 +149,9 @@ namespace Org.OpenAPITools.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 pet); + ApiResponse UpdatePetWithHttpInfo (Pet body); /// /// Updates a pet in the store with form data /// @@ -236,9 +236,9 @@ namespace Org.OpenAPITools.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 pet); + System.Threading.Tasks.Task AddPetAsync (Pet body); /// /// Add a new pet to the store @@ -247,9 +247,9 @@ namespace Org.OpenAPITools.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 pet); + System.Threading.Tasks.Task> AddPetAsyncWithHttpInfo (Pet body); /// /// Deletes a pet /// @@ -343,9 +343,9 @@ namespace Org.OpenAPITools.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 pet); + System.Threading.Tasks.Task UpdatePetAsync (Pet body); /// /// Update an existing pet @@ -354,9 +354,9 @@ namespace Org.OpenAPITools.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 pet); + System.Threading.Tasks.Task> UpdatePetAsyncWithHttpInfo (Pet body); /// /// Updates a pet in the store with form data /// @@ -547,24 +547,24 @@ namespace Org.OpenAPITools.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 pet) + public void AddPet (Pet body) { - AddPetWithHttpInfo(pet); + AddPetWithHttpInfo(body); } /// /// 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 pet) + public ApiResponse AddPetWithHttpInfo (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) - throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet"); var localVarPath = "/pet"; var localVarPathParams = new Dictionary(); @@ -588,13 +588,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (pet != null && pet.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = pet; // byte array + localVarPostBody = body; // byte array } // authentication (petstore_auth) required @@ -626,11 +626,11 @@ namespace Org.OpenAPITools.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 pet) + public async System.Threading.Tasks.Task AddPetAsync (Pet body) { - await AddPetAsyncWithHttpInfo(pet); + await AddPetAsyncWithHttpInfo(body); } @@ -638,13 +638,13 @@ namespace Org.OpenAPITools.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 pet) + public async System.Threading.Tasks.Task> AddPetAsyncWithHttpInfo (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) - throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet"); var localVarPath = "/pet"; var localVarPathParams = new Dictionary(); @@ -668,13 +668,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (pet != null && pet.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = pet; // byte array + localVarPostBody = body; // byte array } // authentication (petstore_auth) required @@ -1292,24 +1292,24 @@ namespace Org.OpenAPITools.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 pet) + public void UpdatePet (Pet body) { - UpdatePetWithHttpInfo(pet); + UpdatePetWithHttpInfo(body); } /// /// 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 pet) + public ApiResponse UpdatePetWithHttpInfo (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) - throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet"); var localVarPath = "/pet"; var localVarPathParams = new Dictionary(); @@ -1333,13 +1333,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (pet != null && pet.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = pet; // byte array + localVarPostBody = body; // byte array } // authentication (petstore_auth) required @@ -1371,11 +1371,11 @@ namespace Org.OpenAPITools.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 pet) + public async System.Threading.Tasks.Task UpdatePetAsync (Pet body) { - await UpdatePetAsyncWithHttpInfo(pet); + await UpdatePetAsyncWithHttpInfo(body); } @@ -1383,13 +1383,13 @@ namespace Org.OpenAPITools.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 pet) + public async System.Threading.Tasks.Task> UpdatePetAsyncWithHttpInfo (Pet body) { - // verify the required parameter 'pet' is set - if (pet == null) - throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet"); var localVarPath = "/pet"; var localVarPathParams = new Dictionary(); @@ -1413,13 +1413,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (pet != null && pet.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = pet; // byte array + localVarPostBody = body; // byte array } // authentication (petstore_auth) required diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/StoreApi.cs index 4902eb5b1af..0313b615afd 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/StoreApi.cs @@ -92,9 +92,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// order placed for purchasing the pet + /// order placed for purchasing the pet /// Order - Order PlaceOrder (Order order); + Order PlaceOrder (Order body); /// /// Place an order for a pet @@ -103,9 +103,9 @@ namespace Org.OpenAPITools.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 order); + ApiResponse PlaceOrderWithHttpInfo (Order body); #endregion Synchronous Operations #region Asynchronous Operations /// @@ -176,9 +176,9 @@ namespace Org.OpenAPITools.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 order); + System.Threading.Tasks.Task PlaceOrderAsync (Order body); /// /// Place an order for a pet @@ -187,9 +187,9 @@ namespace Org.OpenAPITools.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 order); + System.Threading.Tasks.Task> PlaceOrderAsyncWithHttpInfo (Order body); #endregion Asynchronous Operations } @@ -700,11 +700,11 @@ namespace Org.OpenAPITools.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 order) + public Order PlaceOrder (Order body) { - ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order); + ApiResponse localVarResponse = PlaceOrderWithHttpInfo(body); return localVarResponse.Data; } @@ -712,13 +712,13 @@ namespace Org.OpenAPITools.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 order) + public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body) { - // verify the required parameter 'order' is set - if (order == null) - throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder"); var localVarPath = "/store/order"; var localVarPathParams = new Dictionary(); @@ -742,13 +742,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (order != null && order.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = order; // byte array + localVarPostBody = body; // byte array } @@ -774,11 +774,11 @@ namespace Org.OpenAPITools.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 order) + public async System.Threading.Tasks.Task PlaceOrderAsync (Order body) { - ApiResponse localVarResponse = await PlaceOrderAsyncWithHttpInfo(order); + ApiResponse localVarResponse = await PlaceOrderAsyncWithHttpInfo(body); return localVarResponse.Data; } @@ -787,13 +787,13 @@ namespace Org.OpenAPITools.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 order) + public async System.Threading.Tasks.Task> PlaceOrderAsyncWithHttpInfo (Order body) { - // verify the required parameter 'order' is set - if (order == null) - throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder"); var localVarPath = "/store/order"; var localVarPathParams = new Dictionary(); @@ -817,13 +817,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (order != null && order.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = order; // byte array + localVarPostBody = body; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/UserApi.cs index 0eba85ddf63..a75e965fa40 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/UserApi.cs @@ -31,9 +31,9 @@ namespace Org.OpenAPITools.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 user); + void CreateUser (User body); /// /// Create user @@ -42,9 +42,9 @@ namespace Org.OpenAPITools.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 user); + ApiResponse CreateUserWithHttpInfo (User body); /// /// Creates list of users with given input array /// @@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// - void CreateUsersWithArrayInput (List user); + void CreateUsersWithArrayInput (List body); /// /// Creates list of users with given input array @@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// ApiResponse of Object(void) - ApiResponse CreateUsersWithArrayInputWithHttpInfo (List user); + ApiResponse CreateUsersWithArrayInputWithHttpInfo (List body); /// /// Creates list of users with given input array /// @@ -73,9 +73,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// - void CreateUsersWithListInput (List user); + void CreateUsersWithListInput (List body); /// /// Creates list of users with given input array @@ -84,9 +84,9 @@ namespace Org.OpenAPITools.Api /// /// /// Thrown when fails to make API call - /// List of user object + /// List of user object /// ApiResponse of Object(void) - ApiResponse CreateUsersWithListInputWithHttpInfo (List user); + ApiResponse CreateUsersWithListInputWithHttpInfo (List body); /// /// Delete user /// @@ -179,9 +179,9 @@ namespace Org.OpenAPITools.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 user); + void UpdateUser (string username, User body); /// /// Updated user @@ -191,9 +191,9 @@ namespace Org.OpenAPITools.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 user); + ApiResponse UpdateUserWithHttpInfo (string username, User body); #endregion Synchronous Operations #region Asynchronous Operations /// @@ -203,9 +203,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task CreateUserAsync (User body); /// /// Create user @@ -214,9 +214,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task> CreateUserAsyncWithHttpInfo (User body); /// /// Creates list of users with given input array /// @@ -224,9 +224,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List body); /// /// Creates list of users with given input array @@ -235,9 +235,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task> CreateUsersWithArrayInputAsyncWithHttpInfo (List body); /// /// Creates list of users with given input array /// @@ -245,9 +245,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task CreateUsersWithListInputAsync (List body); /// /// Creates list of users with given input array @@ -256,9 +256,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task> CreateUsersWithListInputAsyncWithHttpInfo (List body); /// /// Delete user /// @@ -351,9 +351,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task UpdateUserAsync (string username, User body); /// /// Updated user @@ -363,9 +363,9 @@ namespace Org.OpenAPITools.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 user); + System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo (string username, User body); #endregion Asynchronous Operations } @@ -481,24 +481,24 @@ namespace Org.OpenAPITools.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 user) + public void CreateUser (User body) { - CreateUserWithHttpInfo(user); + CreateUserWithHttpInfo(body); } /// /// 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 user) + public ApiResponse CreateUserWithHttpInfo (User body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser"); var localVarPath = "/user"; var localVarPathParams = new Dictionary(); @@ -520,13 +520,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -552,11 +552,11 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task CreateUserAsync (User body) { - await CreateUserAsyncWithHttpInfo(user); + await CreateUserAsyncWithHttpInfo(body); } @@ -564,13 +564,13 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task> CreateUserAsyncWithHttpInfo (User body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser"); var localVarPath = "/user"; var localVarPathParams = new Dictionary(); @@ -592,13 +592,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -624,24 +624,24 @@ namespace Org.OpenAPITools.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 user) + public void CreateUsersWithArrayInput (List body) { - CreateUsersWithArrayInputWithHttpInfo(user); + CreateUsersWithArrayInputWithHttpInfo(body); } /// /// 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 user) + public ApiResponse CreateUsersWithArrayInputWithHttpInfo (List body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput"); var localVarPath = "/user/createWithArray"; var localVarPathParams = new Dictionary(); @@ -663,13 +663,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -695,11 +695,11 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List body) { - await CreateUsersWithArrayInputAsyncWithHttpInfo(user); + await CreateUsersWithArrayInputAsyncWithHttpInfo(body); } @@ -707,13 +707,13 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task> CreateUsersWithArrayInputAsyncWithHttpInfo (List body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput"); var localVarPath = "/user/createWithArray"; var localVarPathParams = new Dictionary(); @@ -735,13 +735,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -767,24 +767,24 @@ namespace Org.OpenAPITools.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 user) + public void CreateUsersWithListInput (List body) { - CreateUsersWithListInputWithHttpInfo(user); + CreateUsersWithListInputWithHttpInfo(body); } /// /// 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 user) + public ApiResponse CreateUsersWithListInputWithHttpInfo (List body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput"); var localVarPath = "/user/createWithList"; var localVarPathParams = new Dictionary(); @@ -806,13 +806,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -838,11 +838,11 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List body) { - await CreateUsersWithListInputAsyncWithHttpInfo(user); + await CreateUsersWithListInputAsyncWithHttpInfo(body); } @@ -850,13 +850,13 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task> CreateUsersWithListInputAsyncWithHttpInfo (List body) { - // verify the required parameter 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput"); var localVarPath = "/user/createWithList"; var localVarPathParams = new Dictionary(); @@ -878,13 +878,13 @@ namespace Org.OpenAPITools.Api if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -1439,11 +1439,11 @@ namespace Org.OpenAPITools.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 user) + public void UpdateUser (string username, User body) { - UpdateUserWithHttpInfo(username, user); + UpdateUserWithHttpInfo(username, body); } /// @@ -1451,16 +1451,16 @@ namespace Org.OpenAPITools.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 user) + public ApiResponse UpdateUserWithHttpInfo (string username, User body) { // 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 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' 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"); var localVarPath = "/user/{username}"; var localVarPathParams = new Dictionary(); @@ -1483,13 +1483,13 @@ namespace Org.OpenAPITools.Api localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } @@ -1516,11 +1516,11 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task UpdateUserAsync (string username, User body) { - await UpdateUserAsyncWithHttpInfo(username, user); + await UpdateUserAsyncWithHttpInfo(username, body); } @@ -1529,16 +1529,16 @@ namespace Org.OpenAPITools.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 user) + public async System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo (string username, User body) { // 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 'user' is set - if (user == null) - throw new ApiException(400, "Missing required parameter 'user' 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"); var localVarPath = "/user/{username}"; var localVarPathParams = new Dictionary(); @@ -1561,13 +1561,13 @@ namespace Org.OpenAPITools.Api localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter - if (user != null && user.GetType() != typeof(byte[])) + if (body != null && body.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { - localVarPostBody = user; // byte array + localVarPostBody = body; // byte array } diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Client/Configuration.cs index d6178f475db..b530746cb5a 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Client/Configuration.cs @@ -328,7 +328,7 @@ namespace Org.OpenAPITools.Client } /// - /// Gets or sets the the date time format used when serializing in the ApiClient + /// Gets or sets the date time format used when serializing in the ApiClient /// By default, it's set to ISO 8601 - "o", for others see: /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Model/Animal.cs index eb288f31c85..5054fd7ada4 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Model/Animal.cs @@ -31,7 +31,7 @@ namespace Org.OpenAPITools.Model /// Animal /// [DataContract] - [JsonConverter(typeof(JsonSubtypes), "className")] + [JsonConverter(typeof(JsonSubtypes), "ClassName")] [JsonSubtypes.KnownSubType(typeof(Dog), "Dog")] [JsonSubtypes.KnownSubType(typeof(Cat), "Cat")] [ImplementPropertyChanged] diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Model/EnumTest.cs index 502347c7ec9..c2127dd9d67 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Model/EnumTest.cs @@ -143,11 +143,6 @@ namespace Org.OpenAPITools.Model [DataMember(Name="enum_number", EmitDefaultValue=false)] public EnumNumberEnum? EnumNumber { get; set; } /// - /// Gets or Sets OuterEnum - /// - [DataMember(Name="outerEnum", EmitDefaultValue=false)] - public OuterEnum? OuterEnum { get; set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] @@ -160,7 +155,7 @@ namespace Org.OpenAPITools.Model /// enumInteger. /// enumNumber. /// outerEnum. - public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), 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) @@ -181,6 +176,11 @@ namespace Org.OpenAPITools.Model + /// + /// Gets or Sets OuterEnum + /// + [DataMember(Name="outerEnum", EmitDefaultValue=false)] + public OuterEnum OuterEnum { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/dart-jaguar/flutter_petstore/lib/main.dart b/samples/client/petstore/dart-jaguar/flutter_petstore/lib/main.dart index bacf47c5dca..eb63163d72a 100644 --- a/samples/client/petstore/dart-jaguar/flutter_petstore/lib/main.dart +++ b/samples/client/petstore/dart-jaguar/flutter_petstore/lib/main.dart @@ -19,7 +19,7 @@ class MyApp extends StatelessWidget { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( - // This is the theme of your application. + // This is theme of your application. // // Try running your application with "flutter run". You'll see the // application has a blue toolbar. Then, without quitting the app, try diff --git a/samples/client/petstore/dart/flutter_petstore/lib/main.dart b/samples/client/petstore/dart/flutter_petstore/lib/main.dart index 969e33354f3..c850001918d 100644 --- a/samples/client/petstore/dart/flutter_petstore/lib/main.dart +++ b/samples/client/petstore/dart/flutter_petstore/lib/main.dart @@ -10,7 +10,7 @@ class MyApp extends StatelessWidget { return new MaterialApp( title: 'Flutter Demo', theme: new ThemeData( - // This is the theme of your application. + // This is theme of your application. // // Try running your application with "flutter run". You'll see the // application has a blue toolbar. Then, without quitting the app, try diff --git a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb index 878be7f8125..41e56bcdf87 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb @@ -103,7 +103,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/animal.rb b/samples/client/petstore/ruby/lib/petstore/models/animal.rb index 249b69c656a..50ddd55ed31 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/animal.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/animal.rb @@ -111,7 +111,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/api_response.rb b/samples/client/petstore/ruby/lib/petstore/models/api_response.rb index 91aff68e5d8..c99c22bd5b0 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/api_response.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/api_response.rb @@ -108,7 +108,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/array_of_array_of_number_only.rb b/samples/client/petstore/ruby/lib/petstore/models/array_of_array_of_number_only.rb index aa8c2d34bed..72f1f7be251 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/array_of_array_of_number_only.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/array_of_array_of_number_only.rb @@ -92,7 +92,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/array_of_number_only.rb b/samples/client/petstore/ruby/lib/petstore/models/array_of_number_only.rb index 276eba10bbf..8dd6a2b9938 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/array_of_number_only.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/array_of_number_only.rb @@ -92,7 +92,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/array_test.rb b/samples/client/petstore/ruby/lib/petstore/models/array_test.rb index 5da3bda45b3..a62f48b70e2 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/array_test.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/array_test.rb @@ -114,7 +114,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/capitalization.rb b/samples/client/petstore/ruby/lib/petstore/models/capitalization.rb index 59085dadb98..408c3beda56 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/capitalization.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/capitalization.rb @@ -136,7 +136,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/cat.rb b/samples/client/petstore/ruby/lib/petstore/models/cat.rb index 190bc4e92a2..cd6dfb96cd1 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/cat.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/cat.rb @@ -101,7 +101,7 @@ module Petstore super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/category.rb b/samples/client/petstore/ruby/lib/petstore/models/category.rb index dd6dd978269..0413b82dfb0 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/category.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/category.rb @@ -106,7 +106,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/class_model.rb b/samples/client/petstore/ruby/lib/petstore/models/class_model.rb index 0f70d9ef08d..b75ab5667ad 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/class_model.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/class_model.rb @@ -91,7 +91,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/client.rb b/samples/client/petstore/ruby/lib/petstore/models/client.rb index 5a248bc0c3e..fb27897983c 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/client.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/client.rb @@ -90,7 +90,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/dog.rb b/samples/client/petstore/ruby/lib/petstore/models/dog.rb index eea6b2a53aa..f663926c778 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/dog.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/dog.rb @@ -101,7 +101,7 @@ module Petstore super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/enum_arrays.rb b/samples/client/petstore/ruby/lib/petstore/models/enum_arrays.rb index 043911c0996..ed5a94feb37 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/enum_arrays.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/enum_arrays.rb @@ -135,7 +135,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/enum_test.rb b/samples/client/petstore/ruby/lib/petstore/models/enum_test.rb index 54d62e17aec..9325b9cc8d6 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/enum_test.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/enum_test.rb @@ -201,7 +201,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/file.rb b/samples/client/petstore/ruby/lib/petstore/models/file.rb index 9d7eacc845d..bf6e1343b27 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/file.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/file.rb @@ -92,7 +92,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/file_schema_test_class.rb b/samples/client/petstore/ruby/lib/petstore/models/file_schema_test_class.rb index dac348cdffa..6fc0eb83092 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/file_schema_test_class.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/file_schema_test_class.rb @@ -101,7 +101,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/format_test.rb b/samples/client/petstore/ruby/lib/petstore/models/format_test.rb index e129fa70680..87df556c5ed 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/format_test.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/format_test.rb @@ -404,7 +404,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/has_only_read_only.rb b/samples/client/petstore/ruby/lib/petstore/models/has_only_read_only.rb index e4abd4939ba..99d47cb2023 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/has_only_read_only.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/has_only_read_only.rb @@ -99,7 +99,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/list.rb b/samples/client/petstore/ruby/lib/petstore/models/list.rb index 9f3421caeb5..2c1236a63cf 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/list.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/list.rb @@ -90,7 +90,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/map_test.rb b/samples/client/petstore/ruby/lib/petstore/models/map_test.rb index 98e26cb4d72..67ee8e9b727 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/map_test.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/map_test.rb @@ -147,7 +147,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb b/samples/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb index fe3efa3e57d..1e2e2ddddcb 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb @@ -110,7 +110,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/model200_response.rb b/samples/client/petstore/ruby/lib/petstore/models/model200_response.rb index 3a5985006c9..b2644bd8665 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/model200_response.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/model200_response.rb @@ -100,7 +100,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/model_return.rb b/samples/client/petstore/ruby/lib/petstore/models/model_return.rb index 9efe48d4fc3..668dcab865e 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/model_return.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/model_return.rb @@ -91,7 +91,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/name.rb b/samples/client/petstore/ruby/lib/petstore/models/name.rb index 345adf28ff1..9c3235e2ef2 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/name.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/name.rb @@ -123,7 +123,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/number_only.rb b/samples/client/petstore/ruby/lib/petstore/models/number_only.rb index 7a064ce652f..fd2439f18ae 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/number_only.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/number_only.rb @@ -90,7 +90,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/order.rb b/samples/client/petstore/ruby/lib/petstore/models/order.rb index e15cb6eaba6..9c39f379bb7 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/order.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/order.rb @@ -172,7 +172,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/outer_composite.rb b/samples/client/petstore/ruby/lib/petstore/models/outer_composite.rb index bcc41d2e5fd..9ed71939ea3 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/outer_composite.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/outer_composite.rb @@ -108,7 +108,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/pet.rb b/samples/client/petstore/ruby/lib/petstore/models/pet.rb index df356088bf2..faf84b49915 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/pet.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/pet.rb @@ -184,7 +184,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/read_only_first.rb b/samples/client/petstore/ruby/lib/petstore/models/read_only_first.rb index 846c6dffc2c..cfc55d5acfc 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/read_only_first.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/read_only_first.rb @@ -99,7 +99,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/special_model_name.rb b/samples/client/petstore/ruby/lib/petstore/models/special_model_name.rb index 2309bb09f29..2f58120bd53 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/special_model_name.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/special_model_name.rb @@ -90,7 +90,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/tag.rb b/samples/client/petstore/ruby/lib/petstore/models/tag.rb index 68c8955a56c..7a97bcdec69 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/tag.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/tag.rb @@ -99,7 +99,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/ruby/lib/petstore/models/user.rb b/samples/client/petstore/ruby/lib/petstore/models/user.rb index 879aa6299d5..6bca76c5f3e 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/user.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/user.rb @@ -154,7 +154,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/client/petstore/swift/promisekit/SwaggerClientTests/Pods/Alamofire/README.md b/samples/client/petstore/swift/promisekit/SwaggerClientTests/Pods/Alamofire/README.md index e0acf722db1..2d804daea01 100644 --- a/samples/client/petstore/swift/promisekit/SwaggerClientTests/Pods/Alamofire/README.md +++ b/samples/client/petstore/swift/promisekit/SwaggerClientTests/Pods/Alamofire/README.md @@ -1288,7 +1288,7 @@ The [ASF](https://github.com/Alamofire/Foundation#members) is looking to raise m * Potentially fund test servers to make it easier for us to test the edge cases * Potentially fund developers to work on one of our projects full-time -The community adoption of the ASF libraries has been amazing. We are greatly humbled by your enthusiam around the projects, and want to continue to do everything we can to move the needle forward. With your continued support, the ASF will be able to improve its reach and also provide better legal safety for the core members. If you use any of our libraries for work, see if your employers would be interested in donating. Our initial goal is to raise $1000 to get all our legal ducks in a row and kickstart this campaign. Any amount you can donate today to help us reach our goal would be greatly appreciated. +The community adoption of the ASF libraries has been amazing. We are greatly humbled by your enthusiasm around the projects, and want to continue to do everything we can to move the needle forward. With your continued support, the ASF will be able to improve its reach and also provide better legal safety for the core members. If you use any of our libraries for work, see if your employers would be interested in donating. Our initial goal is to raise $1000 to get all our legal ducks in a row and kickstart this campaign. Any amount you can donate today to help us reach our goal would be greatly appreciated. Click here to lend your support to: Alamofire Software Foundation and make a donation at pledgie.com ! diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb index 878be7f8125..41e56bcdf87 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb @@ -103,7 +103,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/animal.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/animal.rb index 249b69c656a..50ddd55ed31 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/animal.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/animal.rb @@ -111,7 +111,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/api_response.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/api_response.rb index 91aff68e5d8..c99c22bd5b0 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/api_response.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/api_response.rb @@ -108,7 +108,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/array_of_array_of_number_only.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/array_of_array_of_number_only.rb index aa8c2d34bed..72f1f7be251 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/array_of_array_of_number_only.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/array_of_array_of_number_only.rb @@ -92,7 +92,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/array_of_number_only.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/array_of_number_only.rb index 276eba10bbf..8dd6a2b9938 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/array_of_number_only.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/array_of_number_only.rb @@ -92,7 +92,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/array_test.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/array_test.rb index 5da3bda45b3..a62f48b70e2 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/array_test.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/array_test.rb @@ -114,7 +114,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/capitalization.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/capitalization.rb index 59085dadb98..408c3beda56 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/capitalization.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/capitalization.rb @@ -136,7 +136,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/cat.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/cat.rb index 190bc4e92a2..cd6dfb96cd1 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/cat.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/cat.rb @@ -101,7 +101,7 @@ module Petstore super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/category.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/category.rb index dd6dd978269..0413b82dfb0 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/category.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/category.rb @@ -106,7 +106,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/class_model.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/class_model.rb index 0f70d9ef08d..b75ab5667ad 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/class_model.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/class_model.rb @@ -91,7 +91,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/client.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/client.rb index 5a248bc0c3e..fb27897983c 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/client.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/client.rb @@ -90,7 +90,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/dog.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/dog.rb index eea6b2a53aa..f663926c778 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/dog.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/dog.rb @@ -101,7 +101,7 @@ module Petstore super(attributes) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/enum_arrays.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/enum_arrays.rb index 043911c0996..ed5a94feb37 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/enum_arrays.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/enum_arrays.rb @@ -135,7 +135,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/enum_test.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/enum_test.rb index 54d62e17aec..9325b9cc8d6 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/enum_test.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/enum_test.rb @@ -201,7 +201,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/file.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/file.rb index 9d7eacc845d..bf6e1343b27 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/file.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/file.rb @@ -92,7 +92,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/file_schema_test_class.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/file_schema_test_class.rb index dac348cdffa..6fc0eb83092 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/file_schema_test_class.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/file_schema_test_class.rb @@ -101,7 +101,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/foo.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/foo.rb index 6c344358b8f..90d02b6060f 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/foo.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/foo.rb @@ -92,7 +92,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/format_test.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/format_test.rb index 90890cbd079..30224e1c40c 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/format_test.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/format_test.rb @@ -435,7 +435,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/has_only_read_only.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/has_only_read_only.rb index e4abd4939ba..99d47cb2023 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/has_only_read_only.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/has_only_read_only.rb @@ -99,7 +99,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/inline_response_default.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/inline_response_default.rb index 56bd9d09388..8bd932a39d2 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/inline_response_default.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/inline_response_default.rb @@ -90,7 +90,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/list.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/list.rb index 9f3421caeb5..2c1236a63cf 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/list.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/list.rb @@ -90,7 +90,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/map_test.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/map_test.rb index 98e26cb4d72..67ee8e9b727 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/map_test.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/map_test.rb @@ -147,7 +147,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb index fe3efa3e57d..1e2e2ddddcb 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb @@ -110,7 +110,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/model200_response.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/model200_response.rb index 3a5985006c9..b2644bd8665 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/model200_response.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/model200_response.rb @@ -100,7 +100,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/model_return.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/model_return.rb index 9efe48d4fc3..668dcab865e 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/model_return.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/model_return.rb @@ -91,7 +91,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/name.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/name.rb index 345adf28ff1..9c3235e2ef2 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/name.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/name.rb @@ -123,7 +123,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/number_only.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/number_only.rb index 7a064ce652f..fd2439f18ae 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/number_only.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/number_only.rb @@ -90,7 +90,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/order.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/order.rb index e15cb6eaba6..9c39f379bb7 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/order.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/order.rb @@ -172,7 +172,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/outer_composite.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/outer_composite.rb index bcc41d2e5fd..9ed71939ea3 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/outer_composite.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/outer_composite.rb @@ -108,7 +108,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/pet.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/pet.rb index df356088bf2..faf84b49915 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/pet.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/pet.rb @@ -184,7 +184,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/read_only_first.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/read_only_first.rb index 846c6dffc2c..cfc55d5acfc 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/read_only_first.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/read_only_first.rb @@ -99,7 +99,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/special_model_name.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/special_model_name.rb index 2309bb09f29..2f58120bd53 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/special_model_name.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/special_model_name.rb @@ -90,7 +90,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/tag.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/tag.rb index 68c8955a56c..7a97bcdec69 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/tag.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/tag.rb @@ -99,7 +99,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) diff --git a/samples/openapi3/client/petstore/ruby/lib/petstore/models/user.rb b/samples/openapi3/client/petstore/ruby/lib/petstore/models/user.rb index 879aa6299d5..6bca76c5f3e 100644 --- a/samples/openapi3/client/petstore/ruby/lib/petstore/models/user.rb +++ b/samples/openapi3/client/petstore/ruby/lib/petstore/models/user.rb @@ -154,7 +154,7 @@ module Petstore return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })