diff --git a/modules/openapi-generator/pom.xml b/modules/openapi-generator/pom.xml index 30e56ac2abf..85ab4b5aca8 100644 --- a/modules/openapi-generator/pom.xml +++ b/modules/openapi-generator/pom.xml @@ -204,7 +204,7 @@ ${swagger-core-version} - io.swagger.parser.v3 + ${swagger-parser-groupid} swagger-parser ${swagger-parser-version} diff --git a/pom.xml b/pom.xml index a0a4d2c0acb..d79d6f7d022 100644 --- a/pom.xml +++ b/pom.xml @@ -1341,7 +1341,8 @@ 1.8 1.8 - 2.0.7 + org.openapitools.swagger.parser + 2.0.8-OpenAPITools.org-1 2.0.6 2.11.1 3.3.1 diff --git a/samples/client/petstore/csharp/OpenAPIClient/README.md b/samples/client/petstore/csharp/OpenAPIClient/README.md index 52d7d417cb7..8dc6d97251c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/README.md +++ b/samples/client/petstore/csharp/OpenAPIClient/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) diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/AnotherFakeApi.md b/samples/client/petstore/csharp/OpenAPIClient/docs/AnotherFakeApi.md index 81cc3106d64..612293b48bb 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/AnotherFakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClient/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/OpenAPIClient/docs/FakeApi.md b/samples/client/petstore/csharp/OpenAPIClient/docs/FakeApi.md index 5be422501cd..c2d06117726 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/FakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClient/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/OpenAPIClient/docs/FakeClassnameTags123Api.md b/samples/client/petstore/csharp/OpenAPIClient/docs/FakeClassnameTags123Api.md index f069b098399..abea3cb9977 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/csharp/OpenAPIClient/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/OpenAPIClient/docs/PetApi.md b/samples/client/petstore/csharp/OpenAPIClient/docs/PetApi.md index dd23df9b368..0735bce6fa6 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/PetApi.md +++ b/samples/client/petstore/csharp/OpenAPIClient/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/OpenAPIClient/docs/StoreApi.md b/samples/client/petstore/csharp/OpenAPIClient/docs/StoreApi.md index ff7608854f8..dbcf53db616 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/StoreApi.md +++ b/samples/client/petstore/csharp/OpenAPIClient/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/OpenAPIClient/docs/UserApi.md b/samples/client/petstore/csharp/OpenAPIClient/docs/UserApi.md index 857ab27084c..9a535e16a82 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/docs/UserApi.md +++ b/samples/client/petstore/csharp/OpenAPIClient/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/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index cf759d5e82c..53ce7dec4bc 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/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/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs index 5de355ea7db..d8b3e598376 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/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/OpenAPIClient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 07156e17824..eba1f35f96f 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/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/OpenAPIClient/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/PetApi.cs index 8f2f2105e2f..21f74b3dd3b 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/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/OpenAPIClient/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/StoreApi.cs index 4902eb5b1af..0313b615afd 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/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/OpenAPIClient/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/UserApi.cs index 0eba85ddf63..a75e965fa40 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/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/go/go-petstore/api/openapi.yaml b/samples/client/petstore/go/go-petstore/api/openapi.yaml index 3e3f1edbc44..ce1f37c60f2 100644 --- a/samples/client/petstore/go/go-petstore/api/openapi.yaml +++ b/samples/client/petstore/go/go-petstore/api/openapi.yaml @@ -42,6 +42,7 @@ paths: summary: Add a new pet to the store tags: - pet + x-codegen-request-body-name: body put: operationId: updatePet requestBody: @@ -71,6 +72,7 @@ paths: summary: Update an existing pet tags: - pet + x-codegen-request-body-name: body /pet/findByStatus: get: description: Multiple status values can be provided with comma separated strings @@ -327,6 +329,7 @@ paths: summary: Place an order for a pet tags: - store + x-codegen-request-body-name: body /store/order/{order_id}: delete: description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -398,6 +401,7 @@ paths: summary: Create user tags: - user + x-codegen-request-body-name: body /user/createWithArray: post: operationId: createUsersWithArrayInput @@ -417,6 +421,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body /user/createWithList: post: operationId: createUsersWithListInput @@ -436,6 +441,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body /user/login: get: operationId: loginUser @@ -565,6 +571,7 @@ paths: summary: Updated user tags: - user + x-codegen-request-body-name: body /fake_classname_test: patch: description: To test class name in snake case @@ -588,6 +595,7 @@ paths: summary: To test class name in snake case tags: - fake_classname_tags 123#$%^ + x-codegen-request-body-name: body /fake: delete: description: Fake endpoint to test group parameters (optional) @@ -756,6 +764,7 @@ paths: summary: To test "client" model tags: - fake + x-codegen-request-body-name: body post: description: | Fake endpoint for testing various parameters @@ -874,6 +883,7 @@ paths: description: Output number tags: - fake + x-codegen-request-body-name: body /fake/outer/string: post: description: Test serialization of outer string types @@ -894,6 +904,7 @@ paths: description: Output string tags: - fake + x-codegen-request-body-name: body /fake/outer/boolean: post: description: Test serialization of outer boolean types @@ -914,6 +925,7 @@ paths: description: Output boolean tags: - fake + x-codegen-request-body-name: body /fake/outer/composite: post: description: Test serialization of object with outer number type @@ -934,6 +946,7 @@ paths: description: Output composite tags: - fake + x-codegen-request-body-name: body /fake/jsonFormData: get: operationId: testJsonFormData @@ -978,6 +991,7 @@ paths: summary: test inline additionalProperties tags: - fake + x-codegen-request-body-name: param /fake/body-with-query-params: put: operationId: testBodyWithQueryParams @@ -999,6 +1013,7 @@ paths: description: Success tags: - fake + x-codegen-request-body-name: body /another-fake/dummy: patch: description: To test special tags and operation ID starting with number @@ -1020,6 +1035,7 @@ paths: summary: To test special tags tags: - $another-fake? + x-codegen-request-body-name: body /fake/body-with-file-schema: put: description: For this test, the body for this request much reference a schema named `File`. @@ -1036,6 +1052,7 @@ paths: description: Success tags: - fake + x-codegen-request-body-name: body /fake/{petId}/uploadImageWithRequiredFile: post: operationId: uploadFileWithRequiredFile diff --git a/samples/client/petstore/go/go-petstore/api_another_fake.go b/samples/client/petstore/go/go-petstore/api_another_fake.go index f74f5bffd55..eaf9bfd49af 100644 --- a/samples/client/petstore/go/go-petstore/api_another_fake.go +++ b/samples/client/petstore/go/go-petstore/api_another_fake.go @@ -28,10 +28,10 @@ type AnotherFakeApiService service AnotherFakeApiService To test special tags To test special tags and operation ID starting with number * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param client client model + * @param body client model @return Client */ -func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx context.Context, client Client) (Client, *http.Response, error) { +func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx context.Context, body Client) (Client, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Patch") localVarPostBody interface{} @@ -66,7 +66,7 @@ func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx context.Context, clie localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &client + localVarPostBody = &body r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err diff --git a/samples/client/petstore/go/go-petstore/api_fake.go b/samples/client/petstore/go/go-petstore/api_fake.go index 4b6efb216fc..414533b9478 100644 --- a/samples/client/petstore/go/go-petstore/api_fake.go +++ b/samples/client/petstore/go/go-petstore/api_fake.go @@ -129,12 +129,12 @@ FakeApiService Test serialization of object with outer number type * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param optional nil or *FakeOuterCompositeSerializeOpts - Optional Parameters: - * @param "OuterComposite" (optional.Interface of OuterComposite) - Input composite as post body + * @param "Body" (optional.Interface of OuterComposite) - Input composite as post body @return OuterComposite */ type FakeOuterCompositeSerializeOpts struct { - OuterComposite optional.Interface + Body optional.Interface } func (a *FakeApiService) FakeOuterCompositeSerialize(ctx context.Context, localVarOptionals *FakeOuterCompositeSerializeOpts) (OuterComposite, *http.Response, error) { @@ -172,12 +172,12 @@ func (a *FakeApiService) FakeOuterCompositeSerialize(ctx context.Context, localV localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - if localVarOptionals != nil && localVarOptionals.OuterComposite.IsSet() { - localVarOptionalOuterComposite, localVarOptionalOuterCompositeok := localVarOptionals.OuterComposite.Value().(OuterComposite) - if !localVarOptionalOuterCompositeok { - return localVarReturnValue, nil, reportError("outerComposite should be OuterComposite") + if localVarOptionals != nil && localVarOptionals.Body.IsSet() { + localVarOptionalBody, localVarOptionalBodyok := localVarOptionals.Body.Value().(OuterComposite) + if !localVarOptionalBodyok { + return localVarReturnValue, nil, reportError("body should be OuterComposite") } - localVarPostBody = &localVarOptionalOuterComposite + localVarPostBody = &localVarOptionalBody } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) @@ -426,9 +426,9 @@ func (a *FakeApiService) FakeOuterStringSerialize(ctx context.Context, localVarO FakeApiService For this test, the body for this request much reference a schema named `File`. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param fileSchemaTestClass + * @param body */ -func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, fileSchemaTestClass FileSchemaTestClass) (*http.Response, error) { +func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, body FileSchemaTestClass) (*http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Put") localVarPostBody interface{} @@ -462,7 +462,7 @@ func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, fileSchemaT localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &fileSchemaTestClass + localVarPostBody = &body r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -494,9 +494,9 @@ func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, fileSchemaT FakeApiService * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param query - * @param user + * @param body */ -func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query string, user User) (*http.Response, error) { +func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query string, body User) (*http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Put") localVarPostBody interface{} @@ -531,7 +531,7 @@ func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query stri localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &user + localVarPostBody = &body r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -563,10 +563,10 @@ func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query stri FakeApiService To test \"client\" model To test \"client\" model * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param client client model + * @param body client model @return Client */ -func (a *FakeApiService) TestClientModel(ctx context.Context, client Client) (Client, *http.Response, error) { +func (a *FakeApiService) TestClientModel(ctx context.Context, body Client) (Client, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Patch") localVarPostBody interface{} @@ -601,7 +601,7 @@ func (a *FakeApiService) TestClientModel(ctx context.Context, client Client) (Cl localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &client + localVarPostBody = &body r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err @@ -1004,9 +1004,9 @@ func (a *FakeApiService) TestGroupParameters(ctx context.Context, requiredString /* FakeApiService test inline additionalProperties * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param requestBody request body + * @param param request body */ -func (a *FakeApiService) TestInlineAdditionalProperties(ctx context.Context, requestBody map[string]string) (*http.Response, error) { +func (a *FakeApiService) TestInlineAdditionalProperties(ctx context.Context, param map[string]string) (*http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Post") localVarPostBody interface{} @@ -1040,7 +1040,7 @@ func (a *FakeApiService) TestInlineAdditionalProperties(ctx context.Context, req localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &requestBody + localVarPostBody = ¶m r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err diff --git a/samples/client/petstore/go/go-petstore/api_fake_classname_tags123.go b/samples/client/petstore/go/go-petstore/api_fake_classname_tags123.go index 05416e6a2fb..098be5c5565 100644 --- a/samples/client/petstore/go/go-petstore/api_fake_classname_tags123.go +++ b/samples/client/petstore/go/go-petstore/api_fake_classname_tags123.go @@ -28,10 +28,10 @@ type FakeClassnameTags123ApiService service FakeClassnameTags123ApiService To test class name in snake case To test class name in snake case * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param client client model + * @param body client model @return Client */ -func (a *FakeClassnameTags123ApiService) TestClassname(ctx context.Context, client Client) (Client, *http.Response, error) { +func (a *FakeClassnameTags123ApiService) TestClassname(ctx context.Context, body Client) (Client, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Patch") localVarPostBody interface{} @@ -66,7 +66,7 @@ func (a *FakeClassnameTags123ApiService) TestClassname(ctx context.Context, clie localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &client + localVarPostBody = &body if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { diff --git a/samples/client/petstore/go/go-petstore/api_pet.go b/samples/client/petstore/go/go-petstore/api_pet.go index 04813836bb7..63ec591094f 100644 --- a/samples/client/petstore/go/go-petstore/api_pet.go +++ b/samples/client/petstore/go/go-petstore/api_pet.go @@ -30,9 +30,9 @@ type PetApiService service /* PetApiService Add a new pet to the store * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ -func (a *PetApiService) AddPet(ctx context.Context, pet Pet) (*http.Response, error) { +func (a *PetApiService) AddPet(ctx context.Context, body Pet) (*http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Post") localVarPostBody interface{} @@ -66,7 +66,7 @@ func (a *PetApiService) AddPet(ctx context.Context, pet Pet) (*http.Response, er localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &pet + localVarPostBody = &body r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -450,9 +450,9 @@ func (a *PetApiService) GetPetById(ctx context.Context, petId int64) (Pet, *http /* PetApiService Update an existing pet * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ -func (a *PetApiService) UpdatePet(ctx context.Context, pet Pet) (*http.Response, error) { +func (a *PetApiService) UpdatePet(ctx context.Context, body Pet) (*http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Put") localVarPostBody interface{} @@ -486,7 +486,7 @@ func (a *PetApiService) UpdatePet(ctx context.Context, pet Pet) (*http.Response, localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &pet + localVarPostBody = &body r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err diff --git a/samples/client/petstore/go/go-petstore/api_store.go b/samples/client/petstore/go/go-petstore/api_store.go index 6b9fc4bd17e..e094cc189d6 100644 --- a/samples/client/petstore/go/go-petstore/api_store.go +++ b/samples/client/petstore/go/go-petstore/api_store.go @@ -288,10 +288,10 @@ func (a *StoreApiService) GetOrderById(ctx context.Context, orderId int64) (Orde /* StoreApiService Place an order for a pet * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet @return Order */ -func (a *StoreApiService) PlaceOrder(ctx context.Context, order Order) (Order, *http.Response, error) { +func (a *StoreApiService) PlaceOrder(ctx context.Context, body Order) (Order, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Post") localVarPostBody interface{} @@ -326,7 +326,7 @@ func (a *StoreApiService) PlaceOrder(ctx context.Context, order Order) (Order, * localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &order + localVarPostBody = &body r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err diff --git a/samples/client/petstore/go/go-petstore/api_user.go b/samples/client/petstore/go/go-petstore/api_user.go index f3d0af8200a..2e349b1d29d 100644 --- a/samples/client/petstore/go/go-petstore/api_user.go +++ b/samples/client/petstore/go/go-petstore/api_user.go @@ -29,9 +29,9 @@ type UserApiService service UserApiService Create user This can only be done by the logged in user. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param user Created user object + * @param body Created user object */ -func (a *UserApiService) CreateUser(ctx context.Context, user User) (*http.Response, error) { +func (a *UserApiService) CreateUser(ctx context.Context, body User) (*http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Post") localVarPostBody interface{} @@ -65,7 +65,7 @@ func (a *UserApiService) CreateUser(ctx context.Context, user User) (*http.Respo localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &user + localVarPostBody = &body r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -96,9 +96,9 @@ func (a *UserApiService) CreateUser(ctx context.Context, user User) (*http.Respo /* UserApiService Creates list of users with given input array * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param user List of user object + * @param body List of user object */ -func (a *UserApiService) CreateUsersWithArrayInput(ctx context.Context, user []User) (*http.Response, error) { +func (a *UserApiService) CreateUsersWithArrayInput(ctx context.Context, body []User) (*http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Post") localVarPostBody interface{} @@ -132,7 +132,7 @@ func (a *UserApiService) CreateUsersWithArrayInput(ctx context.Context, user []U localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &user + localVarPostBody = &body r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -163,9 +163,9 @@ func (a *UserApiService) CreateUsersWithArrayInput(ctx context.Context, user []U /* UserApiService Creates list of users with given input array * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param user List of user object + * @param body List of user object */ -func (a *UserApiService) CreateUsersWithListInput(ctx context.Context, user []User) (*http.Response, error) { +func (a *UserApiService) CreateUsersWithListInput(ctx context.Context, body []User) (*http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Post") localVarPostBody interface{} @@ -199,7 +199,7 @@ func (a *UserApiService) CreateUsersWithListInput(ctx context.Context, user []Us localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &user + localVarPostBody = &body r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err @@ -539,9 +539,9 @@ UserApiService Updated user This can only be done by the logged in user. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object */ -func (a *UserApiService) UpdateUser(ctx context.Context, username string, user User) (*http.Response, error) { +func (a *UserApiService) UpdateUser(ctx context.Context, username string, body User) (*http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Put") localVarPostBody interface{} @@ -576,7 +576,7 @@ func (a *UserApiService) UpdateUser(ctx context.Context, username string, user U localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &user + localVarPostBody = &body r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err diff --git a/samples/client/petstore/go/go-petstore/docs/AnotherFakeApi.md b/samples/client/petstore/go/go-petstore/docs/AnotherFakeApi.md index 43c63231137..6d996803c95 100644 --- a/samples/client/petstore/go/go-petstore/docs/AnotherFakeApi.md +++ b/samples/client/petstore/go/go-petstore/docs/AnotherFakeApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **Call123TestSpecialTags** -> Client Call123TestSpecialTags(ctx, client) +> Client Call123TestSpecialTags(ctx, body) To test special tags To test special tags and operation ID starting with number @@ -18,7 +18,7 @@ To test special tags and operation ID starting with number Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/go/go-petstore/docs/FakeApi.md b/samples/client/petstore/go/go-petstore/docs/FakeApi.md index c08f5d6f714..d474551a034 100644 --- a/samples/client/petstore/go/go-petstore/docs/FakeApi.md +++ b/samples/client/petstore/go/go-petstore/docs/FakeApi.md @@ -71,7 +71,7 @@ Optional parameters are passed through a pointer to a FakeOuterCompositeSerializ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outerComposite** | [**optional.Interface of OuterComposite**](OuterComposite.md)| Input composite as post body | + **body** | [**optional.Interface of OuterComposite**](OuterComposite.md)| Input composite as post body | ### Return type @@ -159,7 +159,7 @@ No authorization required [[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) # **TestBodyWithFileSchema** -> TestBodyWithFileSchema(ctx, fileSchemaTestClass) +> TestBodyWithFileSchema(ctx, body) For this test, the body for this request much reference a schema named `File`. @@ -169,7 +169,7 @@ For this test, the body for this request much reference a schema named `File`. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -187,7 +187,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TestBodyWithQueryParams** -> TestBodyWithQueryParams(ctx, query, user) +> TestBodyWithQueryParams(ctx, query, body) ### Required Parameters @@ -196,7 +196,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **query** | **string**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -214,7 +214,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TestClientModel** -> Client TestClientModel(ctx, client) +> Client TestClientModel(ctx, body) To test \"client\" model To test \"client\" model @@ -224,7 +224,7 @@ To test \"client\" model Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -379,7 +379,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TestInlineAdditionalProperties** -> TestInlineAdditionalProperties(ctx, requestBody) +> TestInlineAdditionalProperties(ctx, param) test inline additionalProperties ### Required Parameters @@ -387,7 +387,7 @@ test inline additionalProperties Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **requestBody** | [**map[string]string**](string.md)| request body | + **param** | [**map[string]string**](string.md)| request body | ### Return type diff --git a/samples/client/petstore/go/go-petstore/docs/FakeClassnameTags123Api.md b/samples/client/petstore/go/go-petstore/docs/FakeClassnameTags123Api.md index db334ab5689..d9311e369db 100644 --- a/samples/client/petstore/go/go-petstore/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/go/go-petstore/docs/FakeClassnameTags123Api.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **TestClassname** -> Client TestClassname(ctx, client) +> Client TestClassname(ctx, body) To test class name in snake case To test class name in snake case @@ -18,7 +18,7 @@ To test class name in snake case Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/go/go-petstore/docs/PetApi.md b/samples/client/petstore/go/go-petstore/docs/PetApi.md index 481ce5e80e5..e1fffc03512 100644 --- a/samples/client/petstore/go/go-petstore/docs/PetApi.md +++ b/samples/client/petstore/go/go-petstore/docs/PetApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **AddPet** -> AddPet(ctx, pet) +> AddPet(ctx, body) Add a new pet to the store ### Required Parameters @@ -24,7 +24,7 @@ Add a new pet to the store Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **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 @@ -161,7 +161,7 @@ Name | Type | Description | Notes [[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) # **UpdatePet** -> UpdatePet(ctx, pet) +> UpdatePet(ctx, body) Update an existing pet ### Required Parameters @@ -169,7 +169,7 @@ Update an existing pet Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **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/go/go-petstore/docs/StoreApi.md b/samples/client/petstore/go/go-petstore/docs/StoreApi.md index e424e2d966f..88d762e0302 100644 --- a/samples/client/petstore/go/go-petstore/docs/StoreApi.md +++ b/samples/client/petstore/go/go-petstore/docs/StoreApi.md @@ -91,7 +91,7 @@ No authorization required [[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) # **PlaceOrder** -> Order PlaceOrder(ctx, order) +> Order PlaceOrder(ctx, body) Place an order for a pet ### Required Parameters @@ -99,7 +99,7 @@ Place an order for a pet Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **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/go/go-petstore/docs/UserApi.md b/samples/client/petstore/go/go-petstore/docs/UserApi.md index 82210d18310..e57a67b7547 100644 --- a/samples/client/petstore/go/go-petstore/docs/UserApi.md +++ b/samples/client/petstore/go/go-petstore/docs/UserApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description # **CreateUser** -> CreateUser(ctx, user) +> CreateUser(ctx, body) Create user This can only be done by the logged in user. @@ -25,7 +25,7 @@ This can only be done by the logged in user. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -43,7 +43,7 @@ No authorization required [[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** -> CreateUsersWithArrayInput(ctx, user) +> CreateUsersWithArrayInput(ctx, body) Creates list of users with given input array ### Required Parameters @@ -51,7 +51,7 @@ Creates list of users with given input array Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **user** | [**[]User**](array.md)| List of user object | + **body** | [**[]User**](array.md)| List of user object | ### Return type @@ -69,7 +69,7 @@ No authorization required [[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** -> CreateUsersWithListInput(ctx, user) +> CreateUsersWithListInput(ctx, body) Creates list of users with given input array ### Required Parameters @@ -77,7 +77,7 @@ Creates list of users with given input array Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **user** | [**[]User**](array.md)| List of user object | + **body** | [**[]User**](array.md)| List of user object | ### Return type @@ -198,7 +198,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **UpdateUser** -> UpdateUser(ctx, username, user) +> UpdateUser(ctx, username, body) Updated user This can only be done by the logged in user. @@ -209,7 +209,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **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/haskell-http-client/lib/OpenAPIPetstore/API/AnotherFake.hs b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/AnotherFake.hs index aa3b293eb67..6a08903b898 100644 --- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/AnotherFake.hs +++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/AnotherFake.hs @@ -67,15 +67,15 @@ import qualified Prelude as P -- op123testSpecialTags :: (Consumes Op123testSpecialTags MimeJSON, MimeRender MimeJSON Client) - => Client -- ^ "client" - client model + => Client -- ^ "body" - client model -> OpenAPIPetstoreRequest Op123testSpecialTags MimeJSON Client MimeJSON -op123testSpecialTags client = +op123testSpecialTags body = _mkRequest "PATCH" ["/another-fake/dummy"] - `setBodyParam` client + `setBodyParam` body data Op123testSpecialTags --- | /Body Param/ "Client" - client model +-- | /Body Param/ "body" - client model instance HasBodyParam Op123testSpecialTags Client -- | @application/json@ diff --git a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Fake.hs b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Fake.hs index 03b15031c2c..40d79fceb2f 100644 --- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Fake.hs +++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Fake.hs @@ -96,7 +96,7 @@ fakeOuterCompositeSerialize _ _ = data FakeOuterCompositeSerialize --- | /Body Param/ "OuterComposite" - Input composite as post body +-- | /Body Param/ "body" - Input composite as post body instance HasBodyParam FakeOuterCompositeSerialize OuterComposite -- | @*/*@ @@ -120,7 +120,7 @@ fakeOuterNumberSerialize _ _ = data FakeOuterNumberSerialize -- | /Body Param/ "body" - Input number as post body -instance HasBodyParam FakeOuterNumberSerialize Body +instance HasBodyParam FakeOuterNumberSerialize BodyDouble -- | @*/*@ instance MimeType mtype => Produces FakeOuterNumberSerialize mtype @@ -157,11 +157,11 @@ instance MimeType mtype => Produces FakeOuterStringSerialize mtype -- testBodyWithFileSchema :: (Consumes TestBodyWithFileSchema MimeJSON, MimeRender MimeJSON FileSchemaTestClass) - => FileSchemaTestClass -- ^ "fileSchemaTestClass" + => FileSchemaTestClass -- ^ "body" -> OpenAPIPetstoreRequest TestBodyWithFileSchema MimeJSON NoContent MimeNoContent -testBodyWithFileSchema fileSchemaTestClass = +testBodyWithFileSchema body = _mkRequest "PUT" ["/fake/body-with-file-schema"] - `setBodyParam` fileSchemaTestClass + `setBodyParam` body data TestBodyWithFileSchema instance HasBodyParam TestBodyWithFileSchema FileSchemaTestClass @@ -178,12 +178,12 @@ instance Produces TestBodyWithFileSchema MimeNoContent -- testBodyWithQueryParams :: (Consumes TestBodyWithQueryParams MimeJSON, MimeRender MimeJSON User) - => User -- ^ "user" + => User -- ^ "body" -> Query -- ^ "query" -> OpenAPIPetstoreRequest TestBodyWithQueryParams MimeJSON NoContent MimeNoContent -testBodyWithQueryParams user (Query query) = +testBodyWithQueryParams body (Query query) = _mkRequest "PUT" ["/fake/body-with-query-params"] - `setBodyParam` user + `setBodyParam` body `setQuery` toQuery ("query", Just query) data TestBodyWithQueryParams @@ -205,15 +205,15 @@ instance Produces TestBodyWithQueryParams MimeNoContent -- testClientModel :: (Consumes TestClientModel MimeJSON, MimeRender MimeJSON Client) - => Client -- ^ "client" - client model + => Client -- ^ "body" - client model -> OpenAPIPetstoreRequest TestClientModel MimeJSON Client MimeJSON -testClientModel client = +testClientModel body = _mkRequest "PATCH" ["/fake"] - `setBodyParam` client + `setBodyParam` body data TestClientModel --- | /Body Param/ "Client" - client model +-- | /Body Param/ "body" - client model instance HasBodyParam TestClientModel Client -- | @application/json@ @@ -414,17 +414,17 @@ instance Produces TestGroupParameters MimeNoContent -- test inline additionalProperties -- testInlineAdditionalProperties - :: (Consumes TestInlineAdditionalProperties MimeJSON, MimeRender MimeJSON RequestBody) - => RequestBody -- ^ "requestBody" - request body + :: (Consumes TestInlineAdditionalProperties MimeJSON, MimeRender MimeJSON ParamMapMapStringText) + => ParamMapMapStringText -- ^ "param" - request body -> OpenAPIPetstoreRequest TestInlineAdditionalProperties MimeJSON NoContent MimeNoContent -testInlineAdditionalProperties requestBody = +testInlineAdditionalProperties param = _mkRequest "POST" ["/fake/inline-additionalProperties"] - `setBodyParam` requestBody + `setBodyParam` param data TestInlineAdditionalProperties --- | /Body Param/ "request_body" - request body -instance HasBodyParam TestInlineAdditionalProperties RequestBody +-- | /Body Param/ "param" - request body +instance HasBodyParam TestInlineAdditionalProperties ParamMapMapStringText -- | @application/json@ instance Consumes TestInlineAdditionalProperties MimeJSON diff --git a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/FakeClassnameTags123.hs b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/FakeClassnameTags123.hs index 5719e3c4cd4..f002c047258 100644 --- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/FakeClassnameTags123.hs +++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/FakeClassnameTags123.hs @@ -69,16 +69,16 @@ import qualified Prelude as P -- testClassname :: (Consumes TestClassname MimeJSON, MimeRender MimeJSON Client) - => Client -- ^ "client" - client model + => Client -- ^ "body" - client model -> OpenAPIPetstoreRequest TestClassname MimeJSON Client MimeJSON -testClassname client = +testClassname body = _mkRequest "PATCH" ["/fake_classname_test"] `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyApiKeyQuery) - `setBodyParam` client + `setBodyParam` body data TestClassname --- | /Body Param/ "Client" - client model +-- | /Body Param/ "body" - client model instance HasBodyParam TestClassname Client -- | @application/json@ diff --git a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Pet.hs b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Pet.hs index 7b6de84e74b..3ff0dea008d 100644 --- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Pet.hs +++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Pet.hs @@ -68,16 +68,16 @@ import qualified Prelude as P addPet :: (Consumes AddPet contentType, MimeRender contentType Pet) => ContentType contentType -- ^ request content-type ('MimeType') - -> Pet -- ^ "pet" - Pet object that needs to be added to the store + -> Pet -- ^ "body" - Pet object that needs to be added to the store -> OpenAPIPetstoreRequest AddPet contentType NoContent MimeNoContent -addPet _ pet = +addPet _ body = _mkRequest "POST" ["/pet"] `_hasAuthType` (P.Proxy :: P.Proxy AuthOAuthPetstoreAuth) - `setBodyParam` pet + `setBodyParam` body data AddPet --- | /Body Param/ "Pet" - Pet object that needs to be added to the store +-- | /Body Param/ "body" - Pet object that needs to be added to the store instance HasBodyParam AddPet Pet -- | @application/xml@ @@ -204,16 +204,16 @@ instance Produces GetPetById MimeJSON updatePet :: (Consumes UpdatePet contentType, MimeRender contentType Pet) => ContentType contentType -- ^ request content-type ('MimeType') - -> Pet -- ^ "pet" - Pet object that needs to be added to the store + -> Pet -- ^ "body" - Pet object that needs to be added to the store -> OpenAPIPetstoreRequest UpdatePet contentType NoContent MimeNoContent -updatePet _ pet = +updatePet _ body = _mkRequest "PUT" ["/pet"] `_hasAuthType` (P.Proxy :: P.Proxy AuthOAuthPetstoreAuth) - `setBodyParam` pet + `setBodyParam` body data UpdatePet --- | /Body Param/ "Pet" - Pet object that needs to be added to the store +-- | /Body Param/ "body" - Pet object that needs to be added to the store instance HasBodyParam UpdatePet Pet -- | @application/xml@ diff --git a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Store.hs b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Store.hs index 12bcd0bc94a..26c302f1a77 100644 --- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Store.hs +++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Store.hs @@ -131,15 +131,15 @@ placeOrder :: (Consumes PlaceOrder contentType, MimeRender contentType Order) => ContentType contentType -- ^ request content-type ('MimeType') -> Accept accept -- ^ request accept ('MimeType') - -> Order -- ^ "order" - order placed for purchasing the pet + -> Order -- ^ "body" - order placed for purchasing the pet -> OpenAPIPetstoreRequest PlaceOrder contentType Order accept -placeOrder _ _ order = +placeOrder _ _ body = _mkRequest "POST" ["/store/order"] - `setBodyParam` order + `setBodyParam` body data PlaceOrder --- | /Body Param/ "Order" - order placed for purchasing the pet +-- | /Body Param/ "body" - order placed for purchasing the pet instance HasBodyParam PlaceOrder Order -- | @application/xml@ diff --git a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/User.hs b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/User.hs index efc6ad66f31..e4d1e605a72 100644 --- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/User.hs +++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/User.hs @@ -68,15 +68,15 @@ import qualified Prelude as P createUser :: (Consumes CreateUser contentType, MimeRender contentType User) => ContentType contentType -- ^ request content-type ('MimeType') - -> User -- ^ "user" - Created user object + -> User -- ^ "body" - Created user object -> OpenAPIPetstoreRequest CreateUser contentType NoContent MimeNoContent -createUser _ user = +createUser _ body = _mkRequest "POST" ["/user"] - `setBodyParam` user + `setBodyParam` body data CreateUser --- | /Body Param/ "User" - Created user object +-- | /Body Param/ "body" - Created user object instance HasBodyParam CreateUser User instance Produces CreateUser MimeNoContent @@ -89,18 +89,18 @@ instance Produces CreateUser MimeNoContent -- Creates list of users with given input array -- createUsersWithArrayInput - :: (Consumes CreateUsersWithArrayInput contentType, MimeRender contentType User2) + :: (Consumes CreateUsersWithArrayInput contentType, MimeRender contentType Body) => ContentType contentType -- ^ request content-type ('MimeType') - -> User2 -- ^ "user" - List of user object + -> Body -- ^ "body" - List of user object -> OpenAPIPetstoreRequest CreateUsersWithArrayInput contentType NoContent MimeNoContent -createUsersWithArrayInput _ user = +createUsersWithArrayInput _ body = _mkRequest "POST" ["/user/createWithArray"] - `setBodyParam` user + `setBodyParam` body data CreateUsersWithArrayInput --- | /Body Param/ "User" - List of user object -instance HasBodyParam CreateUsersWithArrayInput User2 +-- | /Body Param/ "body" - List of user object +instance HasBodyParam CreateUsersWithArrayInput Body instance Produces CreateUsersWithArrayInput MimeNoContent @@ -112,18 +112,18 @@ instance Produces CreateUsersWithArrayInput MimeNoContent -- Creates list of users with given input array -- createUsersWithListInput - :: (Consumes CreateUsersWithListInput contentType, MimeRender contentType User2) + :: (Consumes CreateUsersWithListInput contentType, MimeRender contentType Body) => ContentType contentType -- ^ request content-type ('MimeType') - -> User2 -- ^ "user" - List of user object + -> Body -- ^ "body" - List of user object -> OpenAPIPetstoreRequest CreateUsersWithListInput contentType NoContent MimeNoContent -createUsersWithListInput _ user = +createUsersWithListInput _ body = _mkRequest "POST" ["/user/createWithList"] - `setBodyParam` user + `setBodyParam` body data CreateUsersWithListInput --- | /Body Param/ "User" - List of user object -instance HasBodyParam CreateUsersWithListInput User2 +-- | /Body Param/ "body" - List of user object +instance HasBodyParam CreateUsersWithListInput Body instance Produces CreateUsersWithListInput MimeNoContent @@ -219,16 +219,16 @@ instance Produces LogoutUser MimeNoContent updateUser :: (Consumes UpdateUser contentType, MimeRender contentType User) => ContentType contentType -- ^ request content-type ('MimeType') - -> User -- ^ "user" - Updated user object + -> User -- ^ "body" - Updated user object -> Username -- ^ "username" - name that need to be deleted -> OpenAPIPetstoreRequest UpdateUser contentType NoContent MimeNoContent -updateUser _ user (Username username) = +updateUser _ body (Username username) = _mkRequest "PUT" ["/user/",toPath username] - `setBodyParam` user + `setBodyParam` body data UpdateUser --- | /Body Param/ "User" - Updated user object +-- | /Body Param/ "body" - Updated user object instance HasBodyParam UpdateUser User instance Produces UpdateUser MimeNoContent diff --git a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs index 4e5c2b86857..af315d1b361 100644 --- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs +++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs @@ -73,11 +73,14 @@ newtype AdditionalMetadata = AdditionalMetadata { unAdditionalMetadata :: Text } newtype ApiKey = ApiKey { unApiKey :: Text } deriving (P.Eq, P.Show) -- ** Body -newtype Body = Body { unBody :: Double } deriving (P.Eq, P.Show, A.ToJSON) +newtype Body = Body { unBody :: [User] } deriving (P.Eq, P.Show, A.ToJSON) -- ** BodyBool newtype BodyBool = BodyBool { unBodyBool :: Bool } deriving (P.Eq, P.Show, A.ToJSON) +-- ** BodyDouble +newtype BodyDouble = BodyDouble { unBodyDouble :: Double } deriving (P.Eq, P.Show, A.ToJSON) + -- ** BodyText newtype BodyText = BodyText { unBodyText :: Text } deriving (P.Eq, P.Show, A.ToJSON) @@ -162,6 +165,9 @@ newtype ParamFloat = ParamFloat { unParamFloat :: Float } deriving (P.Eq, P.Show -- ** ParamInteger newtype ParamInteger = ParamInteger { unParamInteger :: Int } deriving (P.Eq, P.Show) +-- ** ParamMapMapStringText +newtype ParamMapMapStringText = ParamMapMapStringText { unParamMapMapStringText :: (Map.Map String Text) } deriving (P.Eq, P.Show, A.ToJSON) + -- ** ParamString newtype ParamString = ParamString { unParamString :: Text } deriving (P.Eq, P.Show) @@ -177,9 +183,6 @@ newtype PetId = PetId { unPetId :: Integer } deriving (P.Eq, P.Show) -- ** Query newtype Query = Query { unQuery :: Text } deriving (P.Eq, P.Show) --- ** RequestBody -newtype RequestBody = RequestBody { unRequestBody :: (Map.Map String Text) } deriving (P.Eq, P.Show, A.ToJSON) - -- ** RequiredBooleanGroup newtype RequiredBooleanGroup = RequiredBooleanGroup { unRequiredBooleanGroup :: Bool } deriving (P.Eq, P.Show) @@ -204,9 +207,6 @@ newtype StringGroup = StringGroup { unStringGroup :: Int } deriving (P.Eq, P.Sho -- ** Tags newtype Tags = Tags { unTags :: [Text] } deriving (P.Eq, P.Show) --- ** User2 -newtype User2 = User2 { unUser2 :: [User] } deriving (P.Eq, P.Show, A.ToJSON) - -- ** Username newtype Username = Username { unUsername :: Text } deriving (P.Eq, P.Show) diff --git a/samples/client/petstore/haskell-http-client/openapi.yaml b/samples/client/petstore/haskell-http-client/openapi.yaml index 3e3f1edbc44..ce1f37c60f2 100644 --- a/samples/client/petstore/haskell-http-client/openapi.yaml +++ b/samples/client/petstore/haskell-http-client/openapi.yaml @@ -42,6 +42,7 @@ paths: summary: Add a new pet to the store tags: - pet + x-codegen-request-body-name: body put: operationId: updatePet requestBody: @@ -71,6 +72,7 @@ paths: summary: Update an existing pet tags: - pet + x-codegen-request-body-name: body /pet/findByStatus: get: description: Multiple status values can be provided with comma separated strings @@ -327,6 +329,7 @@ paths: summary: Place an order for a pet tags: - store + x-codegen-request-body-name: body /store/order/{order_id}: delete: description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -398,6 +401,7 @@ paths: summary: Create user tags: - user + x-codegen-request-body-name: body /user/createWithArray: post: operationId: createUsersWithArrayInput @@ -417,6 +421,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body /user/createWithList: post: operationId: createUsersWithListInput @@ -436,6 +441,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body /user/login: get: operationId: loginUser @@ -565,6 +571,7 @@ paths: summary: Updated user tags: - user + x-codegen-request-body-name: body /fake_classname_test: patch: description: To test class name in snake case @@ -588,6 +595,7 @@ paths: summary: To test class name in snake case tags: - fake_classname_tags 123#$%^ + x-codegen-request-body-name: body /fake: delete: description: Fake endpoint to test group parameters (optional) @@ -756,6 +764,7 @@ paths: summary: To test "client" model tags: - fake + x-codegen-request-body-name: body post: description: | Fake endpoint for testing various parameters @@ -874,6 +883,7 @@ paths: description: Output number tags: - fake + x-codegen-request-body-name: body /fake/outer/string: post: description: Test serialization of outer string types @@ -894,6 +904,7 @@ paths: description: Output string tags: - fake + x-codegen-request-body-name: body /fake/outer/boolean: post: description: Test serialization of outer boolean types @@ -914,6 +925,7 @@ paths: description: Output boolean tags: - fake + x-codegen-request-body-name: body /fake/outer/composite: post: description: Test serialization of object with outer number type @@ -934,6 +946,7 @@ paths: description: Output composite tags: - fake + x-codegen-request-body-name: body /fake/jsonFormData: get: operationId: testJsonFormData @@ -978,6 +991,7 @@ paths: summary: test inline additionalProperties tags: - fake + x-codegen-request-body-name: param /fake/body-with-query-params: put: operationId: testBodyWithQueryParams @@ -999,6 +1013,7 @@ paths: description: Success tags: - fake + x-codegen-request-body-name: body /another-fake/dummy: patch: description: To test special tags and operation ID starting with number @@ -1020,6 +1035,7 @@ paths: summary: To test special tags tags: - $another-fake? + x-codegen-request-body-name: body /fake/body-with-file-schema: put: description: For this test, the body for this request much reference a schema named `File`. @@ -1036,6 +1052,7 @@ paths: description: Success tags: - fake + x-codegen-request-body-name: body /fake/{petId}/uploadImageWithRequiredFile: post: operationId: uploadFileWithRequiredFile diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 9ad8bb8da66..bd4cd7e1fe7 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -18,7 +18,7 @@ public interface AnotherFakeApi extends ApiClient.Api { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Client */ @RequestLine("PATCH /another-fake/dummy") @@ -26,5 +26,5 @@ public interface AnotherFakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - Client call123testSpecialTags(Client client); + Client call123testSpecialTags(Client body); } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java index e5bcaac7afe..57620f7cf96 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java @@ -38,7 +38,7 @@ public interface FakeApi extends ApiClient.Api { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return OuterComposite */ @RequestLine("POST /fake/outer/composite") @@ -46,7 +46,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: */*", "Accept: */*", }) - OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite); + OuterComposite fakeOuterCompositeSerialize(OuterComposite body); /** * @@ -77,27 +77,27 @@ public interface FakeApi extends ApiClient.Api { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) */ @RequestLine("PUT /fake/body-with-file-schema") @Headers({ "Content-Type: application/json", "Accept: application/json", }) - void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + void testBodyWithFileSchema(FileSchemaTestClass body); /** * * * @param query (required) - * @param user (required) + * @param body (required) */ @RequestLine("PUT /fake/body-with-query-params?query={query}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) - void testBodyWithQueryParams(@Param("query") String query, User user); + void testBodyWithQueryParams(@Param("query") String query, User body); /** * @@ -107,7 +107,7 @@ public interface FakeApi extends ApiClient.Api { * is convenient for services with optional query parameters, especially when * used with the {@link TestBodyWithQueryParamsQueryParams} class that allows for * building up this map in a fluent style. - * @param user (required) + * @param body (required) * @param queryParams Map of query parameters as name-value pairs *

The following elements may be specified in the query map:

*
    @@ -119,7 +119,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testBodyWithQueryParams(User user, @QueryMap(encoded=true) Map queryParams); + void testBodyWithQueryParams(User body, @QueryMap(encoded=true) Map queryParams); /** * A convenience class for generating query parameters for the @@ -135,7 +135,7 @@ public interface FakeApi extends ApiClient.Api { /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Client */ @RequestLine("PATCH /fake") @@ -143,7 +143,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - Client testClientModel(Client client); + Client testClientModel(Client body); /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -319,14 +319,14 @@ public interface FakeApi extends ApiClient.Api { /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) */ @RequestLine("POST /fake/inline-additionalProperties") @Headers({ "Content-Type: application/json", "Accept: application/json", }) - void testInlineAdditionalProperties(Map requestBody); + void testInlineAdditionalProperties(Map param); /** * test json serialization of form data diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 5ae6e9ff4f4..2df21ad9b96 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -18,7 +18,7 @@ public interface FakeClassnameTags123Api extends ApiClient.Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Client */ @RequestLine("PATCH /fake_classname_test") @@ -26,5 +26,5 @@ public interface FakeClassnameTags123Api extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - Client testClassname(Client client); + Client testClassname(Client body); } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/PetApi.java index 56028b417c4..4996156d28a 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/PetApi.java @@ -20,14 +20,14 @@ public interface PetApi extends ApiClient.Api { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) */ @RequestLine("POST /pet") @Headers({ "Content-Type: application/json", "Accept: application/json", }) - void addPet(Pet pet); + void addPet(Pet body); /** * Deletes a pet @@ -145,14 +145,14 @@ public interface PetApi extends ApiClient.Api { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) */ @RequestLine("PUT /pet") @Headers({ "Content-Type: application/json", "Accept: application/json", }) - void updatePet(Pet pet); + void updatePet(Pet body); /** * Updates a pet in the store with form data diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/StoreApi.java index cd2a5c7d10e..30757ed5731 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/StoreApi.java @@ -52,7 +52,7 @@ public interface StoreApi extends ApiClient.Api { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Order */ @RequestLine("POST /store/order") @@ -60,5 +60,5 @@ public interface StoreApi extends ApiClient.Api { "Content-Type: */*", "Accept: application/json", }) - Order placeOrder(Order order); + Order placeOrder(Order body); } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/UserApi.java index 664aa9216ee..d74a9a2f809 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/UserApi.java @@ -18,38 +18,38 @@ public interface UserApi extends ApiClient.Api { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) */ @RequestLine("POST /user") @Headers({ "Content-Type: */*", "Accept: application/json", }) - void createUser(User user); + void createUser(User body); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) */ @RequestLine("POST /user/createWithArray") @Headers({ "Content-Type: */*", "Accept: application/json", }) - void createUsersWithArrayInput(List user); + void createUsersWithArrayInput(List body); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) */ @RequestLine("POST /user/createWithList") @Headers({ "Content-Type: */*", "Accept: application/json", }) - void createUsersWithListInput(List user); + void createUsersWithListInput(List body); /** * Delete user @@ -138,12 +138,12 @@ public interface UserApi extends ApiClient.Api { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) */ @RequestLine("PUT /user/{username}") @Headers({ "Content-Type: */*", "Accept: application/json", }) - void updateUser(@Param("username") String username, User user); + void updateUser(@Param("username") String username, User body); } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 9ad8bb8da66..bd4cd7e1fe7 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -18,7 +18,7 @@ public interface AnotherFakeApi extends ApiClient.Api { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Client */ @RequestLine("PATCH /another-fake/dummy") @@ -26,5 +26,5 @@ public interface AnotherFakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - Client call123testSpecialTags(Client client); + Client call123testSpecialTags(Client body); } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/FakeApi.java index e5bcaac7afe..57620f7cf96 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/FakeApi.java @@ -38,7 +38,7 @@ public interface FakeApi extends ApiClient.Api { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return OuterComposite */ @RequestLine("POST /fake/outer/composite") @@ -46,7 +46,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: */*", "Accept: */*", }) - OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite); + OuterComposite fakeOuterCompositeSerialize(OuterComposite body); /** * @@ -77,27 +77,27 @@ public interface FakeApi extends ApiClient.Api { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) */ @RequestLine("PUT /fake/body-with-file-schema") @Headers({ "Content-Type: application/json", "Accept: application/json", }) - void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + void testBodyWithFileSchema(FileSchemaTestClass body); /** * * * @param query (required) - * @param user (required) + * @param body (required) */ @RequestLine("PUT /fake/body-with-query-params?query={query}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) - void testBodyWithQueryParams(@Param("query") String query, User user); + void testBodyWithQueryParams(@Param("query") String query, User body); /** * @@ -107,7 +107,7 @@ public interface FakeApi extends ApiClient.Api { * is convenient for services with optional query parameters, especially when * used with the {@link TestBodyWithQueryParamsQueryParams} class that allows for * building up this map in a fluent style. - * @param user (required) + * @param body (required) * @param queryParams Map of query parameters as name-value pairs *

    The following elements may be specified in the query map:

    *
      @@ -119,7 +119,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - void testBodyWithQueryParams(User user, @QueryMap(encoded=true) Map queryParams); + void testBodyWithQueryParams(User body, @QueryMap(encoded=true) Map queryParams); /** * A convenience class for generating query parameters for the @@ -135,7 +135,7 @@ public interface FakeApi extends ApiClient.Api { /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Client */ @RequestLine("PATCH /fake") @@ -143,7 +143,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - Client testClientModel(Client client); + Client testClientModel(Client body); /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -319,14 +319,14 @@ public interface FakeApi extends ApiClient.Api { /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) */ @RequestLine("POST /fake/inline-additionalProperties") @Headers({ "Content-Type: application/json", "Accept: application/json", }) - void testInlineAdditionalProperties(Map requestBody); + void testInlineAdditionalProperties(Map param); /** * test json serialization of form data diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 5ae6e9ff4f4..2df21ad9b96 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -18,7 +18,7 @@ public interface FakeClassnameTags123Api extends ApiClient.Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Client */ @RequestLine("PATCH /fake_classname_test") @@ -26,5 +26,5 @@ public interface FakeClassnameTags123Api extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - Client testClassname(Client client); + Client testClassname(Client body); } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/PetApi.java index 56028b417c4..4996156d28a 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/PetApi.java @@ -20,14 +20,14 @@ public interface PetApi extends ApiClient.Api { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) */ @RequestLine("POST /pet") @Headers({ "Content-Type: application/json", "Accept: application/json", }) - void addPet(Pet pet); + void addPet(Pet body); /** * Deletes a pet @@ -145,14 +145,14 @@ public interface PetApi extends ApiClient.Api { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) */ @RequestLine("PUT /pet") @Headers({ "Content-Type: application/json", "Accept: application/json", }) - void updatePet(Pet pet); + void updatePet(Pet body); /** * Updates a pet in the store with form data diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/StoreApi.java index cd2a5c7d10e..30757ed5731 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/StoreApi.java @@ -52,7 +52,7 @@ public interface StoreApi extends ApiClient.Api { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Order */ @RequestLine("POST /store/order") @@ -60,5 +60,5 @@ public interface StoreApi extends ApiClient.Api { "Content-Type: */*", "Accept: application/json", }) - Order placeOrder(Order order); + Order placeOrder(Order body); } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/UserApi.java index 664aa9216ee..d74a9a2f809 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/api/UserApi.java @@ -18,38 +18,38 @@ public interface UserApi extends ApiClient.Api { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) */ @RequestLine("POST /user") @Headers({ "Content-Type: */*", "Accept: application/json", }) - void createUser(User user); + void createUser(User body); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) */ @RequestLine("POST /user/createWithArray") @Headers({ "Content-Type: */*", "Accept: application/json", }) - void createUsersWithArrayInput(List user); + void createUsersWithArrayInput(List body); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) */ @RequestLine("POST /user/createWithList") @Headers({ "Content-Type: */*", "Accept: application/json", }) - void createUsersWithListInput(List user); + void createUsersWithListInput(List body); /** * Delete user @@ -138,12 +138,12 @@ public interface UserApi extends ApiClient.Api { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) */ @RequestLine("PUT /user/{username}") @Headers({ "Content-Type: */*", "Accept: application/json", }) - void updateUser(@Param("username") String username, User user); + void updateUser(@Param("username") String username, User body); } diff --git a/samples/client/petstore/java/google-api-client/docs/AnotherFakeApi.md b/samples/client/petstore/java/google-api-client/docs/AnotherFakeApi.md index a618e3928c9..4a8546e0c16 100644 --- a/samples/client/petstore/java/google-api-client/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/google-api-client/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/google-api-client/docs/FakeApi.md b/samples/client/petstore/java/google-api-client/docs/FakeApi.md index 62046473c1f..8e3385cc83d 100644 --- a/samples/client/petstore/java/google-api-client/docs/FakeApi.md +++ b/samples/client/petstore/java/google-api-client/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/google-api-client/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/google-api-client/docs/FakeClassnameTags123Api.md index 89cd0fb3f73..873b7493623 100644 --- a/samples/client/petstore/java/google-api-client/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/google-api-client/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/google-api-client/docs/PetApi.md b/samples/client/petstore/java/google-api-client/docs/PetApi.md index 8d621d1682a..fa157be7012 100644 --- a/samples/client/petstore/java/google-api-client/docs/PetApi.md +++ b/samples/client/petstore/java/google-api-client/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/google-api-client/docs/StoreApi.md b/samples/client/petstore/java/google-api-client/docs/StoreApi.md index 578e086a3e1..30d782f82d9 100644 --- a/samples/client/petstore/java/google-api-client/docs/StoreApi.md +++ b/samples/client/petstore/java/google-api-client/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/google-api-client/docs/UserApi.md b/samples/client/petstore/java/google-api-client/docs/UserApi.md index b7b880585f7..5969abd518d 100644 --- a/samples/client/petstore/java/google-api-client/docs/UserApi.md +++ b/samples/client/petstore/java/google-api-client/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index ab532e85362..b17ee1bb954 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -44,12 +44,12 @@ public class AnotherFakeApi { * To test special tags * To test special tags and operation ID starting with number *

      200 - successful operation - * @param client client model + * @param body client model * @return Client * @throws IOException if an error occurs while attempting to invoke the API **/ - public Client call123testSpecialTags(Client client) throws IOException { - HttpResponse response = call123testSpecialTagsForHttpResponse(client); + public Client call123testSpecialTags(Client body) throws IOException { + HttpResponse response = call123testSpecialTagsForHttpResponse(body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } @@ -58,51 +58,51 @@ public class AnotherFakeApi { * To test special tags * To test special tags and operation ID starting with number *

      200 - successful operation - * @param client client model + * @param body client model * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @return Client * @throws IOException if an error occurs while attempting to invoke the API **/ - public Client call123testSpecialTags(Client client, Map params) throws IOException { - HttpResponse response = call123testSpecialTagsForHttpResponse(client, params); + public Client call123testSpecialTags(Client body, Map params) throws IOException { + HttpResponse response = call123testSpecialTagsForHttpResponse(body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse call123testSpecialTagsForHttpResponse(Client client) throws IOException { - // verify the required parameter 'client' is set - if (client == null) { - throw new IllegalArgumentException("Missing the required parameter 'client' when calling call123testSpecialTags"); + public HttpResponse call123testSpecialTagsForHttpResponse(Client body) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling call123testSpecialTags"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(client); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute(); } - public HttpResponse call123testSpecialTagsForHttpResponse(java.io.InputStream client, String mediaType) throws IOException { - // verify the required parameter 'client' is set - if (client == null) { - throw new IllegalArgumentException("Missing the required parameter 'client' when calling call123testSpecialTags"); + public HttpResponse call123testSpecialTagsForHttpResponse(java.io.InputStream body, String mediaType) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling call123testSpecialTags"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = client == null ? + HttpContent content = body == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, client); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute(); } - public HttpResponse call123testSpecialTagsForHttpResponse(Client client, Map params) throws IOException { - // verify the required parameter 'client' is set - if (client == null) { - throw new IllegalArgumentException("Missing the required parameter 'client' when calling call123testSpecialTags"); + public HttpResponse call123testSpecialTagsForHttpResponse(Client body, Map params) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling call123testSpecialTags"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy"); @@ -127,7 +127,7 @@ public class AnotherFakeApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(client); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute(); } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java index 90a90a5f13c..a78c0a02197 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java @@ -130,12 +130,12 @@ public class FakeApi { /** * Test serialization of object with outer number type *

      200 - Output composite - * @param outerComposite Input composite as post body + * @param body Input composite as post body * @return OuterComposite * @throws IOException if an error occurs while attempting to invoke the API **/ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws IOException { - HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(outerComposite); + public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws IOException { + HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } @@ -147,37 +147,37 @@ public class FakeApi { * @return OuterComposite * @throws IOException if an error occurs while attempting to invoke the API **/ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite, Map params) throws IOException { - HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(outerComposite, params); + public OuterComposite fakeOuterCompositeSerialize(OuterComposite body, Map params) throws IOException { + HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse fakeOuterCompositeSerializeForHttpResponse(OuterComposite outerComposite) throws IOException { + public HttpResponse fakeOuterCompositeSerializeForHttpResponse(OuterComposite body) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(outerComposite); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse fakeOuterCompositeSerializeForHttpResponse(java.io.InputStream outerComposite, String mediaType) throws IOException { + public HttpResponse fakeOuterCompositeSerializeForHttpResponse(java.io.InputStream body, String mediaType) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = outerComposite == null ? + HttpContent content = body == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, outerComposite); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse fakeOuterCompositeSerializeForHttpResponse(OuterComposite outerComposite, Map params) throws IOException { + public HttpResponse fakeOuterCompositeSerializeForHttpResponse(OuterComposite body, Map params) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite"); @@ -202,7 +202,7 @@ public class FakeApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(outerComposite); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } @@ -370,58 +370,58 @@ public class FakeApi { /** * For this test, the body for this request much reference a schema named `File`. *

      200 - Success - * @param fileSchemaTestClass The fileSchemaTestClass parameter + * @param body The body parameter * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws IOException { - testBodyWithFileSchemaForHttpResponse(fileSchemaTestClass); + public void testBodyWithFileSchema(FileSchemaTestClass body) throws IOException { + testBodyWithFileSchemaForHttpResponse(body); } /** * For this test, the body for this request much reference a schema named `File`. *

      200 - Success - * @param fileSchemaTestClass The fileSchemaTestClass parameter + * @param body The body parameter * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Map params) throws IOException { - testBodyWithFileSchemaForHttpResponse(fileSchemaTestClass, params); + public void testBodyWithFileSchema(FileSchemaTestClass body, Map params) throws IOException { + testBodyWithFileSchemaForHttpResponse(body, params); } - public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass fileSchemaTestClass) throws IOException { - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - throw new IllegalArgumentException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); + public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass body) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithFileSchema"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(fileSchemaTestClass); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse testBodyWithFileSchemaForHttpResponse(java.io.InputStream fileSchemaTestClass, String mediaType) throws IOException { - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - throw new IllegalArgumentException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); + public HttpResponse testBodyWithFileSchemaForHttpResponse(java.io.InputStream body, String mediaType) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithFileSchema"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = fileSchemaTestClass == null ? + HttpContent content = body == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, fileSchemaTestClass); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass fileSchemaTestClass, Map params) throws IOException { - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - throw new IllegalArgumentException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); + public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass body, Map params) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithFileSchema"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema"); @@ -446,7 +446,7 @@ public class FakeApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(fileSchemaTestClass); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } @@ -454,31 +454,31 @@ public class FakeApi { /** *

      200 - Success * @param query The query parameter - * @param user The user parameter + * @param body The body parameter * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testBodyWithQueryParams(String query, User user) throws IOException { - testBodyWithQueryParamsForHttpResponse(query, user); + public void testBodyWithQueryParams(String query, User body) throws IOException { + testBodyWithQueryParamsForHttpResponse(query, body); } /** *

      200 - Success * @param query The query parameter - * @param user The user parameter + * @param body The body parameter * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testBodyWithQueryParams(String query, User user, Map params) throws IOException { - testBodyWithQueryParamsForHttpResponse(query, user, params); + public void testBodyWithQueryParams(String query, User body, Map params) throws IOException { + testBodyWithQueryParamsForHttpResponse(query, body, params); } - public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, User user) throws IOException { + public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, User body) throws IOException { // verify the required parameter 'query' is set if (query == null) { throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams"); - }// verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling testBodyWithQueryParams"); + }// verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithQueryParams"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-query-params"); if (query != null) { @@ -496,17 +496,17 @@ public class FakeApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(user); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, java.io.InputStream user, String mediaType) throws IOException { + public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, java.io.InputStream body, String mediaType) throws IOException { // verify the required parameter 'query' is set if (query == null) { throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams"); - }// verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling testBodyWithQueryParams"); + }// verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithQueryParams"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-query-params"); if (query != null) { @@ -524,19 +524,19 @@ public class FakeApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = user == null ? + HttpContent content = body == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, user); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, User user, Map params) throws IOException { + public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, User body, Map params) throws IOException { // verify the required parameter 'query' is set if (query == null) { throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams"); - }// verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling testBodyWithQueryParams"); + }// verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithQueryParams"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-query-params"); @@ -563,7 +563,7 @@ public class FakeApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(user); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } @@ -572,12 +572,12 @@ public class FakeApi { * To test \"client\" model * To test \"client\" model *

      200 - successful operation - * @param client client model + * @param body client model * @return Client * @throws IOException if an error occurs while attempting to invoke the API **/ - public Client testClientModel(Client client) throws IOException { - HttpResponse response = testClientModelForHttpResponse(client); + public Client testClientModel(Client body) throws IOException { + HttpResponse response = testClientModelForHttpResponse(body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } @@ -586,51 +586,51 @@ public class FakeApi { * To test \"client\" model * To test \"client\" model *

      200 - successful operation - * @param client client model + * @param body client model * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @return Client * @throws IOException if an error occurs while attempting to invoke the API **/ - public Client testClientModel(Client client, Map params) throws IOException { - HttpResponse response = testClientModelForHttpResponse(client, params); + public Client testClientModel(Client body, Map params) throws IOException { + HttpResponse response = testClientModelForHttpResponse(body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse testClientModelForHttpResponse(Client client) throws IOException { - // verify the required parameter 'client' is set - if (client == null) { - throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClientModel"); + public HttpResponse testClientModelForHttpResponse(Client body) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClientModel"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(client); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute(); } - public HttpResponse testClientModelForHttpResponse(java.io.InputStream client, String mediaType) throws IOException { - // verify the required parameter 'client' is set - if (client == null) { - throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClientModel"); + public HttpResponse testClientModelForHttpResponse(java.io.InputStream body, String mediaType) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClientModel"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = client == null ? + HttpContent content = body == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, client); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute(); } - public HttpResponse testClientModelForHttpResponse(Client client, Map params) throws IOException { - // verify the required parameter 'client' is set - if (client == null) { - throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClientModel"); + public HttpResponse testClientModelForHttpResponse(Client body, Map params) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClientModel"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake"); @@ -655,7 +655,7 @@ public class FakeApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(client); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute(); } @@ -1016,58 +1016,58 @@ public class FakeApi { /** * test inline additionalProperties *

      200 - successful operation - * @param requestBody request body + * @param param request body * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testInlineAdditionalProperties(Map requestBody) throws IOException { - testInlineAdditionalPropertiesForHttpResponse(requestBody); + public void testInlineAdditionalProperties(Map param) throws IOException { + testInlineAdditionalPropertiesForHttpResponse(param); } /** * test inline additionalProperties *

      200 - successful operation - * @param requestBody request body + * @param param request body * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void testInlineAdditionalProperties(Map requestBody, Map params) throws IOException { - testInlineAdditionalPropertiesForHttpResponse(requestBody, params); + public void testInlineAdditionalProperties(Map param, Map params) throws IOException { + testInlineAdditionalPropertiesForHttpResponse(param, params); } - public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map requestBody) throws IOException { - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - throw new IllegalArgumentException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); + public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map param) throws IOException { + // verify the required parameter 'param' is set + if (param == null) { + throw new IllegalArgumentException("Missing the required parameter 'param' when calling testInlineAdditionalProperties"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(requestBody); + HttpContent content = apiClient.new JacksonJsonHttpContent(param); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse testInlineAdditionalPropertiesForHttpResponse(java.io.InputStream requestBody, String mediaType) throws IOException { - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - throw new IllegalArgumentException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); + public HttpResponse testInlineAdditionalPropertiesForHttpResponse(java.io.InputStream param, String mediaType) throws IOException { + // verify the required parameter 'param' is set + if (param == null) { + throw new IllegalArgumentException("Missing the required parameter 'param' when calling testInlineAdditionalProperties"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = requestBody == null ? + HttpContent content = param == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, requestBody); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, param); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map requestBody, Map params) throws IOException { - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - throw new IllegalArgumentException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); + public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map param, Map params) throws IOException { + // verify the required parameter 'param' is set + if (param == null) { + throw new IllegalArgumentException("Missing the required parameter 'param' when calling testInlineAdditionalProperties"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties"); @@ -1092,7 +1092,7 @@ public class FakeApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(requestBody); + HttpContent content = apiClient.new JacksonJsonHttpContent(param); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 18d814a7906..71e359d2487 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -44,12 +44,12 @@ public class FakeClassnameTags123Api { * To test class name in snake case * To test class name in snake case *

      200 - successful operation - * @param client client model + * @param body client model * @return Client * @throws IOException if an error occurs while attempting to invoke the API **/ - public Client testClassname(Client client) throws IOException { - HttpResponse response = testClassnameForHttpResponse(client); + public Client testClassname(Client body) throws IOException { + HttpResponse response = testClassnameForHttpResponse(body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } @@ -58,51 +58,51 @@ public class FakeClassnameTags123Api { * To test class name in snake case * To test class name in snake case *

      200 - successful operation - * @param client client model + * @param body client model * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @return Client * @throws IOException if an error occurs while attempting to invoke the API **/ - public Client testClassname(Client client, Map params) throws IOException { - HttpResponse response = testClassnameForHttpResponse(client, params); + public Client testClassname(Client body, Map params) throws IOException { + HttpResponse response = testClassnameForHttpResponse(body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse testClassnameForHttpResponse(Client client) throws IOException { - // verify the required parameter 'client' is set - if (client == null) { - throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClassname"); + public HttpResponse testClassnameForHttpResponse(Client body) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClassname"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(client); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute(); } - public HttpResponse testClassnameForHttpResponse(java.io.InputStream client, String mediaType) throws IOException { - // verify the required parameter 'client' is set - if (client == null) { - throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClassname"); + public HttpResponse testClassnameForHttpResponse(java.io.InputStream body, String mediaType) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClassname"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = client == null ? + HttpContent content = body == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, client); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute(); } - public HttpResponse testClassnameForHttpResponse(Client client, Map params) throws IOException { - // verify the required parameter 'client' is set - if (client == null) { - throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClassname"); + public HttpResponse testClassnameForHttpResponse(Client body, Map params) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClassname"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test"); @@ -127,7 +127,7 @@ public class FakeClassnameTags123Api { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(client); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute(); } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/PetApi.java index 8691400482e..ef2c90a14a3 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/PetApi.java @@ -45,58 +45,58 @@ public class PetApi { /** * Add a new pet to the store *

      405 - Invalid input - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @throws IOException if an error occurs while attempting to invoke the API **/ - public void addPet(Pet pet) throws IOException { - addPetForHttpResponse(pet); + public void addPet(Pet body) throws IOException { + addPetForHttpResponse(body); } /** * Add a new pet to the store *

      405 - Invalid input - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void addPet(Pet pet, Map params) throws IOException { - addPetForHttpResponse(pet, params); + public void addPet(Pet body, Map params) throws IOException { + addPetForHttpResponse(body, params); } - public HttpResponse addPetForHttpResponse(Pet pet) throws IOException { - // verify the required parameter 'pet' is set - if (pet == null) { - throw new IllegalArgumentException("Missing the required parameter 'pet' when calling addPet"); + public HttpResponse addPetForHttpResponse(Pet body) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(pet); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse addPetForHttpResponse(java.io.InputStream pet, String mediaType) throws IOException { - // verify the required parameter 'pet' is set - if (pet == null) { - throw new IllegalArgumentException("Missing the required parameter 'pet' when calling addPet"); + public HttpResponse addPetForHttpResponse(java.io.InputStream body, String mediaType) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = pet == null ? + HttpContent content = body == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, pet); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse addPetForHttpResponse(Pet pet, Map params) throws IOException { - // verify the required parameter 'pet' is set - if (pet == null) { - throw new IllegalArgumentException("Missing the required parameter 'pet' when calling addPet"); + public HttpResponse addPetForHttpResponse(Pet body, Map params) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet"); @@ -121,7 +121,7 @@ public class PetApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(pet); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } @@ -474,11 +474,11 @@ public class PetApi { *

      400 - Invalid ID supplied *

      404 - Pet not found *

      405 - Validation exception - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @throws IOException if an error occurs while attempting to invoke the API **/ - public void updatePet(Pet pet) throws IOException { - updatePetForHttpResponse(pet); + public void updatePet(Pet body) throws IOException { + updatePetForHttpResponse(body); } /** @@ -486,48 +486,48 @@ public class PetApi { *

      400 - Invalid ID supplied *

      404 - Pet not found *

      405 - Validation exception - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void updatePet(Pet pet, Map params) throws IOException { - updatePetForHttpResponse(pet, params); + public void updatePet(Pet body, Map params) throws IOException { + updatePetForHttpResponse(body, params); } - public HttpResponse updatePetForHttpResponse(Pet pet) throws IOException { - // verify the required parameter 'pet' is set - if (pet == null) { - throw new IllegalArgumentException("Missing the required parameter 'pet' when calling updatePet"); + public HttpResponse updatePetForHttpResponse(Pet body) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(pet); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse updatePetForHttpResponse(java.io.InputStream pet, String mediaType) throws IOException { - // verify the required parameter 'pet' is set - if (pet == null) { - throw new IllegalArgumentException("Missing the required parameter 'pet' when calling updatePet"); + public HttpResponse updatePetForHttpResponse(java.io.InputStream body, String mediaType) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = pet == null ? + HttpContent content = body == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, pet); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse updatePetForHttpResponse(Pet pet, Map params) throws IOException { - // verify the required parameter 'pet' is set - if (pet == null) { - throw new IllegalArgumentException("Missing the required parameter 'pet' when calling updatePet"); + public HttpResponse updatePetForHttpResponse(Pet body, Map params) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet"); @@ -552,7 +552,7 @@ public class PetApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(pet); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/StoreApi.java index 87b040d2ce8..403039f991a 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/StoreApi.java @@ -276,12 +276,12 @@ public class StoreApi { * Place an order for a pet *

      200 - successful operation *

      400 - Invalid Order - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @return Order * @throws IOException if an error occurs while attempting to invoke the API **/ - public Order placeOrder(Order order) throws IOException { - HttpResponse response = placeOrderForHttpResponse(order); + public Order placeOrder(Order body) throws IOException { + HttpResponse response = placeOrderForHttpResponse(body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } @@ -290,51 +290,51 @@ public class StoreApi { * Place an order for a pet *

      200 - successful operation *

      400 - Invalid Order - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @return Order * @throws IOException if an error occurs while attempting to invoke the API **/ - public Order placeOrder(Order order, Map params) throws IOException { - HttpResponse response = placeOrderForHttpResponse(order, params); + public Order placeOrder(Order body, Map params) throws IOException { + HttpResponse response = placeOrderForHttpResponse(body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse placeOrderForHttpResponse(Order order) throws IOException { - // verify the required parameter 'order' is set - if (order == null) { - throw new IllegalArgumentException("Missing the required parameter 'order' when calling placeOrder"); + public HttpResponse placeOrderForHttpResponse(Order body) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling placeOrder"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(order); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse placeOrderForHttpResponse(java.io.InputStream order, String mediaType) throws IOException { - // verify the required parameter 'order' is set - if (order == null) { - throw new IllegalArgumentException("Missing the required parameter 'order' when calling placeOrder"); + public HttpResponse placeOrderForHttpResponse(java.io.InputStream body, String mediaType) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling placeOrder"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = order == null ? + HttpContent content = body == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, order); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse placeOrderForHttpResponse(Order order, Map params) throws IOException { - // verify the required parameter 'order' is set - if (order == null) { - throw new IllegalArgumentException("Missing the required parameter 'order' when calling placeOrder"); + public HttpResponse placeOrderForHttpResponse(Order body, Map params) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling placeOrder"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order"); @@ -359,7 +359,7 @@ public class StoreApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(order); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/UserApi.java index 86b81e9b25e..21b7c004ed2 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/UserApi.java @@ -44,59 +44,59 @@ public class UserApi { * Create user * This can only be done by the logged in user. *

      0 - successful operation - * @param user Created user object + * @param body Created user object * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createUser(User user) throws IOException { - createUserForHttpResponse(user); + public void createUser(User body) throws IOException { + createUserForHttpResponse(body); } /** * Create user * This can only be done by the logged in user. *

      0 - successful operation - * @param user Created user object + * @param body Created user object * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createUser(User user, Map params) throws IOException { - createUserForHttpResponse(user, params); + public void createUser(User body, Map params) throws IOException { + createUserForHttpResponse(body, params); } - public HttpResponse createUserForHttpResponse(User user) throws IOException { - // verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUser"); + public HttpResponse createUserForHttpResponse(User body) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUser"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(user); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse createUserForHttpResponse(java.io.InputStream user, String mediaType) throws IOException { - // verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUser"); + public HttpResponse createUserForHttpResponse(java.io.InputStream body, String mediaType) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUser"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = user == null ? + HttpContent content = body == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, user); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse createUserForHttpResponse(User user, Map params) throws IOException { - // verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUser"); + public HttpResponse createUserForHttpResponse(User body, Map params) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUser"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user"); @@ -121,7 +121,7 @@ public class UserApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(user); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } @@ -129,58 +129,58 @@ public class UserApi { /** * Creates list of users with given input array *

      0 - successful operation - * @param user List of user object + * @param body List of user object * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createUsersWithArrayInput(List user) throws IOException { - createUsersWithArrayInputForHttpResponse(user); + public void createUsersWithArrayInput(List body) throws IOException { + createUsersWithArrayInputForHttpResponse(body); } /** * Creates list of users with given input array *

      0 - successful operation - * @param user List of user object + * @param body List of user object * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createUsersWithArrayInput(List user, Map params) throws IOException { - createUsersWithArrayInputForHttpResponse(user, params); + public void createUsersWithArrayInput(List body, Map params) throws IOException { + createUsersWithArrayInputForHttpResponse(body, params); } - public HttpResponse createUsersWithArrayInputForHttpResponse(List user) throws IOException { - // verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithArrayInput"); + public HttpResponse createUsersWithArrayInputForHttpResponse(List body) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithArrayInput"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(user); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse createUsersWithArrayInputForHttpResponse(java.io.InputStream user, String mediaType) throws IOException { - // verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithArrayInput"); + public HttpResponse createUsersWithArrayInputForHttpResponse(java.io.InputStream body, String mediaType) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithArrayInput"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = user == null ? + HttpContent content = body == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, user); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse createUsersWithArrayInputForHttpResponse(List user, Map params) throws IOException { - // verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithArrayInput"); + public HttpResponse createUsersWithArrayInputForHttpResponse(List body, Map params) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithArrayInput"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray"); @@ -205,7 +205,7 @@ public class UserApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(user); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } @@ -213,58 +213,58 @@ public class UserApi { /** * Creates list of users with given input array *

      0 - successful operation - * @param user List of user object + * @param body List of user object * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createUsersWithListInput(List user) throws IOException { - createUsersWithListInputForHttpResponse(user); + public void createUsersWithListInput(List body) throws IOException { + createUsersWithListInputForHttpResponse(body); } /** * Creates list of users with given input array *

      0 - successful operation - * @param user List of user object + * @param body List of user object * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void createUsersWithListInput(List user, Map params) throws IOException { - createUsersWithListInputForHttpResponse(user, params); + public void createUsersWithListInput(List body, Map params) throws IOException { + createUsersWithListInputForHttpResponse(body, params); } - public HttpResponse createUsersWithListInputForHttpResponse(List user) throws IOException { - // verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithListInput"); + public HttpResponse createUsersWithListInputForHttpResponse(List body) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithListInput"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(user); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse createUsersWithListInputForHttpResponse(java.io.InputStream user, String mediaType) throws IOException { - // verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithListInput"); + public HttpResponse createUsersWithListInputForHttpResponse(java.io.InputStream body, String mediaType) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithListInput"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList"); String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = user == null ? + HttpContent content = body == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, user); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } - public HttpResponse createUsersWithListInputForHttpResponse(List user, Map params) throws IOException { - // verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithListInput"); + public HttpResponse createUsersWithListInputForHttpResponse(List body, Map params) throws IOException { + // verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithListInput"); } UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList"); @@ -289,7 +289,7 @@ public class UserApi { String url = uriBuilder.build().toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(user); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute(); } @@ -631,11 +631,11 @@ public class UserApi { *

      400 - Invalid user supplied *

      404 - User not found * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @throws IOException if an error occurs while attempting to invoke the API **/ - public void updateUser(String username, User user) throws IOException { - updateUserForHttpResponse(username, user); + public void updateUser(String username, User body) throws IOException { + updateUserForHttpResponse(username, body); } /** @@ -644,21 +644,21 @@ public class UserApi { *

      400 - Invalid user supplied *

      404 - User not found * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param. * @throws IOException if an error occurs while attempting to invoke the API **/ - public void updateUser(String username, User user, Map params) throws IOException { - updateUserForHttpResponse(username, user, params); + public void updateUser(String username, User body, Map params) throws IOException { + updateUserForHttpResponse(username, body, params); } - public HttpResponse updateUserForHttpResponse(String username, User user) throws IOException { + public HttpResponse updateUserForHttpResponse(String username, User body) throws IOException { // verify the required parameter 'username' is set if (username == null) { throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser"); - }// verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling updateUser"); + }// verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling updateUser"); } // create a map of path variables final Map uriVariables = new HashMap(); @@ -668,17 +668,17 @@ public class UserApi { String url = uriBuilder.buildFromMap(uriVariables).toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(user); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse updateUserForHttpResponse(String username, java.io.InputStream user, String mediaType) throws IOException { + public HttpResponse updateUserForHttpResponse(String username, java.io.InputStream body, String mediaType) throws IOException { // verify the required parameter 'username' is set if (username == null) { throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser"); - }// verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling updateUser"); + }// verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling updateUser"); } // create a map of path variables final Map uriVariables = new HashMap(); @@ -688,19 +688,19 @@ public class UserApi { String url = uriBuilder.buildFromMap(uriVariables).toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = user == null ? + HttpContent content = body == null ? apiClient.new JacksonJsonHttpContent(null) : - new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, user); + new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } - public HttpResponse updateUserForHttpResponse(String username, User user, Map params) throws IOException { + public HttpResponse updateUserForHttpResponse(String username, User body, Map params) throws IOException { // verify the required parameter 'username' is set if (username == null) { throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser"); - }// verify the required parameter 'user' is set - if (user == null) { - throw new IllegalArgumentException("Missing the required parameter 'user' when calling updateUser"); + }// verify the required parameter 'body' is set + if (body == null) { + throw new IllegalArgumentException("Missing the required parameter 'body' when calling updateUser"); } // create a map of path variables final Map uriVariables = new HashMap(); @@ -728,7 +728,7 @@ public class UserApi { String url = uriBuilder.buildFromMap(uriVariables).toString(); GenericUrl genericUrl = new GenericUrl(url); - HttpContent content = apiClient.new JacksonJsonHttpContent(user); + HttpContent content = apiClient.new JacksonJsonHttpContent(body); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute(); } diff --git a/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md index a618e3928c9..4a8546e0c16 100644 --- a/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/jersey1/docs/FakeApi.md b/samples/client/petstore/java/jersey1/docs/FakeApi.md index 62046473c1f..8e3385cc83d 100644 --- a/samples/client/petstore/java/jersey1/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey1/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/jersey1/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/jersey1/docs/FakeClassnameTags123Api.md index 89cd0fb3f73..873b7493623 100644 --- a/samples/client/petstore/java/jersey1/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/jersey1/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/jersey1/docs/PetApi.md b/samples/client/petstore/java/jersey1/docs/PetApi.md index 8d621d1682a..fa157be7012 100644 --- a/samples/client/petstore/java/jersey1/docs/PetApi.md +++ b/samples/client/petstore/java/jersey1/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/jersey1/docs/StoreApi.md b/samples/client/petstore/java/jersey1/docs/StoreApi.md index 578e086a3e1..30d782f82d9 100644 --- a/samples/client/petstore/java/jersey1/docs/StoreApi.md +++ b/samples/client/petstore/java/jersey1/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/jersey1/docs/UserApi.md b/samples/client/petstore/java/jersey1/docs/UserApi.md index b7b880585f7..5969abd518d 100644 --- a/samples/client/petstore/java/jersey1/docs/UserApi.md +++ b/samples/client/petstore/java/jersey1/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/jersey1/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 7d39d56b6c4..86c5a970a41 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -51,16 +51,16 @@ public class AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException if fails to make API call */ - public Client call123testSpecialTags(Client client) throws ApiException { - Object localVarPostBody = client; + public Client call123testSpecialTags(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeApi.java index f4f7e114907..788ded6e208 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeApi.java @@ -95,12 +95,12 @@ public class FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return OuterComposite * @throws ApiException if fails to make API call */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { - Object localVarPostBody = outerComposite; + public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake/outer/composite"; @@ -206,15 +206,15 @@ public class FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { - Object localVarPostBody = fileSchemaTestClass; + public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema"); } // create path and map variables @@ -248,20 +248,20 @@ public class FakeApi { * * * @param query (required) - * @param user (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public void testBodyWithQueryParams(String query, User user) throws ApiException { - Object localVarPostBody = user; + public void testBodyWithQueryParams(String query, User body) throws ApiException { + Object localVarPostBody = body; // verify the required parameter 'query' is set if (query == null) { throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams"); } // create path and map variables @@ -295,16 +295,16 @@ public class FakeApi { /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException if fails to make API call */ - public Client testClientModel(Client client) throws ApiException { - Object localVarPostBody = client; + public Client testClientModel(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel"); } // create path and map variables @@ -553,15 +553,15 @@ if (booleanGroup != null) /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @throws ApiException if fails to make API call */ - public void testInlineAdditionalProperties(Map requestBody) throws ApiException { - Object localVarPostBody = requestBody; + public void testInlineAdditionalProperties(Map param) throws ApiException { + Object localVarPostBody = param; - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) { + throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index e1d2f6cd762..ce73d508cdb 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -51,16 +51,16 @@ public class FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException if fails to make API call */ - public Client testClassname(Client client) throws ApiException { - Object localVarPostBody = client; + public Client testClassname(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/PetApi.java index a2516b11270..db0a20e371d 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/PetApi.java @@ -53,15 +53,15 @@ public class PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void addPet(Pet pet) throws ApiException { - Object localVarPostBody = pet; + public void addPet(Pet body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling addPet"); } // create path and map variables @@ -270,15 +270,15 @@ public class PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void updatePet(Pet pet) throws ApiException { - Object localVarPostBody = pet; + public void updatePet(Pet body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/StoreApi.java index 59cf7caf1aa..b59fed3e281 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/StoreApi.java @@ -172,16 +172,16 @@ public class StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Order * @throws ApiException if fails to make API call */ - public Order placeOrder(Order order) throws ApiException { - Object localVarPostBody = order; + public Order placeOrder(Order body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'order' is set - if (order == null) { - throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/UserApi.java index 22df647c651..c8c731c3d5a 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/UserApi.java @@ -51,15 +51,15 @@ public class UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @throws ApiException if fails to make API call */ - public void createUser(User user) throws ApiException { - Object localVarPostBody = user; + public void createUser(User body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUser"); } // create path and map variables @@ -92,15 +92,15 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithArrayInput(List user) throws ApiException { - Object localVarPostBody = user; + public void createUsersWithArrayInput(List body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput"); } // create path and map variables @@ -133,15 +133,15 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithListInput(List user) throws ApiException { - Object localVarPostBody = user; + public void createUsersWithListInput(List body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput"); } // create path and map variables @@ -345,20 +345,20 @@ public class UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @throws ApiException if fails to make API call */ - public void updateUser(String username, User user) throws ApiException { - Object localVarPostBody = user; + public void updateUser(String username, User body) throws ApiException { + Object localVarPostBody = body; // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md index a618e3928c9..4a8546e0c16 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md index 62046473c1f..8e3385cc83d 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md index 89cd0fb3f73..873b7493623 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/jersey2-java6/docs/PetApi.md b/samples/client/petstore/java/jersey2-java6/docs/PetApi.md index 8d621d1682a..fa157be7012 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/PetApi.md +++ b/samples/client/petstore/java/jersey2-java6/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/jersey2-java6/docs/StoreApi.md b/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md index 578e086a3e1..30d782f82d9 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md +++ b/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/jersey2-java6/docs/UserApi.md b/samples/client/petstore/java/jersey2-java6/docs/UserApi.md index b7b880585f7..5969abd518d 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/UserApi.md +++ b/samples/client/petstore/java/jersey2-java6/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/jersey2-java6/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 2060f36dd25..5f60e6433d1 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -38,27 +38,27 @@ public class AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException if fails to make API call */ - public Client call123testSpecialTags(Client client) throws ApiException { - return call123testSpecialTagsWithHttpInfo(client).getData(); + public Client call123testSpecialTags(Client body) throws ApiException { + return call123testSpecialTagsWithHttpInfo(body).getData(); } /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException if fails to make API call */ - public ApiResponse call123testSpecialTagsWithHttpInfo(Client client) throws ApiException { - Object localVarPostBody = client; + public ApiResponse call123testSpecialTagsWithHttpInfo(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeApi.java index d167939bf5b..2fbd63cfabf 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeApi.java @@ -92,23 +92,23 @@ public class FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return OuterComposite * @throws ApiException if fails to make API call */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { - return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getData(); + public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { + return fakeOuterCompositeSerializeWithHttpInfo(body).getData(); } /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return ApiResponse<OuterComposite> * @throws ApiException if fails to make API call */ - public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException { - Object localVarPostBody = outerComposite; + public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake/outer/composite"; @@ -233,26 +233,26 @@ public class FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { - testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + testBodyWithFileSchemaWithHttpInfo(body); } /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException { - Object localVarPostBody = fileSchemaTestClass; + public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema"); } // create path and map variables @@ -285,32 +285,32 @@ public class FakeApi { * * * @param query (required) - * @param user (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public void testBodyWithQueryParams(String query, User user) throws ApiException { + public void testBodyWithQueryParams(String query, User body) throws ApiException { - testBodyWithQueryParamsWithHttpInfo(query, user); + testBodyWithQueryParamsWithHttpInfo(query, body); } /** * * * @param query (required) - * @param user (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { + Object localVarPostBody = body; // verify the required parameter 'query' is set if (query == null) { throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams"); } // create path and map variables @@ -343,27 +343,27 @@ public class FakeApi { /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException if fails to make API call */ - public Client testClientModel(Client client) throws ApiException { - return testClientModelWithHttpInfo(client).getData(); + public Client testClientModel(Client body) throws ApiException { + return testClientModelWithHttpInfo(body).getData(); } /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException if fails to make API call */ - public ApiResponse testClientModelWithHttpInfo(Client client) throws ApiException { - Object localVarPostBody = client; + public ApiResponse testClientModelWithHttpInfo(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel"); } // create path and map variables @@ -666,26 +666,26 @@ if (booleanGroup != null) /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @throws ApiException if fails to make API call */ - public void testInlineAdditionalProperties(Map requestBody) throws ApiException { + public void testInlineAdditionalProperties(Map param) throws ApiException { - testInlineAdditionalPropertiesWithHttpInfo(requestBody); + testInlineAdditionalPropertiesWithHttpInfo(param); } /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @throws ApiException if fails to make API call */ - public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws ApiException { - Object localVarPostBody = requestBody; + public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { + Object localVarPostBody = param; - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) { + throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 9c2c88feeef..0bb82d50ca0 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -38,27 +38,27 @@ public class FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException if fails to make API call */ - public Client testClassname(Client client) throws ApiException { - return testClassnameWithHttpInfo(client).getData(); + public Client testClassname(Client body) throws ApiException { + return testClassnameWithHttpInfo(body).getData(); } /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException if fails to make API call */ - public ApiResponse testClassnameWithHttpInfo(Client client) throws ApiException { - Object localVarPostBody = client; + public ApiResponse testClassnameWithHttpInfo(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/PetApi.java index d09a2892a4d..dad8fa34339 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/PetApi.java @@ -40,26 +40,26 @@ public class PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void addPet(Pet pet) throws ApiException { + public void addPet(Pet body) throws ApiException { - addPetWithHttpInfo(pet); + addPetWithHttpInfo(body); } /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { - Object localVarPostBody = pet; + public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling addPet"); } // create path and map variables @@ -310,26 +310,26 @@ public class PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void updatePet(Pet pet) throws ApiException { + public void updatePet(Pet body) throws ApiException { - updatePetWithHttpInfo(pet); + updatePetWithHttpInfo(body); } /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { - Object localVarPostBody = pet; + public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/StoreApi.java index 591f53adad5..91aaa01157d 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/StoreApi.java @@ -188,27 +188,27 @@ public class StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Order * @throws ApiException if fails to make API call */ - public Order placeOrder(Order order) throws ApiException { - return placeOrderWithHttpInfo(order).getData(); + public Order placeOrder(Order body) throws ApiException { + return placeOrderWithHttpInfo(body).getData(); } /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return ApiResponse<Order> * @throws ApiException if fails to make API call */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { - Object localVarPostBody = order; + public ApiResponse placeOrderWithHttpInfo(Order body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'order' is set - if (order == null) { - throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/UserApi.java index 5795c7e626e..a91765dfdb9 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/UserApi.java @@ -38,26 +38,26 @@ public class UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @throws ApiException if fails to make API call */ - public void createUser(User user) throws ApiException { + public void createUser(User body) throws ApiException { - createUserWithHttpInfo(user); + createUserWithHttpInfo(body); } /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @throws ApiException if fails to make API call */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse createUserWithHttpInfo(User body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUser"); } // create path and map variables @@ -89,26 +89,26 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(List body) throws ApiException { - createUsersWithArrayInputWithHttpInfo(user); + createUsersWithArrayInputWithHttpInfo(body); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput"); } // create path and map variables @@ -140,26 +140,26 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(List body) throws ApiException { - createUsersWithListInputWithHttpInfo(user); + createUsersWithListInputWithHttpInfo(body); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput"); } // create path and map variables @@ -402,32 +402,32 @@ public class UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @throws ApiException if fails to make API call */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(String username, User body) throws ApiException { - updateUserWithHttpInfo(username, user); + updateUserWithHttpInfo(username, body); } /** * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @throws ApiException if fails to make API call */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { + Object localVarPostBody = body; // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md index a618e3928c9..4a8546e0c16 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md index 62046473c1f..8e3385cc83d 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/jersey2-java8/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/jersey2-java8/docs/FakeClassnameTags123Api.md index 89cd0fb3f73..873b7493623 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/jersey2-java8/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/jersey2-java8/docs/PetApi.md b/samples/client/petstore/java/jersey2-java8/docs/PetApi.md index 8d621d1682a..fa157be7012 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/PetApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/jersey2-java8/docs/StoreApi.md b/samples/client/petstore/java/jersey2-java8/docs/StoreApi.md index 578e086a3e1..30d782f82d9 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/StoreApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/jersey2-java8/docs/UserApi.md b/samples/client/petstore/java/jersey2-java8/docs/UserApi.md index b7b880585f7..5969abd518d 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/UserApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 2060f36dd25..5f60e6433d1 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -38,27 +38,27 @@ public class AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException if fails to make API call */ - public Client call123testSpecialTags(Client client) throws ApiException { - return call123testSpecialTagsWithHttpInfo(client).getData(); + public Client call123testSpecialTags(Client body) throws ApiException { + return call123testSpecialTagsWithHttpInfo(body).getData(); } /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException if fails to make API call */ - public ApiResponse call123testSpecialTagsWithHttpInfo(Client client) throws ApiException { - Object localVarPostBody = client; + public ApiResponse call123testSpecialTagsWithHttpInfo(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java index 068ba3e71f7..04f58bc0593 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java @@ -92,23 +92,23 @@ public class FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return OuterComposite * @throws ApiException if fails to make API call */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { - return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getData(); + public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { + return fakeOuterCompositeSerializeWithHttpInfo(body).getData(); } /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return ApiResponse<OuterComposite> * @throws ApiException if fails to make API call */ - public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException { - Object localVarPostBody = outerComposite; + public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake/outer/composite"; @@ -233,26 +233,26 @@ public class FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { - testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + testBodyWithFileSchemaWithHttpInfo(body); } /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException { - Object localVarPostBody = fileSchemaTestClass; + public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema"); } // create path and map variables @@ -285,32 +285,32 @@ public class FakeApi { * * * @param query (required) - * @param user (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public void testBodyWithQueryParams(String query, User user) throws ApiException { + public void testBodyWithQueryParams(String query, User body) throws ApiException { - testBodyWithQueryParamsWithHttpInfo(query, user); + testBodyWithQueryParamsWithHttpInfo(query, body); } /** * * * @param query (required) - * @param user (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { + Object localVarPostBody = body; // verify the required parameter 'query' is set if (query == null) { throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams"); } // create path and map variables @@ -343,27 +343,27 @@ public class FakeApi { /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException if fails to make API call */ - public Client testClientModel(Client client) throws ApiException { - return testClientModelWithHttpInfo(client).getData(); + public Client testClientModel(Client body) throws ApiException { + return testClientModelWithHttpInfo(body).getData(); } /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException if fails to make API call */ - public ApiResponse testClientModelWithHttpInfo(Client client) throws ApiException { - Object localVarPostBody = client; + public ApiResponse testClientModelWithHttpInfo(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel"); } // create path and map variables @@ -666,26 +666,26 @@ if (booleanGroup != null) /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @throws ApiException if fails to make API call */ - public void testInlineAdditionalProperties(Map requestBody) throws ApiException { + public void testInlineAdditionalProperties(Map param) throws ApiException { - testInlineAdditionalPropertiesWithHttpInfo(requestBody); + testInlineAdditionalPropertiesWithHttpInfo(param); } /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @throws ApiException if fails to make API call */ - public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws ApiException { - Object localVarPostBody = requestBody; + public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { + Object localVarPostBody = param; - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) { + throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 9c2c88feeef..0bb82d50ca0 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -38,27 +38,27 @@ public class FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException if fails to make API call */ - public Client testClassname(Client client) throws ApiException { - return testClassnameWithHttpInfo(client).getData(); + public Client testClassname(Client body) throws ApiException { + return testClassnameWithHttpInfo(body).getData(); } /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException if fails to make API call */ - public ApiResponse testClassnameWithHttpInfo(Client client) throws ApiException { - Object localVarPostBody = client; + public ApiResponse testClassnameWithHttpInfo(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java index d09a2892a4d..dad8fa34339 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java @@ -40,26 +40,26 @@ public class PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void addPet(Pet pet) throws ApiException { + public void addPet(Pet body) throws ApiException { - addPetWithHttpInfo(pet); + addPetWithHttpInfo(body); } /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { - Object localVarPostBody = pet; + public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling addPet"); } // create path and map variables @@ -310,26 +310,26 @@ public class PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void updatePet(Pet pet) throws ApiException { + public void updatePet(Pet body) throws ApiException { - updatePetWithHttpInfo(pet); + updatePetWithHttpInfo(body); } /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { - Object localVarPostBody = pet; + public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java index 591f53adad5..91aaa01157d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java @@ -188,27 +188,27 @@ public class StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Order * @throws ApiException if fails to make API call */ - public Order placeOrder(Order order) throws ApiException { - return placeOrderWithHttpInfo(order).getData(); + public Order placeOrder(Order body) throws ApiException { + return placeOrderWithHttpInfo(body).getData(); } /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return ApiResponse<Order> * @throws ApiException if fails to make API call */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { - Object localVarPostBody = order; + public ApiResponse placeOrderWithHttpInfo(Order body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'order' is set - if (order == null) { - throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java index 5795c7e626e..a91765dfdb9 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java @@ -38,26 +38,26 @@ public class UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @throws ApiException if fails to make API call */ - public void createUser(User user) throws ApiException { + public void createUser(User body) throws ApiException { - createUserWithHttpInfo(user); + createUserWithHttpInfo(body); } /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @throws ApiException if fails to make API call */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse createUserWithHttpInfo(User body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUser"); } // create path and map variables @@ -89,26 +89,26 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(List body) throws ApiException { - createUsersWithArrayInputWithHttpInfo(user); + createUsersWithArrayInputWithHttpInfo(body); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput"); } // create path and map variables @@ -140,26 +140,26 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(List body) throws ApiException { - createUsersWithListInputWithHttpInfo(user); + createUsersWithListInputWithHttpInfo(body); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput"); } // create path and map variables @@ -402,32 +402,32 @@ public class UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @throws ApiException if fails to make API call */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(String username, User body) throws ApiException { - updateUserWithHttpInfo(username, user); + updateUserWithHttpInfo(username, body); } /** * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @throws ApiException if fails to make API call */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { + Object localVarPostBody = body; // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey2/docs/AnotherFakeApi.md index a618e3928c9..4a8546e0c16 100644 --- a/samples/client/petstore/java/jersey2/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/jersey2/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/jersey2/docs/FakeApi.md b/samples/client/petstore/java/jersey2/docs/FakeApi.md index 62046473c1f..8e3385cc83d 100644 --- a/samples/client/petstore/java/jersey2/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/jersey2/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/jersey2/docs/FakeClassnameTags123Api.md index 89cd0fb3f73..873b7493623 100644 --- a/samples/client/petstore/java/jersey2/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/jersey2/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/jersey2/docs/PetApi.md b/samples/client/petstore/java/jersey2/docs/PetApi.md index 8d621d1682a..fa157be7012 100644 --- a/samples/client/petstore/java/jersey2/docs/PetApi.md +++ b/samples/client/petstore/java/jersey2/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/jersey2/docs/StoreApi.md b/samples/client/petstore/java/jersey2/docs/StoreApi.md index 578e086a3e1..30d782f82d9 100644 --- a/samples/client/petstore/java/jersey2/docs/StoreApi.md +++ b/samples/client/petstore/java/jersey2/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/jersey2/docs/UserApi.md b/samples/client/petstore/java/jersey2/docs/UserApi.md index b7b880585f7..5969abd518d 100644 --- a/samples/client/petstore/java/jersey2/docs/UserApi.md +++ b/samples/client/petstore/java/jersey2/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/jersey2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 2060f36dd25..5f60e6433d1 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -38,27 +38,27 @@ public class AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException if fails to make API call */ - public Client call123testSpecialTags(Client client) throws ApiException { - return call123testSpecialTagsWithHttpInfo(client).getData(); + public Client call123testSpecialTags(Client body) throws ApiException { + return call123testSpecialTagsWithHttpInfo(body).getData(); } /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException if fails to make API call */ - public ApiResponse call123testSpecialTagsWithHttpInfo(Client client) throws ApiException { - Object localVarPostBody = client; + public ApiResponse call123testSpecialTagsWithHttpInfo(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeApi.java index d167939bf5b..2fbd63cfabf 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -92,23 +92,23 @@ public class FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return OuterComposite * @throws ApiException if fails to make API call */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { - return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getData(); + public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { + return fakeOuterCompositeSerializeWithHttpInfo(body).getData(); } /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return ApiResponse<OuterComposite> * @throws ApiException if fails to make API call */ - public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException { - Object localVarPostBody = outerComposite; + public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake/outer/composite"; @@ -233,26 +233,26 @@ public class FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { + public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { - testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + testBodyWithFileSchemaWithHttpInfo(body); } /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException { - Object localVarPostBody = fileSchemaTestClass; + public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema"); } // create path and map variables @@ -285,32 +285,32 @@ public class FakeApi { * * * @param query (required) - * @param user (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public void testBodyWithQueryParams(String query, User user) throws ApiException { + public void testBodyWithQueryParams(String query, User body) throws ApiException { - testBodyWithQueryParamsWithHttpInfo(query, user); + testBodyWithQueryParamsWithHttpInfo(query, body); } /** * * * @param query (required) - * @param user (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { + Object localVarPostBody = body; // verify the required parameter 'query' is set if (query == null) { throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams"); } // create path and map variables @@ -343,27 +343,27 @@ public class FakeApi { /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException if fails to make API call */ - public Client testClientModel(Client client) throws ApiException { - return testClientModelWithHttpInfo(client).getData(); + public Client testClientModel(Client body) throws ApiException { + return testClientModelWithHttpInfo(body).getData(); } /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException if fails to make API call */ - public ApiResponse testClientModelWithHttpInfo(Client client) throws ApiException { - Object localVarPostBody = client; + public ApiResponse testClientModelWithHttpInfo(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel"); } // create path and map variables @@ -666,26 +666,26 @@ if (booleanGroup != null) /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @throws ApiException if fails to make API call */ - public void testInlineAdditionalProperties(Map requestBody) throws ApiException { + public void testInlineAdditionalProperties(Map param) throws ApiException { - testInlineAdditionalPropertiesWithHttpInfo(requestBody); + testInlineAdditionalPropertiesWithHttpInfo(param); } /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @throws ApiException if fails to make API call */ - public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws ApiException { - Object localVarPostBody = requestBody; + public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { + Object localVarPostBody = param; - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) { + throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 9c2c88feeef..0bb82d50ca0 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -38,27 +38,27 @@ public class FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException if fails to make API call */ - public Client testClassname(Client client) throws ApiException { - return testClassnameWithHttpInfo(client).getData(); + public Client testClassname(Client body) throws ApiException { + return testClassnameWithHttpInfo(body).getData(); } /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException if fails to make API call */ - public ApiResponse testClassnameWithHttpInfo(Client client) throws ApiException { - Object localVarPostBody = client; + public ApiResponse testClassnameWithHttpInfo(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/PetApi.java index d09a2892a4d..dad8fa34339 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/PetApi.java @@ -40,26 +40,26 @@ public class PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void addPet(Pet pet) throws ApiException { + public void addPet(Pet body) throws ApiException { - addPetWithHttpInfo(pet); + addPetWithHttpInfo(body); } /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { - Object localVarPostBody = pet; + public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling addPet"); } // create path and map variables @@ -310,26 +310,26 @@ public class PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void updatePet(Pet pet) throws ApiException { + public void updatePet(Pet body) throws ApiException { - updatePetWithHttpInfo(pet); + updatePetWithHttpInfo(body); } /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { - Object localVarPostBody = pet; + public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/StoreApi.java index 591f53adad5..91aaa01157d 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/StoreApi.java @@ -188,27 +188,27 @@ public class StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Order * @throws ApiException if fails to make API call */ - public Order placeOrder(Order order) throws ApiException { - return placeOrderWithHttpInfo(order).getData(); + public Order placeOrder(Order body) throws ApiException { + return placeOrderWithHttpInfo(body).getData(); } /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return ApiResponse<Order> * @throws ApiException if fails to make API call */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { - Object localVarPostBody = order; + public ApiResponse placeOrderWithHttpInfo(Order body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'order' is set - if (order == null) { - throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder"); } // create path and map variables diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/UserApi.java index 5795c7e626e..a91765dfdb9 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/UserApi.java @@ -38,26 +38,26 @@ public class UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @throws ApiException if fails to make API call */ - public void createUser(User user) throws ApiException { + public void createUser(User body) throws ApiException { - createUserWithHttpInfo(user); + createUserWithHttpInfo(body); } /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @throws ApiException if fails to make API call */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse createUserWithHttpInfo(User body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUser"); } // create path and map variables @@ -89,26 +89,26 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithArrayInput(List user) throws ApiException { + public void createUsersWithArrayInput(List body) throws ApiException { - createUsersWithArrayInputWithHttpInfo(user); + createUsersWithArrayInputWithHttpInfo(body); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput"); } // create path and map variables @@ -140,26 +140,26 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithListInput(List user) throws ApiException { + public void createUsersWithListInput(List body) throws ApiException { - createUsersWithListInputWithHttpInfo(user); + createUsersWithListInputWithHttpInfo(body); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput"); } // create path and map variables @@ -402,32 +402,32 @@ public class UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @throws ApiException if fails to make API call */ - public void updateUser(String username, User user) throws ApiException { + public void updateUser(String username, User body) throws ApiException { - updateUserWithHttpInfo(username, user); + updateUserWithHttpInfo(username, body); } /** * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @throws ApiException if fails to make API call */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { - Object localVarPostBody = user; + public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { + Object localVarPostBody = body; // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser"); } // create path and map variables diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/AnotherFakeApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/AnotherFakeApi.md index a618e3928c9..4a8546e0c16 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md index 873f2636426..e0e16efbc00 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -528,7 +528,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -540,9 +540,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -553,7 +553,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeClassnameTags123Api.md index 89cd0fb3f73..873b7493623 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/PetApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/PetApi.md index 8d621d1682a..fa157be7012 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/PetApi.md +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/okhttp-gson-parcelableModel/docs/StoreApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/StoreApi.md index 578e086a3e1..30d782f82d9 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/StoreApi.md +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/okhttp-gson-parcelableModel/docs/UserApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/UserApi.md index b7b880585f7..5969abd518d 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/UserApi.md +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index ef2a1c94f92..1d97d7a5787 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -56,14 +56,14 @@ public class AnotherFakeApi { /** * Build call for call123testSpecialTags - * @param client client model (required) + * @param body client model (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call call123testSpecialTagsCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = client; + public com.squareup.okhttp.Call call123testSpecialTagsCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/another-fake/dummy"; @@ -103,15 +103,15 @@ public class AnotherFakeApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call call123testSpecialTagsValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call call123testSpecialTagsValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException("Missing the required parameter 'client' when calling call123testSpecialTags(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling call123testSpecialTags(Async)"); } - com.squareup.okhttp.Call call = call123testSpecialTagsCall(client, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = call123testSpecialTagsCall(body, progressListener, progressRequestListener); return call; } @@ -119,24 +119,24 @@ public class AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public Client call123testSpecialTags(Client client) throws ApiException { - ApiResponse resp = call123testSpecialTagsWithHttpInfo(client); + public Client call123testSpecialTags(Client body) throws ApiException { + ApiResponse resp = call123testSpecialTagsWithHttpInfo(body); return resp.getData(); } /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse call123testSpecialTagsWithHttpInfo(Client client) throws ApiException { - com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, null, null); + public ApiResponse call123testSpecialTagsWithHttpInfo(Client body) throws ApiException { + com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(body, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -144,12 +144,12 @@ public class AnotherFakeApi { /** * To test special tags (asynchronously) * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client client, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -170,7 +170,7 @@ public class AnotherFakeApi { }; } - com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(body, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java index afd061f83b2..5801aa71922 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java @@ -179,14 +179,14 @@ public class FakeApi { } /** * Build call for fakeOuterCompositeSerialize - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call fakeOuterCompositeSerializeCall(OuterComposite outerComposite, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = outerComposite; + public com.squareup.okhttp.Call fakeOuterCompositeSerializeCall(OuterComposite body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake/outer/composite"; @@ -226,10 +226,10 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite outerComposite, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = fakeOuterCompositeSerializeCall(outerComposite, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = fakeOuterCompositeSerializeCall(body, progressListener, progressRequestListener); return call; } @@ -237,24 +237,24 @@ public class FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return OuterComposite * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { - ApiResponse resp = fakeOuterCompositeSerializeWithHttpInfo(outerComposite); + public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { + ApiResponse resp = fakeOuterCompositeSerializeWithHttpInfo(body); return resp.getData(); } /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return ApiResponse<OuterComposite> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException { - com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(outerComposite, null, null); + public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException { + com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(body, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -262,12 +262,12 @@ public class FakeApi { /** * (asynchronously) * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call fakeOuterCompositeSerializeAsync(OuterComposite outerComposite, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call fakeOuterCompositeSerializeAsync(OuterComposite body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -288,7 +288,7 @@ public class FakeApi { }; } - com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(outerComposite, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(body, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -527,14 +527,14 @@ public class FakeApi { } /** * Build call for testBodyWithFileSchema - * @param fileSchemaTestClass (required) + * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call testBodyWithFileSchemaCall(FileSchemaTestClass fileSchemaTestClass, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = fileSchemaTestClass; + public com.squareup.okhttp.Call testBodyWithFileSchemaCall(FileSchemaTestClass body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake/body-with-file-schema"; @@ -574,15 +574,15 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass fileSchemaTestClass, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - throw new ApiException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling testBodyWithFileSchema(Async)"); } - com.squareup.okhttp.Call call = testBodyWithFileSchemaCall(fileSchemaTestClass, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testBodyWithFileSchemaCall(body, progressListener, progressRequestListener); return call; } @@ -590,34 +590,34 @@ public class FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { - testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { + testBodyWithFileSchemaWithHttpInfo(body); } /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException { - com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(fileSchemaTestClass, null, null); + public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { + com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(body, null, null); return apiClient.execute(call); } /** * (asynchronously) * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call testBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call testBodyWithFileSchemaAsync(FileSchemaTestClass body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -638,21 +638,21 @@ public class FakeApi { }; } - com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(fileSchemaTestClass, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** * Build call for testBodyWithQueryParams * @param query (required) - * @param user (required) + * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call testBodyWithQueryParamsCall(String query, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = user; + public com.squareup.okhttp.Call testBodyWithQueryParamsCall(String query, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake/body-with-query-params"; @@ -696,20 +696,20 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call testBodyWithQueryParamsValidateBeforeCall(String query, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call testBodyWithQueryParamsValidateBeforeCall(String query, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'query' is set if (query == null) { throw new ApiException("Missing the required parameter 'query' when calling testBodyWithQueryParams(Async)"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException("Missing the required parameter 'user' when calling testBodyWithQueryParams(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling testBodyWithQueryParams(Async)"); } - com.squareup.okhttp.Call call = testBodyWithQueryParamsCall(query, user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testBodyWithQueryParamsCall(query, body, progressListener, progressRequestListener); return call; } @@ -718,23 +718,23 @@ public class FakeApi { * * * @param query (required) - * @param user (required) + * @param body (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void testBodyWithQueryParams(String query, User user) throws ApiException { - testBodyWithQueryParamsWithHttpInfo(query, user); + public void testBodyWithQueryParams(String query, User body) throws ApiException { + testBodyWithQueryParamsWithHttpInfo(query, body); } /** * * * @param query (required) - * @param user (required) + * @param body (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException { - com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, user, null, null); + public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { + com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, body, null, null); return apiClient.execute(call); } @@ -742,12 +742,12 @@ public class FakeApi { * (asynchronously) * * @param query (required) - * @param user (required) + * @param body (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call testBodyWithQueryParamsAsync(String query, User user, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call testBodyWithQueryParamsAsync(String query, User body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -768,20 +768,20 @@ public class FakeApi { }; } - com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** * Build call for testClientModel - * @param client client model (required) + * @param body client model (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call testClientModelCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = client; + public com.squareup.okhttp.Call testClientModelCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake"; @@ -821,15 +821,15 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call testClientModelValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call testClientModelValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException("Missing the required parameter 'client' when calling testClientModel(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling testClientModel(Async)"); } - com.squareup.okhttp.Call call = testClientModelCall(client, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testClientModelCall(body, progressListener, progressRequestListener); return call; } @@ -837,24 +837,24 @@ public class FakeApi { /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public Client testClientModel(Client client) throws ApiException { - ApiResponse resp = testClientModelWithHttpInfo(client); + public Client testClientModel(Client body) throws ApiException { + ApiResponse resp = testClientModelWithHttpInfo(body); return resp.getData(); } /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse testClientModelWithHttpInfo(Client client) throws ApiException { - com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(client, null, null); + public ApiResponse testClientModelWithHttpInfo(Client body) throws ApiException { + com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(body, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -862,12 +862,12 @@ public class FakeApi { /** * To test \"client\" model (asynchronously) * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call testClientModelAsync(Client client, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call testClientModelAsync(Client body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -888,7 +888,7 @@ public class FakeApi { }; } - com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(client, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(body, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -1521,14 +1521,14 @@ public class FakeApi { } /** * Build call for testInlineAdditionalProperties - * @param requestBody request body (required) + * @param param request body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call testInlineAdditionalPropertiesCall(Map requestBody, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = requestBody; + public com.squareup.okhttp.Call testInlineAdditionalPropertiesCall(Map param, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = param; // create path and map variables String localVarPath = "/fake/inline-additionalProperties"; @@ -1568,15 +1568,15 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call testInlineAdditionalPropertiesValidateBeforeCall(Map requestBody, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call testInlineAdditionalPropertiesValidateBeforeCall(Map param, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - throw new ApiException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties(Async)"); + // verify the required parameter 'param' is set + if (param == null) { + throw new ApiException("Missing the required parameter 'param' when calling testInlineAdditionalProperties(Async)"); } - com.squareup.okhttp.Call call = testInlineAdditionalPropertiesCall(requestBody, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testInlineAdditionalPropertiesCall(param, progressListener, progressRequestListener); return call; } @@ -1584,34 +1584,34 @@ public class FakeApi { /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void testInlineAdditionalProperties(Map requestBody) throws ApiException { - testInlineAdditionalPropertiesWithHttpInfo(requestBody); + public void testInlineAdditionalProperties(Map param) throws ApiException { + testInlineAdditionalPropertiesWithHttpInfo(param); } /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws ApiException { - com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(requestBody, null, null); + public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { + com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(param, null, null); return apiClient.execute(call); } /** * test inline additionalProperties (asynchronously) * - * @param requestBody request body (required) + * @param param request body (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call testInlineAdditionalPropertiesAsync(Map requestBody, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call testInlineAdditionalPropertiesAsync(Map param, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1632,7 +1632,7 @@ public class FakeApi { }; } - com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(requestBody, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(param, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index fee24a345ed..9fe1f2fabf6 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -56,14 +56,14 @@ public class FakeClassnameTags123Api { /** * Build call for testClassname - * @param client client model (required) + * @param body client model (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call testClassnameCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = client; + public com.squareup.okhttp.Call testClassnameCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake_classname_test"; @@ -103,15 +103,15 @@ public class FakeClassnameTags123Api { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call testClassnameValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call testClassnameValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException("Missing the required parameter 'client' when calling testClassname(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling testClassname(Async)"); } - com.squareup.okhttp.Call call = testClassnameCall(client, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testClassnameCall(body, progressListener, progressRequestListener); return call; } @@ -119,24 +119,24 @@ public class FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public Client testClassname(Client client) throws ApiException { - ApiResponse resp = testClassnameWithHttpInfo(client); + public Client testClassname(Client body) throws ApiException { + ApiResponse resp = testClassnameWithHttpInfo(body); return resp.getData(); } /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse testClassnameWithHttpInfo(Client client) throws ApiException { - com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(client, null, null); + public ApiResponse testClassnameWithHttpInfo(Client body) throws ApiException { + com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(body, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -144,12 +144,12 @@ public class FakeClassnameTags123Api { /** * To test class name in snake case (asynchronously) * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call testClassnameAsync(Client client, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call testClassnameAsync(Client body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -170,7 +170,7 @@ public class FakeClassnameTags123Api { }; } - com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(client, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(body, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/PetApi.java index 7f5e5a3b4d2..4368d7b34e5 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/PetApi.java @@ -58,14 +58,14 @@ public class PetApi { /** * Build call for addPet - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call addPetCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = pet; + public com.squareup.okhttp.Call addPetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/pet"; @@ -105,15 +105,15 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call addPetValidateBeforeCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call addPetValidateBeforeCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException("Missing the required parameter 'pet' when calling addPet(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling addPet(Async)"); } - com.squareup.okhttp.Call call = addPetCall(pet, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = addPetCall(body, progressListener, progressRequestListener); return call; } @@ -121,34 +121,34 @@ public class PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void addPet(Pet pet) throws ApiException { - addPetWithHttpInfo(pet); + public void addPet(Pet body) throws ApiException { + addPetWithHttpInfo(body); } /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { - com.squareup.okhttp.Call call = addPetValidateBeforeCall(pet, null, null); + public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { + com.squareup.okhttp.Call call = addPetValidateBeforeCall(body, null, null); return apiClient.execute(call); } /** * Add a new pet to the store (asynchronously) * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call addPetAsync(Pet pet, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call addPetAsync(Pet body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -169,7 +169,7 @@ public class PetApi { }; } - com.squareup.okhttp.Call call = addPetValidateBeforeCall(pet, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = addPetValidateBeforeCall(body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } @@ -682,14 +682,14 @@ public class PetApi { } /** * Build call for updatePet - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call updatePetCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = pet; + public com.squareup.okhttp.Call updatePetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/pet"; @@ -729,15 +729,15 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call updatePetValidateBeforeCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call updatePetValidateBeforeCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException("Missing the required parameter 'pet' when calling updatePet(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling updatePet(Async)"); } - com.squareup.okhttp.Call call = updatePetCall(pet, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = updatePetCall(body, progressListener, progressRequestListener); return call; } @@ -745,34 +745,34 @@ public class PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void updatePet(Pet pet) throws ApiException { - updatePetWithHttpInfo(pet); + public void updatePet(Pet body) throws ApiException { + updatePetWithHttpInfo(body); } /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { - com.squareup.okhttp.Call call = updatePetValidateBeforeCall(pet, null, null); + public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { + com.squareup.okhttp.Call call = updatePetValidateBeforeCall(body, null, null); return apiClient.execute(call); } /** * Update an existing pet (asynchronously) * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call updatePetAsync(Pet pet, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call updatePetAsync(Pet body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -793,7 +793,7 @@ public class PetApi { }; } - com.squareup.okhttp.Call call = updatePetValidateBeforeCall(pet, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = updatePetValidateBeforeCall(body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/StoreApi.java index c9924191862..e03b7683588 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/StoreApi.java @@ -408,14 +408,14 @@ public class StoreApi { } /** * Build call for placeOrder - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call placeOrderCall(Order order, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = order; + public com.squareup.okhttp.Call placeOrderCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/store/order"; @@ -455,15 +455,15 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call placeOrderValidateBeforeCall(Order order, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call placeOrderValidateBeforeCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'order' is set - if (order == null) { - throw new ApiException("Missing the required parameter 'order' when calling placeOrder(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling placeOrder(Async)"); } - com.squareup.okhttp.Call call = placeOrderCall(order, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = placeOrderCall(body, progressListener, progressRequestListener); return call; } @@ -471,24 +471,24 @@ public class StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Order * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public Order placeOrder(Order order) throws ApiException { - ApiResponse resp = placeOrderWithHttpInfo(order); + public Order placeOrder(Order body) throws ApiException { + ApiResponse resp = placeOrderWithHttpInfo(body); return resp.getData(); } /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return ApiResponse<Order> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { - com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(order, null, null); + public ApiResponse placeOrderWithHttpInfo(Order body) throws ApiException { + com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(body, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -496,12 +496,12 @@ public class StoreApi { /** * Place an order for a pet (asynchronously) * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call placeOrderAsync(Order order, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call placeOrderAsync(Order body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -522,7 +522,7 @@ public class StoreApi { }; } - com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(order, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(body, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/UserApi.java index ffb2e6bd52c..82e7c61a83a 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/UserApi.java @@ -56,14 +56,14 @@ public class UserApi { /** * Build call for createUser - * @param user Created user object (required) + * @param body Created user object (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call createUserCall(User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = user; + public com.squareup.okhttp.Call createUserCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/user"; @@ -103,15 +103,15 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createUserValidateBeforeCall(User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createUserValidateBeforeCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createUser(Async)"); } - com.squareup.okhttp.Call call = createUserCall(user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createUserCall(body, progressListener, progressRequestListener); return call; } @@ -119,34 +119,34 @@ public class UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void createUser(User user) throws ApiException { - createUserWithHttpInfo(user); + public void createUser(User body) throws ApiException { + createUserWithHttpInfo(body); } /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { - com.squareup.okhttp.Call call = createUserValidateBeforeCall(user, null, null); + public ApiResponse createUserWithHttpInfo(User body) throws ApiException { + com.squareup.okhttp.Call call = createUserValidateBeforeCall(body, null, null); return apiClient.execute(call); } /** * Create user (asynchronously) * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call createUserAsync(User user, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createUserAsync(User body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -167,20 +167,20 @@ public class UserApi { }; } - com.squareup.okhttp.Call call = createUserValidateBeforeCall(user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createUserValidateBeforeCall(body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** * Build call for createUsersWithArrayInput - * @param user List of user object (required) + * @param body List of user object (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call createUsersWithArrayInputCall(List user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = user; + public com.squareup.okhttp.Call createUsersWithArrayInputCall(List body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/user/createWithArray"; @@ -220,15 +220,15 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createUsersWithArrayInputValidateBeforeCall(List user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createUsersWithArrayInputValidateBeforeCall(List body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException("Missing the required parameter 'user' when calling createUsersWithArrayInput(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createUsersWithArrayInput(Async)"); } - com.squareup.okhttp.Call call = createUsersWithArrayInputCall(user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createUsersWithArrayInputCall(body, progressListener, progressRequestListener); return call; } @@ -236,34 +236,34 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void createUsersWithArrayInput(List user) throws ApiException { - createUsersWithArrayInputWithHttpInfo(user); + public void createUsersWithArrayInput(List body) throws ApiException { + createUsersWithArrayInputWithHttpInfo(body); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { - com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(user, null, null); + public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { + com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(body, null, null); return apiClient.execute(call); } /** * Creates list of users with given input array (asynchronously) * - * @param user List of user object (required) + * @param body List of user object (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call createUsersWithArrayInputAsync(List user, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createUsersWithArrayInputAsync(List body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -284,20 +284,20 @@ public class UserApi { }; } - com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** * Build call for createUsersWithListInput - * @param user List of user object (required) + * @param body List of user object (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call createUsersWithListInputCall(List user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = user; + public com.squareup.okhttp.Call createUsersWithListInputCall(List body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/user/createWithList"; @@ -337,15 +337,15 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createUsersWithListInputValidateBeforeCall(List user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createUsersWithListInputValidateBeforeCall(List body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException("Missing the required parameter 'user' when calling createUsersWithListInput(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createUsersWithListInput(Async)"); } - com.squareup.okhttp.Call call = createUsersWithListInputCall(user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createUsersWithListInputCall(body, progressListener, progressRequestListener); return call; } @@ -353,34 +353,34 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void createUsersWithListInput(List user) throws ApiException { - createUsersWithListInputWithHttpInfo(user); + public void createUsersWithListInput(List body) throws ApiException { + createUsersWithListInputWithHttpInfo(body); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { - com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(user, null, null); + public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { + com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(body, null, null); return apiClient.execute(call); } /** * Creates list of users with given input array (asynchronously) * - * @param user List of user object (required) + * @param body List of user object (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call createUsersWithListInputAsync(List user, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createUsersWithListInputAsync(List body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -401,7 +401,7 @@ public class UserApi { }; } - com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } @@ -894,14 +894,14 @@ public class UserApi { /** * Build call for updateUser * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call updateUserCall(String username, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = user; + public com.squareup.okhttp.Call updateUserCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/user/{username}" @@ -942,20 +942,20 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call updateUserValidateBeforeCall(String username, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call updateUserValidateBeforeCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException("Missing the required parameter 'user' when calling updateUser(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling updateUser(Async)"); } - com.squareup.okhttp.Call call = updateUserCall(username, user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = updateUserCall(username, body, progressListener, progressRequestListener); return call; } @@ -964,23 +964,23 @@ public class UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void updateUser(String username, User user) throws ApiException { - updateUserWithHttpInfo(username, user); + public void updateUser(String username, User body) throws ApiException { + updateUserWithHttpInfo(username, body); } /** * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { - com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, user, null, null); + public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { + com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, body, null, null); return apiClient.execute(call); } @@ -988,12 +988,12 @@ public class UserApi { * Updated user (asynchronously) * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call updateUserAsync(String username, User user, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call updateUserAsync(String username, User body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1014,7 +1014,7 @@ public class UserApi { }; } - com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } diff --git a/samples/client/petstore/java/okhttp-gson/docs/AnotherFakeApi.md b/samples/client/petstore/java/okhttp-gson/docs/AnotherFakeApi.md index a618e3928c9..4a8546e0c16 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/okhttp-gson/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md index 873f2636426..e0e16efbc00 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md +++ b/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -528,7 +528,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -540,9 +540,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -553,7 +553,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/okhttp-gson/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/okhttp-gson/docs/FakeClassnameTags123Api.md index 89cd0fb3f73..873b7493623 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/okhttp-gson/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/okhttp-gson/docs/PetApi.md b/samples/client/petstore/java/okhttp-gson/docs/PetApi.md index 8d621d1682a..fa157be7012 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/PetApi.md +++ b/samples/client/petstore/java/okhttp-gson/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/okhttp-gson/docs/StoreApi.md b/samples/client/petstore/java/okhttp-gson/docs/StoreApi.md index 578e086a3e1..30d782f82d9 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/StoreApi.md +++ b/samples/client/petstore/java/okhttp-gson/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/okhttp-gson/docs/UserApi.md b/samples/client/petstore/java/okhttp-gson/docs/UserApi.md index b7b880585f7..5969abd518d 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/UserApi.md +++ b/samples/client/petstore/java/okhttp-gson/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/okhttp-gson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index ef2a1c94f92..1d97d7a5787 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -56,14 +56,14 @@ public class AnotherFakeApi { /** * Build call for call123testSpecialTags - * @param client client model (required) + * @param body client model (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call call123testSpecialTagsCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = client; + public com.squareup.okhttp.Call call123testSpecialTagsCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/another-fake/dummy"; @@ -103,15 +103,15 @@ public class AnotherFakeApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call call123testSpecialTagsValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call call123testSpecialTagsValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException("Missing the required parameter 'client' when calling call123testSpecialTags(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling call123testSpecialTags(Async)"); } - com.squareup.okhttp.Call call = call123testSpecialTagsCall(client, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = call123testSpecialTagsCall(body, progressListener, progressRequestListener); return call; } @@ -119,24 +119,24 @@ public class AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public Client call123testSpecialTags(Client client) throws ApiException { - ApiResponse resp = call123testSpecialTagsWithHttpInfo(client); + public Client call123testSpecialTags(Client body) throws ApiException { + ApiResponse resp = call123testSpecialTagsWithHttpInfo(body); return resp.getData(); } /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse call123testSpecialTagsWithHttpInfo(Client client) throws ApiException { - com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, null, null); + public ApiResponse call123testSpecialTagsWithHttpInfo(Client body) throws ApiException { + com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(body, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -144,12 +144,12 @@ public class AnotherFakeApi { /** * To test special tags (asynchronously) * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client client, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -170,7 +170,7 @@ public class AnotherFakeApi { }; } - com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(body, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java index afd061f83b2..5801aa71922 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java @@ -179,14 +179,14 @@ public class FakeApi { } /** * Build call for fakeOuterCompositeSerialize - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call fakeOuterCompositeSerializeCall(OuterComposite outerComposite, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = outerComposite; + public com.squareup.okhttp.Call fakeOuterCompositeSerializeCall(OuterComposite body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake/outer/composite"; @@ -226,10 +226,10 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite outerComposite, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = fakeOuterCompositeSerializeCall(outerComposite, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = fakeOuterCompositeSerializeCall(body, progressListener, progressRequestListener); return call; } @@ -237,24 +237,24 @@ public class FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return OuterComposite * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { - ApiResponse resp = fakeOuterCompositeSerializeWithHttpInfo(outerComposite); + public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { + ApiResponse resp = fakeOuterCompositeSerializeWithHttpInfo(body); return resp.getData(); } /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return ApiResponse<OuterComposite> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException { - com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(outerComposite, null, null); + public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException { + com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(body, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -262,12 +262,12 @@ public class FakeApi { /** * (asynchronously) * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call fakeOuterCompositeSerializeAsync(OuterComposite outerComposite, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call fakeOuterCompositeSerializeAsync(OuterComposite body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -288,7 +288,7 @@ public class FakeApi { }; } - com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(outerComposite, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(body, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -527,14 +527,14 @@ public class FakeApi { } /** * Build call for testBodyWithFileSchema - * @param fileSchemaTestClass (required) + * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call testBodyWithFileSchemaCall(FileSchemaTestClass fileSchemaTestClass, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = fileSchemaTestClass; + public com.squareup.okhttp.Call testBodyWithFileSchemaCall(FileSchemaTestClass body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake/body-with-file-schema"; @@ -574,15 +574,15 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass fileSchemaTestClass, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - throw new ApiException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling testBodyWithFileSchema(Async)"); } - com.squareup.okhttp.Call call = testBodyWithFileSchemaCall(fileSchemaTestClass, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testBodyWithFileSchemaCall(body, progressListener, progressRequestListener); return call; } @@ -590,34 +590,34 @@ public class FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { - testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { + testBodyWithFileSchemaWithHttpInfo(body); } /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException { - com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(fileSchemaTestClass, null, null); + public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { + com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(body, null, null); return apiClient.execute(call); } /** * (asynchronously) * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call testBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call testBodyWithFileSchemaAsync(FileSchemaTestClass body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -638,21 +638,21 @@ public class FakeApi { }; } - com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(fileSchemaTestClass, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** * Build call for testBodyWithQueryParams * @param query (required) - * @param user (required) + * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call testBodyWithQueryParamsCall(String query, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = user; + public com.squareup.okhttp.Call testBodyWithQueryParamsCall(String query, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake/body-with-query-params"; @@ -696,20 +696,20 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call testBodyWithQueryParamsValidateBeforeCall(String query, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call testBodyWithQueryParamsValidateBeforeCall(String query, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'query' is set if (query == null) { throw new ApiException("Missing the required parameter 'query' when calling testBodyWithQueryParams(Async)"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException("Missing the required parameter 'user' when calling testBodyWithQueryParams(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling testBodyWithQueryParams(Async)"); } - com.squareup.okhttp.Call call = testBodyWithQueryParamsCall(query, user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testBodyWithQueryParamsCall(query, body, progressListener, progressRequestListener); return call; } @@ -718,23 +718,23 @@ public class FakeApi { * * * @param query (required) - * @param user (required) + * @param body (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void testBodyWithQueryParams(String query, User user) throws ApiException { - testBodyWithQueryParamsWithHttpInfo(query, user); + public void testBodyWithQueryParams(String query, User body) throws ApiException { + testBodyWithQueryParamsWithHttpInfo(query, body); } /** * * * @param query (required) - * @param user (required) + * @param body (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException { - com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, user, null, null); + public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { + com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, body, null, null); return apiClient.execute(call); } @@ -742,12 +742,12 @@ public class FakeApi { * (asynchronously) * * @param query (required) - * @param user (required) + * @param body (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call testBodyWithQueryParamsAsync(String query, User user, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call testBodyWithQueryParamsAsync(String query, User body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -768,20 +768,20 @@ public class FakeApi { }; } - com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** * Build call for testClientModel - * @param client client model (required) + * @param body client model (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call testClientModelCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = client; + public com.squareup.okhttp.Call testClientModelCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake"; @@ -821,15 +821,15 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call testClientModelValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call testClientModelValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException("Missing the required parameter 'client' when calling testClientModel(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling testClientModel(Async)"); } - com.squareup.okhttp.Call call = testClientModelCall(client, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testClientModelCall(body, progressListener, progressRequestListener); return call; } @@ -837,24 +837,24 @@ public class FakeApi { /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public Client testClientModel(Client client) throws ApiException { - ApiResponse resp = testClientModelWithHttpInfo(client); + public Client testClientModel(Client body) throws ApiException { + ApiResponse resp = testClientModelWithHttpInfo(body); return resp.getData(); } /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse testClientModelWithHttpInfo(Client client) throws ApiException { - com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(client, null, null); + public ApiResponse testClientModelWithHttpInfo(Client body) throws ApiException { + com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(body, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -862,12 +862,12 @@ public class FakeApi { /** * To test \"client\" model (asynchronously) * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call testClientModelAsync(Client client, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call testClientModelAsync(Client body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -888,7 +888,7 @@ public class FakeApi { }; } - com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(client, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(body, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -1521,14 +1521,14 @@ public class FakeApi { } /** * Build call for testInlineAdditionalProperties - * @param requestBody request body (required) + * @param param request body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call testInlineAdditionalPropertiesCall(Map requestBody, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = requestBody; + public com.squareup.okhttp.Call testInlineAdditionalPropertiesCall(Map param, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = param; // create path and map variables String localVarPath = "/fake/inline-additionalProperties"; @@ -1568,15 +1568,15 @@ public class FakeApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call testInlineAdditionalPropertiesValidateBeforeCall(Map requestBody, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call testInlineAdditionalPropertiesValidateBeforeCall(Map param, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - throw new ApiException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties(Async)"); + // verify the required parameter 'param' is set + if (param == null) { + throw new ApiException("Missing the required parameter 'param' when calling testInlineAdditionalProperties(Async)"); } - com.squareup.okhttp.Call call = testInlineAdditionalPropertiesCall(requestBody, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testInlineAdditionalPropertiesCall(param, progressListener, progressRequestListener); return call; } @@ -1584,34 +1584,34 @@ public class FakeApi { /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void testInlineAdditionalProperties(Map requestBody) throws ApiException { - testInlineAdditionalPropertiesWithHttpInfo(requestBody); + public void testInlineAdditionalProperties(Map param) throws ApiException { + testInlineAdditionalPropertiesWithHttpInfo(param); } /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws ApiException { - com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(requestBody, null, null); + public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { + com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(param, null, null); return apiClient.execute(call); } /** * test inline additionalProperties (asynchronously) * - * @param requestBody request body (required) + * @param param request body (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call testInlineAdditionalPropertiesAsync(Map requestBody, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call testInlineAdditionalPropertiesAsync(Map param, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1632,7 +1632,7 @@ public class FakeApi { }; } - com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(requestBody, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(param, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index fee24a345ed..9fe1f2fabf6 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -56,14 +56,14 @@ public class FakeClassnameTags123Api { /** * Build call for testClassname - * @param client client model (required) + * @param body client model (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call testClassnameCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = client; + public com.squareup.okhttp.Call testClassnameCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake_classname_test"; @@ -103,15 +103,15 @@ public class FakeClassnameTags123Api { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call testClassnameValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call testClassnameValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException("Missing the required parameter 'client' when calling testClassname(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling testClassname(Async)"); } - com.squareup.okhttp.Call call = testClassnameCall(client, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testClassnameCall(body, progressListener, progressRequestListener); return call; } @@ -119,24 +119,24 @@ public class FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Client * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public Client testClassname(Client client) throws ApiException { - ApiResponse resp = testClassnameWithHttpInfo(client); + public Client testClassname(Client body) throws ApiException { + ApiResponse resp = testClassnameWithHttpInfo(body); return resp.getData(); } /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return ApiResponse<Client> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse testClassnameWithHttpInfo(Client client) throws ApiException { - com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(client, null, null); + public ApiResponse testClassnameWithHttpInfo(Client body) throws ApiException { + com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(body, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -144,12 +144,12 @@ public class FakeClassnameTags123Api { /** * To test class name in snake case (asynchronously) * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call testClassnameAsync(Client client, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call testClassnameAsync(Client body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -170,7 +170,7 @@ public class FakeClassnameTags123Api { }; } - com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(client, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(body, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/PetApi.java index 7f5e5a3b4d2..4368d7b34e5 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/PetApi.java @@ -58,14 +58,14 @@ public class PetApi { /** * Build call for addPet - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call addPetCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = pet; + public com.squareup.okhttp.Call addPetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/pet"; @@ -105,15 +105,15 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call addPetValidateBeforeCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call addPetValidateBeforeCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException("Missing the required parameter 'pet' when calling addPet(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling addPet(Async)"); } - com.squareup.okhttp.Call call = addPetCall(pet, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = addPetCall(body, progressListener, progressRequestListener); return call; } @@ -121,34 +121,34 @@ public class PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void addPet(Pet pet) throws ApiException { - addPetWithHttpInfo(pet); + public void addPet(Pet body) throws ApiException { + addPetWithHttpInfo(body); } /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException { - com.squareup.okhttp.Call call = addPetValidateBeforeCall(pet, null, null); + public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { + com.squareup.okhttp.Call call = addPetValidateBeforeCall(body, null, null); return apiClient.execute(call); } /** * Add a new pet to the store (asynchronously) * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call addPetAsync(Pet pet, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call addPetAsync(Pet body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -169,7 +169,7 @@ public class PetApi { }; } - com.squareup.okhttp.Call call = addPetValidateBeforeCall(pet, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = addPetValidateBeforeCall(body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } @@ -682,14 +682,14 @@ public class PetApi { } /** * Build call for updatePet - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call updatePetCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = pet; + public com.squareup.okhttp.Call updatePetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/pet"; @@ -729,15 +729,15 @@ public class PetApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call updatePetValidateBeforeCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call updatePetValidateBeforeCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException("Missing the required parameter 'pet' when calling updatePet(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling updatePet(Async)"); } - com.squareup.okhttp.Call call = updatePetCall(pet, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = updatePetCall(body, progressListener, progressRequestListener); return call; } @@ -745,34 +745,34 @@ public class PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void updatePet(Pet pet) throws ApiException { - updatePetWithHttpInfo(pet); + public void updatePet(Pet body) throws ApiException { + updatePetWithHttpInfo(body); } /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException { - com.squareup.okhttp.Call call = updatePetValidateBeforeCall(pet, null, null); + public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { + com.squareup.okhttp.Call call = updatePetValidateBeforeCall(body, null, null); return apiClient.execute(call); } /** * Update an existing pet (asynchronously) * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call updatePetAsync(Pet pet, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call updatePetAsync(Pet body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -793,7 +793,7 @@ public class PetApi { }; } - com.squareup.okhttp.Call call = updatePetValidateBeforeCall(pet, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = updatePetValidateBeforeCall(body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/StoreApi.java index c9924191862..e03b7683588 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/StoreApi.java @@ -408,14 +408,14 @@ public class StoreApi { } /** * Build call for placeOrder - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call placeOrderCall(Order order, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = order; + public com.squareup.okhttp.Call placeOrderCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/store/order"; @@ -455,15 +455,15 @@ public class StoreApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call placeOrderValidateBeforeCall(Order order, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call placeOrderValidateBeforeCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'order' is set - if (order == null) { - throw new ApiException("Missing the required parameter 'order' when calling placeOrder(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling placeOrder(Async)"); } - com.squareup.okhttp.Call call = placeOrderCall(order, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = placeOrderCall(body, progressListener, progressRequestListener); return call; } @@ -471,24 +471,24 @@ public class StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Order * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public Order placeOrder(Order order) throws ApiException { - ApiResponse resp = placeOrderWithHttpInfo(order); + public Order placeOrder(Order body) throws ApiException { + ApiResponse resp = placeOrderWithHttpInfo(body); return resp.getData(); } /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return ApiResponse<Order> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse placeOrderWithHttpInfo(Order order) throws ApiException { - com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(order, null, null); + public ApiResponse placeOrderWithHttpInfo(Order body) throws ApiException { + com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(body, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -496,12 +496,12 @@ public class StoreApi { /** * Place an order for a pet (asynchronously) * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call placeOrderAsync(Order order, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call placeOrderAsync(Order body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -522,7 +522,7 @@ public class StoreApi { }; } - com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(order, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(body, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/UserApi.java index ffb2e6bd52c..82e7c61a83a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/UserApi.java @@ -56,14 +56,14 @@ public class UserApi { /** * Build call for createUser - * @param user Created user object (required) + * @param body Created user object (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call createUserCall(User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = user; + public com.squareup.okhttp.Call createUserCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/user"; @@ -103,15 +103,15 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createUserValidateBeforeCall(User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createUserValidateBeforeCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createUser(Async)"); } - com.squareup.okhttp.Call call = createUserCall(user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createUserCall(body, progressListener, progressRequestListener); return call; } @@ -119,34 +119,34 @@ public class UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void createUser(User user) throws ApiException { - createUserWithHttpInfo(user); + public void createUser(User body) throws ApiException { + createUserWithHttpInfo(body); } /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse createUserWithHttpInfo(User user) throws ApiException { - com.squareup.okhttp.Call call = createUserValidateBeforeCall(user, null, null); + public ApiResponse createUserWithHttpInfo(User body) throws ApiException { + com.squareup.okhttp.Call call = createUserValidateBeforeCall(body, null, null); return apiClient.execute(call); } /** * Create user (asynchronously) * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call createUserAsync(User user, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createUserAsync(User body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -167,20 +167,20 @@ public class UserApi { }; } - com.squareup.okhttp.Call call = createUserValidateBeforeCall(user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createUserValidateBeforeCall(body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** * Build call for createUsersWithArrayInput - * @param user List of user object (required) + * @param body List of user object (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call createUsersWithArrayInputCall(List user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = user; + public com.squareup.okhttp.Call createUsersWithArrayInputCall(List body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/user/createWithArray"; @@ -220,15 +220,15 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createUsersWithArrayInputValidateBeforeCall(List user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createUsersWithArrayInputValidateBeforeCall(List body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException("Missing the required parameter 'user' when calling createUsersWithArrayInput(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createUsersWithArrayInput(Async)"); } - com.squareup.okhttp.Call call = createUsersWithArrayInputCall(user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createUsersWithArrayInputCall(body, progressListener, progressRequestListener); return call; } @@ -236,34 +236,34 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void createUsersWithArrayInput(List user) throws ApiException { - createUsersWithArrayInputWithHttpInfo(user); + public void createUsersWithArrayInput(List body) throws ApiException { + createUsersWithArrayInputWithHttpInfo(body); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse createUsersWithArrayInputWithHttpInfo(List user) throws ApiException { - com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(user, null, null); + public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { + com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(body, null, null); return apiClient.execute(call); } /** * Creates list of users with given input array (asynchronously) * - * @param user List of user object (required) + * @param body List of user object (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call createUsersWithArrayInputAsync(List user, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createUsersWithArrayInputAsync(List body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -284,20 +284,20 @@ public class UserApi { }; } - com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** * Build call for createUsersWithListInput - * @param user List of user object (required) + * @param body List of user object (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call createUsersWithListInputCall(List user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = user; + public com.squareup.okhttp.Call createUsersWithListInputCall(List body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/user/createWithList"; @@ -337,15 +337,15 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createUsersWithListInputValidateBeforeCall(List user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createUsersWithListInputValidateBeforeCall(List body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException("Missing the required parameter 'user' when calling createUsersWithListInput(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createUsersWithListInput(Async)"); } - com.squareup.okhttp.Call call = createUsersWithListInputCall(user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createUsersWithListInputCall(body, progressListener, progressRequestListener); return call; } @@ -353,34 +353,34 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void createUsersWithListInput(List user) throws ApiException { - createUsersWithListInputWithHttpInfo(user); + public void createUsersWithListInput(List body) throws ApiException { + createUsersWithListInputWithHttpInfo(body); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse createUsersWithListInputWithHttpInfo(List user) throws ApiException { - com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(user, null, null); + public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { + com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(body, null, null); return apiClient.execute(call); } /** * Creates list of users with given input array (asynchronously) * - * @param user List of user object (required) + * @param body List of user object (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call createUsersWithListInputAsync(List user, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createUsersWithListInputAsync(List body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -401,7 +401,7 @@ public class UserApi { }; } - com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } @@ -894,14 +894,14 @@ public class UserApi { /** * Build call for updateUser * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call updateUserCall(String username, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = user; + public com.squareup.okhttp.Call updateUserCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/user/{username}" @@ -942,20 +942,20 @@ public class UserApi { } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call updateUserValidateBeforeCall(String username, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call updateUserValidateBeforeCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException("Missing the required parameter 'user' when calling updateUser(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling updateUser(Async)"); } - com.squareup.okhttp.Call call = updateUserCall(username, user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = updateUserCall(username, body, progressListener, progressRequestListener); return call; } @@ -964,23 +964,23 @@ public class UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void updateUser(String username, User user) throws ApiException { - updateUserWithHttpInfo(username, user); + public void updateUser(String username, User body) throws ApiException { + updateUserWithHttpInfo(username, body); } /** * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { - com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, user, null, null); + public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { + com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, body, null, null); return apiClient.execute(call); } @@ -988,12 +988,12 @@ public class UserApi { * Updated user (asynchronously) * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call updateUserAsync(String username, User user, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call updateUserAsync(String username, User body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1014,7 +1014,7 @@ public class UserApi { }; } - com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, user, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, body, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } diff --git a/samples/client/petstore/java/rest-assured/docs/AnotherFakeApi.md b/samples/client/petstore/java/rest-assured/docs/AnotherFakeApi.md index 8ac4b3cb4dc..8763b590990 100644 --- a/samples/client/petstore/java/rest-assured/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/rest-assured/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -27,14 +27,14 @@ AnotherFakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSuppl .setBaseUri("http://petstore.swagger.io:80/v2"))).anotherFake(); api.call123testSpecialTags() - .body(client).execute(r -> r.prettyPeek()); + .body(body).execute(r -> r.prettyPeek()); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/rest-assured/docs/FakeApi.md b/samples/client/petstore/java/rest-assured/docs/FakeApi.md index 153e5030c27..8cc93c83d8b 100644 --- a/samples/client/petstore/java/rest-assured/docs/FakeApi.md +++ b/samples/client/petstore/java/rest-assured/docs/FakeApi.md @@ -61,7 +61,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -85,7 +85,7 @@ api.fakeOuterCompositeSerialize().execute(r -> r.prettyPeek()); 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 @@ -184,7 +184,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -202,14 +202,14 @@ FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier( .setBaseUri("http://petstore.swagger.io:80/v2"))).fake(); api.testBodyWithFileSchema() - .body(fileSchemaTestClass).execute(r -> r.prettyPeek()); + .body(body).execute(r -> r.prettyPeek()); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -226,7 +226,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -243,7 +243,7 @@ FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier( api.testBodyWithQueryParams() .queryQuery(query) - .body(user).execute(r -> r.prettyPeek()); + .body(body).execute(r -> r.prettyPeek()); ``` ### Parameters @@ -251,7 +251,7 @@ api.testBodyWithQueryParams() Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -268,7 +268,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -286,14 +286,14 @@ FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier( .setBaseUri("http://petstore.swagger.io:80/v2"))).fake(); api.testClientModel() - .body(client).execute(r -> r.prettyPeek()); + .body(body).execute(r -> r.prettyPeek()); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -465,7 +465,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -481,14 +481,14 @@ FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier( .setBaseUri("http://petstore.swagger.io:80/v2"))).fake(); api.testInlineAdditionalProperties() - .body(requestBody).execute(r -> r.prettyPeek()); + .body(param).execute(r -> r.prettyPeek()); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/rest-assured/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/rest-assured/docs/FakeClassnameTags123Api.md index 798a73e3d0f..7aa78d36b35 100644 --- a/samples/client/petstore/java/rest-assured/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/rest-assured/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -27,14 +27,14 @@ FakeClassnameTags123Api api = ApiClient.api(ApiClient.Config.apiConfig().withReq .setBaseUri("http://petstore.swagger.io:80/v2"))).fakeClassnameTags123(); api.testClassname() - .body(client).execute(r -> r.prettyPeek()); + .body(body).execute(r -> r.prettyPeek()); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/rest-assured/docs/PetApi.md b/samples/client/petstore/java/rest-assured/docs/PetApi.md index 66e26eceb35..e72ab3ae7db 100644 --- a/samples/client/petstore/java/rest-assured/docs/PetApi.md +++ b/samples/client/petstore/java/rest-assured/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -33,14 +33,14 @@ PetApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier( .setBaseUri("http://petstore.swagger.io:80/v2"))).pet(); api.addPet() - .body(pet).execute(r -> r.prettyPeek()); + .body(body).execute(r -> r.prettyPeek()); ``` ### Parameters 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 @@ -224,7 +224,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -240,14 +240,14 @@ PetApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier( .setBaseUri("http://petstore.swagger.io:80/v2"))).pet(); api.updatePet() - .body(pet).execute(r -> r.prettyPeek()); + .body(body).execute(r -> r.prettyPeek()); ``` ### Parameters 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/java/rest-assured/docs/StoreApi.md b/samples/client/petstore/java/rest-assured/docs/StoreApi.md index 1b31674380d..2fc7a8ebbbf 100644 --- a/samples/client/petstore/java/rest-assured/docs/StoreApi.md +++ b/samples/client/petstore/java/rest-assured/docs/StoreApi.md @@ -134,7 +134,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -150,14 +150,14 @@ StoreApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier( .setBaseUri("http://petstore.swagger.io:80/v2"))).store(); api.placeOrder() - .body(order).execute(r -> r.prettyPeek()); + .body(body).execute(r -> r.prettyPeek()); ``` ### Parameters 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/java/rest-assured/docs/UserApi.md b/samples/client/petstore/java/rest-assured/docs/UserApi.md index 484d9cb95cc..5b581cb9275 100644 --- a/samples/client/petstore/java/rest-assured/docs/UserApi.md +++ b/samples/client/petstore/java/rest-assured/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -34,14 +34,14 @@ UserApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier( .setBaseUri("http://petstore.swagger.io:80/v2"))).user(); api.createUser() - .body(user).execute(r -> r.prettyPeek()); + .body(body).execute(r -> r.prettyPeek()); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -58,7 +58,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -74,14 +74,14 @@ UserApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier( .setBaseUri("http://petstore.swagger.io:80/v2"))).user(); api.createUsersWithArrayInput() - .body(user).execute(r -> r.prettyPeek()); + .body(body).execute(r -> r.prettyPeek()); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -98,7 +98,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,14 +114,14 @@ UserApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier( .setBaseUri("http://petstore.swagger.io:80/v2"))).user(); api.createUsersWithListInput() - .body(user).execute(r -> r.prettyPeek()); + .body(body).execute(r -> r.prettyPeek()); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -298,7 +298,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -317,7 +317,7 @@ UserApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier( api.updateUser() .usernamePath(username) - .body(user).execute(r -> r.prettyPeek()); + .body(body).execute(r -> r.prettyPeek()); ``` ### Parameters @@ -325,7 +325,7 @@ api.updateUser() 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/java/rest-assured/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 0128eed22b5..5fc293a9ec1 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -113,11 +113,11 @@ public class AnotherFakeApi { } /** - * @param client (Client) client model (required) + * @param body (Client) client model (required) * @return operation */ - public Call123testSpecialTagsOper body(Client client) { - reqSpec.setBody(client); + public Call123testSpecialTagsOper body(Client body) { + reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java index ac8e81a6c37..00916c6d271 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java @@ -303,11 +303,11 @@ public class FakeApi { } /** - * @param outerComposite (OuterComposite) Input composite as post body (optional) + * @param body (OuterComposite) Input composite as post body (optional) * @return operation */ - public FakeOuterCompositeSerializeOper body(OuterComposite outerComposite) { - reqSpec.setBody(outerComposite); + public FakeOuterCompositeSerializeOper body(OuterComposite body) { + reqSpec.setBody(body); return this; } @@ -505,11 +505,11 @@ public class FakeApi { } /** - * @param fileSchemaTestClass (FileSchemaTestClass) (required) + * @param body (FileSchemaTestClass) (required) * @return operation */ - public TestBodyWithFileSchemaOper body(FileSchemaTestClass fileSchemaTestClass) { - reqSpec.setBody(fileSchemaTestClass); + public TestBodyWithFileSchemaOper body(FileSchemaTestClass body) { + reqSpec.setBody(body); return this; } @@ -566,11 +566,11 @@ public class FakeApi { } /** - * @param user (User) (required) + * @param body (User) (required) * @return operation */ - public TestBodyWithQueryParamsOper body(User user) { - reqSpec.setBody(user); + public TestBodyWithQueryParamsOper body(User body) { + reqSpec.setBody(body); return this; } @@ -648,11 +648,11 @@ public class FakeApi { } /** - * @param client (Client) client model (required) + * @param body (Client) client model (required) * @return operation */ - public TestClientModelOper body(Client client) { - reqSpec.setBody(client); + public TestClientModelOper body(Client body) { + reqSpec.setBody(body); return this; } @@ -1193,11 +1193,11 @@ public class FakeApi { } /** - * @param requestBody (Map<String, String>) request body (required) + * @param param (Map<String, String>) request body (required) * @return operation */ - public TestInlineAdditionalPropertiesOper body(Map requestBody) { - reqSpec.setBody(requestBody); + public TestInlineAdditionalPropertiesOper body(Map param) { + reqSpec.setBody(param); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index beb30b39339..0f6a2cd251f 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -113,11 +113,11 @@ public class FakeClassnameTags123Api { } /** - * @param client (Client) client model (required) + * @param body (Client) client model (required) * @return operation */ - public TestClassnameOper body(Client client) { - reqSpec.setBody(client); + public TestClassnameOper body(Client body) { + reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/PetApi.java index 2818336f7b6..0286725dc3c 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/PetApi.java @@ -191,11 +191,11 @@ public class PetApi { } /** - * @param pet (Pet) Pet object that needs to be added to the store (required) + * @param body (Pet) Pet object that needs to be added to the store (required) * @return operation */ - public AddPetOper body(Pet pet) { - reqSpec.setBody(pet); + public AddPetOper body(Pet body) { + reqSpec.setBody(body); return this; } @@ -542,11 +542,11 @@ public class PetApi { } /** - * @param pet (Pet) Pet object that needs to be added to the store (required) + * @param body (Pet) Pet object that needs to be added to the store (required) * @return operation */ - public UpdatePetOper body(Pet pet) { - reqSpec.setBody(pet); + public UpdatePetOper body(Pet body) { + reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/StoreApi.java index 3db2be24e47..4893da831ce 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/StoreApi.java @@ -340,11 +340,11 @@ public class StoreApi { } /** - * @param order (Order) order placed for purchasing the pet (required) + * @param body (Order) order placed for purchasing the pet (required) * @return operation */ - public PlaceOrderOper body(Order order) { - reqSpec.setBody(order); + public PlaceOrderOper body(Order body) { + reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/UserApi.java index ccbc21769a4..cfb138b307b 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/UserApi.java @@ -177,11 +177,11 @@ public class UserApi { } /** - * @param user (User) Created user object (required) + * @param body (User) Created user object (required) * @return operation */ - public CreateUserOper body(User user) { - reqSpec.setBody(user); + public CreateUserOper body(User body) { + reqSpec.setBody(body); return this; } @@ -237,11 +237,11 @@ public class UserApi { } /** - * @param user (List<User>) List of user object (required) + * @param body (List<User>) List of user object (required) * @return operation */ - public CreateUsersWithArrayInputOper body(List user) { - reqSpec.setBody(user); + public CreateUsersWithArrayInputOper body(List body) { + reqSpec.setBody(body); return this; } @@ -297,11 +297,11 @@ public class UserApi { } /** - * @param user (List<User>) List of user object (required) + * @param body (List<User>) List of user object (required) * @return operation */ - public CreateUsersWithListInputOper body(List user) { - reqSpec.setBody(user); + public CreateUsersWithListInputOper body(List body) { + reqSpec.setBody(body); return this; } @@ -624,11 +624,11 @@ public class UserApi { } /** - * @param user (User) Updated user object (required) + * @param body (User) Updated user object (required) * @return operation */ - public UpdateUserOper body(User user) { - reqSpec.setBody(user); + public UpdateUserOper body(User body) { + reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/resteasy/docs/AnotherFakeApi.md b/samples/client/petstore/java/resteasy/docs/AnotherFakeApi.md index a618e3928c9..4a8546e0c16 100644 --- a/samples/client/petstore/java/resteasy/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/resteasy/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/resteasy/docs/FakeApi.md b/samples/client/petstore/java/resteasy/docs/FakeApi.md index 62046473c1f..8e3385cc83d 100644 --- a/samples/client/petstore/java/resteasy/docs/FakeApi.md +++ b/samples/client/petstore/java/resteasy/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/resteasy/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/resteasy/docs/FakeClassnameTags123Api.md index 89cd0fb3f73..873b7493623 100644 --- a/samples/client/petstore/java/resteasy/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/resteasy/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/resteasy/docs/PetApi.md b/samples/client/petstore/java/resteasy/docs/PetApi.md index 8d621d1682a..fa157be7012 100644 --- a/samples/client/petstore/java/resteasy/docs/PetApi.md +++ b/samples/client/petstore/java/resteasy/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/resteasy/docs/StoreApi.md b/samples/client/petstore/java/resteasy/docs/StoreApi.md index 578e086a3e1..30d782f82d9 100644 --- a/samples/client/petstore/java/resteasy/docs/StoreApi.md +++ b/samples/client/petstore/java/resteasy/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/resteasy/docs/UserApi.md b/samples/client/petstore/java/resteasy/docs/UserApi.md index b7b880585f7..5969abd518d 100644 --- a/samples/client/petstore/java/resteasy/docs/UserApi.md +++ b/samples/client/petstore/java/resteasy/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/resteasy/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 57fa4a98a85..57113725de9 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -37,16 +37,16 @@ public class AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return a {@code Client} * @throws ApiException if fails to make API call */ - public Client call123testSpecialTags(Client client) throws ApiException { - Object localVarPostBody = client; + public Client call123testSpecialTags(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags"); } // create path and map variables diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java index dff8c8271e8..e0640c57d65 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java @@ -80,12 +80,12 @@ public class FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return a {@code OuterComposite} * @throws ApiException if fails to make API call */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { - Object localVarPostBody = outerComposite; + public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/fake/outer/composite".replaceAll("\\{format\\}","json"); @@ -188,15 +188,15 @@ public class FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { - Object localVarPostBody = fileSchemaTestClass; + public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema"); } // create path and map variables @@ -229,20 +229,20 @@ public class FakeApi { * * * @param query (required) - * @param user (required) + * @param body (required) * @throws ApiException if fails to make API call */ - public void testBodyWithQueryParams(String query, User user) throws ApiException { - Object localVarPostBody = user; + public void testBodyWithQueryParams(String query, User body) throws ApiException { + Object localVarPostBody = body; // verify the required parameter 'query' is set if (query == null) { throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams"); } // create path and map variables @@ -275,16 +275,16 @@ public class FakeApi { /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return a {@code Client} * @throws ApiException if fails to make API call */ - public Client testClientModel(Client client) throws ApiException { - Object localVarPostBody = client; + public Client testClientModel(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel"); } // create path and map variables @@ -529,15 +529,15 @@ if (booleanGroup != null) /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @throws ApiException if fails to make API call */ - public void testInlineAdditionalProperties(Map requestBody) throws ApiException { - Object localVarPostBody = requestBody; + public void testInlineAdditionalProperties(Map param) throws ApiException { + Object localVarPostBody = param; - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) { + throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties"); } // create path and map variables diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 62edf470c1e..8665a51dc95 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -37,16 +37,16 @@ public class FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return a {@code Client} * @throws ApiException if fails to make API call */ - public Client testClassname(Client client) throws ApiException { - Object localVarPostBody = client; + public Client testClassname(Client body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname"); } // create path and map variables diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/PetApi.java index 8182ba71658..bde2cae971d 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/PetApi.java @@ -39,15 +39,15 @@ public class PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void addPet(Pet pet) throws ApiException { - Object localVarPostBody = pet; + public void addPet(Pet body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling addPet"); } // create path and map variables @@ -251,15 +251,15 @@ public class PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @throws ApiException if fails to make API call */ - public void updatePet(Pet pet) throws ApiException { - Object localVarPostBody = pet; + public void updatePet(Pet body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet"); } // create path and map variables diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/StoreApi.java index 1ecb74e5972..61ecbcd45bd 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/StoreApi.java @@ -155,16 +155,16 @@ public class StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return a {@code Order} * @throws ApiException if fails to make API call */ - public Order placeOrder(Order order) throws ApiException { - Object localVarPostBody = order; + public Order placeOrder(Order body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'order' is set - if (order == null) { - throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder"); } // create path and map variables diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/UserApi.java index 9fc2750b640..c52ebbc6eed 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/UserApi.java @@ -37,15 +37,15 @@ public class UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @throws ApiException if fails to make API call */ - public void createUser(User user) throws ApiException { - Object localVarPostBody = user; + public void createUser(User body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUser"); } // create path and map variables @@ -77,15 +77,15 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithArrayInput(List user) throws ApiException { - Object localVarPostBody = user; + public void createUsersWithArrayInput(List body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput"); } // create path and map variables @@ -117,15 +117,15 @@ public class UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @throws ApiException if fails to make API call */ - public void createUsersWithListInput(List user) throws ApiException { - Object localVarPostBody = user; + public void createUsersWithListInput(List body) throws ApiException { + Object localVarPostBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput"); } // create path and map variables @@ -324,20 +324,20 @@ public class UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @throws ApiException if fails to make API call */ - public void updateUser(String username, User user) throws ApiException { - Object localVarPostBody = user; + public void updateUser(String username, User body) throws ApiException { + Object localVarPostBody = body; // verify the required parameter 'username' is set if (username == null) { throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser"); } // create path and map variables diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/AnotherFakeApi.md b/samples/client/petstore/java/resttemplate-withXml/docs/AnotherFakeApi.md index a618e3928c9..4a8546e0c16 100644 --- a/samples/client/petstore/java/resttemplate-withXml/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/resttemplate-withXml/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md b/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md index 62046473c1f..8e3385cc83d 100644 --- a/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md +++ b/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/resttemplate-withXml/docs/FakeClassnameTags123Api.md index 89cd0fb3f73..873b7493623 100644 --- a/samples/client/petstore/java/resttemplate-withXml/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/resttemplate-withXml/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/PetApi.md b/samples/client/petstore/java/resttemplate-withXml/docs/PetApi.md index 8d621d1682a..fa157be7012 100644 --- a/samples/client/petstore/java/resttemplate-withXml/docs/PetApi.md +++ b/samples/client/petstore/java/resttemplate-withXml/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/resttemplate-withXml/docs/StoreApi.md b/samples/client/petstore/java/resttemplate-withXml/docs/StoreApi.md index 578e086a3e1..30d782f82d9 100644 --- a/samples/client/petstore/java/resttemplate-withXml/docs/StoreApi.md +++ b/samples/client/petstore/java/resttemplate-withXml/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/resttemplate-withXml/docs/UserApi.md b/samples/client/petstore/java/resttemplate-withXml/docs/UserApi.md index b7b880585f7..5969abd518d 100644 --- a/samples/client/petstore/java/resttemplate-withXml/docs/UserApi.md +++ b/samples/client/petstore/java/resttemplate-withXml/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index d14b1a53a83..0c41b88208f 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -50,16 +50,16 @@ public class AnotherFakeApi { * To test special tags * To test special tags and operation ID starting with number *

      200 - successful operation - * @param client client model + * @param body client model * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client call123testSpecialTags(Client client) throws RestClientException { - Object postBody = client; + public Client call123testSpecialTags(Client body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling call123testSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling call123testSpecialTags"); } String path = UriComponentsBuilder.fromPath("/another-fake/dummy").build().toUriString(); diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java index 725ad066104..caf022bdd19 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java @@ -86,12 +86,12 @@ public class FakeApi { * * Test serialization of object with outer number type *

      200 - Output composite - * @param outerComposite Input composite as post body + * @param body Input composite as post body * @return OuterComposite * @throws RestClientException if an error occurs while attempting to invoke the API */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws RestClientException { - Object postBody = outerComposite; + public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws RestClientException { + Object postBody = body; String path = UriComponentsBuilder.fromPath("/fake/outer/composite").build().toUriString(); @@ -173,15 +173,15 @@ public class FakeApi { * * For this test, the body for this request much reference a schema named `File`. *

      200 - Success - * @param fileSchemaTestClass The fileSchemaTestClass parameter + * @param body The body parameter * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws RestClientException { - Object postBody = fileSchemaTestClass; + public void testBodyWithFileSchema(FileSchemaTestClass body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testBodyWithFileSchema"); } String path = UriComponentsBuilder.fromPath("/fake/body-with-file-schema").build().toUriString(); @@ -207,20 +207,20 @@ public class FakeApi { * *

      200 - Success * @param query The query parameter - * @param user The user parameter + * @param body The body parameter * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testBodyWithQueryParams(String query, User user) throws RestClientException { - Object postBody = user; + public void testBodyWithQueryParams(String query, User body) throws RestClientException { + Object postBody = body; // verify the required parameter 'query' is set if (query == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling testBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testBodyWithQueryParams"); } String path = UriComponentsBuilder.fromPath("/fake/body-with-query-params").build().toUriString(); @@ -247,16 +247,16 @@ public class FakeApi { * To test \"client\" model * To test \"client\" model *

      200 - successful operation - * @param client client model + * @param body client model * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client testClientModel(Client client) throws RestClientException { - Object postBody = client; + public Client testClientModel(Client body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling testClientModel"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testClientModel"); } String path = UriComponentsBuilder.fromPath("/fake").build().toUriString(); @@ -481,15 +481,15 @@ public class FakeApi { * test inline additionalProperties * *

      200 - successful operation - * @param requestBody request body + * @param param request body * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testInlineAdditionalProperties(Map requestBody) throws RestClientException { - Object postBody = requestBody; + public void testInlineAdditionalProperties(Map param) throws RestClientException { + Object postBody = param; - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'param' when calling testInlineAdditionalProperties"); } String path = UriComponentsBuilder.fromPath("/fake/inline-additionalProperties").build().toUriString(); diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 6f9c1ebb5d5..6e143bcb13b 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -50,16 +50,16 @@ public class FakeClassnameTags123Api { * To test class name in snake case * To test class name in snake case *

      200 - successful operation - * @param client client model + * @param body client model * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client testClassname(Client client) throws RestClientException { - Object postBody = client; + public Client testClassname(Client body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling testClassname"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testClassname"); } String path = UriComponentsBuilder.fromPath("/fake_classname_test").build().toUriString(); diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/PetApi.java index 6dc75c0845b..fc786ed3ba5 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/PetApi.java @@ -52,15 +52,15 @@ public class PetApi { * Add a new pet to the store * *

      405 - Invalid input - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void addPet(Pet pet) throws RestClientException { - Object postBody = pet; + public void addPet(Pet body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pet' when calling addPet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling addPet"); } String path = UriComponentsBuilder.fromPath("/pet").build().toUriString(); @@ -238,15 +238,15 @@ public class PetApi { *

      400 - Invalid ID supplied *

      404 - Pet not found *

      405 - Validation exception - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePet(Pet pet) throws RestClientException { - Object postBody = pet; + public void updatePet(Pet body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pet' when calling updatePet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling updatePet"); } String path = UriComponentsBuilder.fromPath("/pet").build().toUriString(); diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/StoreApi.java index abce9547b3d..ae3c0f770b2 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/StoreApi.java @@ -153,16 +153,16 @@ public class StoreApi { * *

      200 - successful operation *

      400 - Invalid Order - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientException { - Object postBody = order; + public Order placeOrder(Order body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'order' is set - if (order == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'order' when calling placeOrder"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling placeOrder"); } String path = UriComponentsBuilder.fromPath("/store/order").build().toUriString(); diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/UserApi.java index a3a67216f24..024f3247456 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/UserApi.java @@ -50,15 +50,15 @@ public class UserApi { * Create user * This can only be done by the logged in user. *

      0 - successful operation - * @param user Created user object + * @param body Created user object * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientException { - Object postBody = user; + public void createUser(User body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling createUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling createUser"); } String path = UriComponentsBuilder.fromPath("/user").build().toUriString(); @@ -81,15 +81,15 @@ public class UserApi { * Creates list of users with given input array * *

      0 - successful operation - * @param user List of user object + * @param body List of user object * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientException { - Object postBody = user; + public void createUsersWithArrayInput(List body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling createUsersWithArrayInput"); } String path = UriComponentsBuilder.fromPath("/user/createWithArray").build().toUriString(); @@ -112,15 +112,15 @@ public class UserApi { * Creates list of users with given input array * *

      0 - successful operation - * @param user List of user object + * @param body List of user object * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientException { - Object postBody = user; + public void createUsersWithListInput(List body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling createUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling createUsersWithListInput"); } String path = UriComponentsBuilder.fromPath("/user/createWithList").build().toUriString(); @@ -288,20 +288,20 @@ public class UserApi { *

      400 - Invalid user supplied *

      404 - User not found * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientException { - Object postBody = user; + public void updateUser(String username, User body) throws RestClientException { + Object postBody = body; // verify the required parameter 'username' is set if (username == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'username' when calling updateUser"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling updateUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling updateUser"); } // create path and map variables diff --git a/samples/client/petstore/java/resttemplate/docs/AnotherFakeApi.md b/samples/client/petstore/java/resttemplate/docs/AnotherFakeApi.md index a618e3928c9..4a8546e0c16 100644 --- a/samples/client/petstore/java/resttemplate/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/resttemplate/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/resttemplate/docs/FakeApi.md b/samples/client/petstore/java/resttemplate/docs/FakeApi.md index 62046473c1f..8e3385cc83d 100644 --- a/samples/client/petstore/java/resttemplate/docs/FakeApi.md +++ b/samples/client/petstore/java/resttemplate/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/resttemplate/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/resttemplate/docs/FakeClassnameTags123Api.md index 89cd0fb3f73..873b7493623 100644 --- a/samples/client/petstore/java/resttemplate/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/resttemplate/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/resttemplate/docs/PetApi.md b/samples/client/petstore/java/resttemplate/docs/PetApi.md index 8d621d1682a..fa157be7012 100644 --- a/samples/client/petstore/java/resttemplate/docs/PetApi.md +++ b/samples/client/petstore/java/resttemplate/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/resttemplate/docs/StoreApi.md b/samples/client/petstore/java/resttemplate/docs/StoreApi.md index 578e086a3e1..30d782f82d9 100644 --- a/samples/client/petstore/java/resttemplate/docs/StoreApi.md +++ b/samples/client/petstore/java/resttemplate/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/resttemplate/docs/UserApi.md b/samples/client/petstore/java/resttemplate/docs/UserApi.md index b7b880585f7..5969abd518d 100644 --- a/samples/client/petstore/java/resttemplate/docs/UserApi.md +++ b/samples/client/petstore/java/resttemplate/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index d14b1a53a83..0c41b88208f 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -50,16 +50,16 @@ public class AnotherFakeApi { * To test special tags * To test special tags and operation ID starting with number *

      200 - successful operation - * @param client client model + * @param body client model * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client call123testSpecialTags(Client client) throws RestClientException { - Object postBody = client; + public Client call123testSpecialTags(Client body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling call123testSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling call123testSpecialTags"); } String path = UriComponentsBuilder.fromPath("/another-fake/dummy").build().toUriString(); diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java index 725ad066104..caf022bdd19 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java @@ -86,12 +86,12 @@ public class FakeApi { * * Test serialization of object with outer number type *

      200 - Output composite - * @param outerComposite Input composite as post body + * @param body Input composite as post body * @return OuterComposite * @throws RestClientException if an error occurs while attempting to invoke the API */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws RestClientException { - Object postBody = outerComposite; + public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws RestClientException { + Object postBody = body; String path = UriComponentsBuilder.fromPath("/fake/outer/composite").build().toUriString(); @@ -173,15 +173,15 @@ public class FakeApi { * * For this test, the body for this request much reference a schema named `File`. *

      200 - Success - * @param fileSchemaTestClass The fileSchemaTestClass parameter + * @param body The body parameter * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws RestClientException { - Object postBody = fileSchemaTestClass; + public void testBodyWithFileSchema(FileSchemaTestClass body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testBodyWithFileSchema"); } String path = UriComponentsBuilder.fromPath("/fake/body-with-file-schema").build().toUriString(); @@ -207,20 +207,20 @@ public class FakeApi { * *

      200 - Success * @param query The query parameter - * @param user The user parameter + * @param body The body parameter * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testBodyWithQueryParams(String query, User user) throws RestClientException { - Object postBody = user; + public void testBodyWithQueryParams(String query, User body) throws RestClientException { + Object postBody = body; // verify the required parameter 'query' is set if (query == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling testBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testBodyWithQueryParams"); } String path = UriComponentsBuilder.fromPath("/fake/body-with-query-params").build().toUriString(); @@ -247,16 +247,16 @@ public class FakeApi { * To test \"client\" model * To test \"client\" model *

      200 - successful operation - * @param client client model + * @param body client model * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client testClientModel(Client client) throws RestClientException { - Object postBody = client; + public Client testClientModel(Client body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling testClientModel"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testClientModel"); } String path = UriComponentsBuilder.fromPath("/fake").build().toUriString(); @@ -481,15 +481,15 @@ public class FakeApi { * test inline additionalProperties * *

      200 - successful operation - * @param requestBody request body + * @param param request body * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testInlineAdditionalProperties(Map requestBody) throws RestClientException { - Object postBody = requestBody; + public void testInlineAdditionalProperties(Map param) throws RestClientException { + Object postBody = param; - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'param' when calling testInlineAdditionalProperties"); } String path = UriComponentsBuilder.fromPath("/fake/inline-additionalProperties").build().toUriString(); diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 6f9c1ebb5d5..6e143bcb13b 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -50,16 +50,16 @@ public class FakeClassnameTags123Api { * To test class name in snake case * To test class name in snake case *

      200 - successful operation - * @param client client model + * @param body client model * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client testClassname(Client client) throws RestClientException { - Object postBody = client; + public Client testClassname(Client body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling testClassname"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testClassname"); } String path = UriComponentsBuilder.fromPath("/fake_classname_test").build().toUriString(); diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/PetApi.java index 6dc75c0845b..fc786ed3ba5 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/PetApi.java @@ -52,15 +52,15 @@ public class PetApi { * Add a new pet to the store * *

      405 - Invalid input - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void addPet(Pet pet) throws RestClientException { - Object postBody = pet; + public void addPet(Pet body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pet' when calling addPet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling addPet"); } String path = UriComponentsBuilder.fromPath("/pet").build().toUriString(); @@ -238,15 +238,15 @@ public class PetApi { *

      400 - Invalid ID supplied *

      404 - Pet not found *

      405 - Validation exception - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePet(Pet pet) throws RestClientException { - Object postBody = pet; + public void updatePet(Pet body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pet' when calling updatePet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling updatePet"); } String path = UriComponentsBuilder.fromPath("/pet").build().toUriString(); diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/StoreApi.java index abce9547b3d..ae3c0f770b2 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/StoreApi.java @@ -153,16 +153,16 @@ public class StoreApi { * *

      200 - successful operation *

      400 - Invalid Order - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientException { - Object postBody = order; + public Order placeOrder(Order body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'order' is set - if (order == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'order' when calling placeOrder"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling placeOrder"); } String path = UriComponentsBuilder.fromPath("/store/order").build().toUriString(); diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/UserApi.java index a3a67216f24..024f3247456 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/UserApi.java @@ -50,15 +50,15 @@ public class UserApi { * Create user * This can only be done by the logged in user. *

      0 - successful operation - * @param user Created user object + * @param body Created user object * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientException { - Object postBody = user; + public void createUser(User body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling createUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling createUser"); } String path = UriComponentsBuilder.fromPath("/user").build().toUriString(); @@ -81,15 +81,15 @@ public class UserApi { * Creates list of users with given input array * *

      0 - successful operation - * @param user List of user object + * @param body List of user object * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientException { - Object postBody = user; + public void createUsersWithArrayInput(List body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling createUsersWithArrayInput"); } String path = UriComponentsBuilder.fromPath("/user/createWithArray").build().toUriString(); @@ -112,15 +112,15 @@ public class UserApi { * Creates list of users with given input array * *

      0 - successful operation - * @param user List of user object + * @param body List of user object * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientException { - Object postBody = user; + public void createUsersWithListInput(List body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling createUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling createUsersWithListInput"); } String path = UriComponentsBuilder.fromPath("/user/createWithList").build().toUriString(); @@ -288,20 +288,20 @@ public class UserApi { *

      400 - Invalid user supplied *

      404 - User not found * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientException { - Object postBody = user; + public void updateUser(String username, User body) throws RestClientException { + Object postBody = body; // verify the required parameter 'username' is set if (username == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'username' when calling updateUser"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling updateUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling updateUser"); } // create path and map variables diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 7a8dfbc3cd9..4e5a62778f9 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -18,24 +18,24 @@ public interface AnotherFakeApi { * To test special tags * Sync method * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Client */ @PATCH("/another-fake/dummy") Client call123testSpecialTags( - @retrofit.http.Body Client client + @retrofit.http.Body Client body ); /** * To test special tags * Async method - * @param client client model (required) + * @param body client model (required) * @param cb callback method */ @PATCH("/another-fake/dummy") void call123testSpecialTags( - @retrofit.http.Body Client client, Callback cb + @retrofit.http.Body Client body, Callback cb ); } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/FakeApi.java index a83105fd0d3..81adce644d6 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/FakeApi.java @@ -49,25 +49,25 @@ public interface FakeApi { * * Sync method * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return OuterComposite */ @POST("/fake/outer/composite") OuterComposite fakeOuterCompositeSerialize( - @retrofit.http.Body OuterComposite outerComposite + @retrofit.http.Body OuterComposite body ); /** * * Async method - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @param cb callback method */ @POST("/fake/outer/composite") void fakeOuterCompositeSerialize( - @retrofit.http.Body OuterComposite outerComposite, Callback cb + @retrofit.http.Body OuterComposite body, Callback cb ); /** * @@ -121,75 +121,75 @@ public interface FakeApi { * * Sync method * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @return Void */ @PUT("/fake/body-with-file-schema") Void testBodyWithFileSchema( - @retrofit.http.Body FileSchemaTestClass fileSchemaTestClass + @retrofit.http.Body FileSchemaTestClass body ); /** * * Async method - * @param fileSchemaTestClass (required) + * @param body (required) * @param cb callback method */ @PUT("/fake/body-with-file-schema") void testBodyWithFileSchema( - @retrofit.http.Body FileSchemaTestClass fileSchemaTestClass, Callback cb + @retrofit.http.Body FileSchemaTestClass body, Callback cb ); /** * * Sync method * * @param query (required) - * @param user (required) + * @param body (required) * @return Void */ @PUT("/fake/body-with-query-params") Void testBodyWithQueryParams( - @retrofit.http.Query("query") String query, @retrofit.http.Body User user + @retrofit.http.Query("query") String query, @retrofit.http.Body User body ); /** * * Async method * @param query (required) - * @param user (required) + * @param body (required) * @param cb callback method */ @PUT("/fake/body-with-query-params") void testBodyWithQueryParams( - @retrofit.http.Query("query") String query, @retrofit.http.Body User user, Callback cb + @retrofit.http.Query("query") String query, @retrofit.http.Body User body, Callback cb ); /** * To test \"client\" model * Sync method * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Client */ @PATCH("/fake") Client testClientModel( - @retrofit.http.Body Client client + @retrofit.http.Body Client body ); /** * To test \"client\" model * Async method - * @param client client model (required) + * @param body client model (required) * @param cb callback method */ @PATCH("/fake") void testClientModel( - @retrofit.http.Body Client client, Callback cb + @retrofit.http.Body Client body, Callback cb ); /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -321,25 +321,25 @@ public interface FakeApi { * test inline additionalProperties * Sync method * - * @param requestBody request body (required) + * @param param request body (required) * @return Void */ @POST("/fake/inline-additionalProperties") Void testInlineAdditionalProperties( - @retrofit.http.Body Map requestBody + @retrofit.http.Body Map param ); /** * test inline additionalProperties * Async method - * @param requestBody request body (required) + * @param param request body (required) * @param cb callback method */ @POST("/fake/inline-additionalProperties") void testInlineAdditionalProperties( - @retrofit.http.Body Map requestBody, Callback cb + @retrofit.http.Body Map param, Callback cb ); /** * test json serialization of form data diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index eda109be4ae..3b95818890a 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -18,24 +18,24 @@ public interface FakeClassnameTags123Api { * To test class name in snake case * Sync method * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Client */ @PATCH("/fake_classname_test") Client testClassname( - @retrofit.http.Body Client client + @retrofit.http.Body Client body ); /** * To test class name in snake case * Async method - * @param client client model (required) + * @param body client model (required) * @param cb callback method */ @PATCH("/fake_classname_test") void testClassname( - @retrofit.http.Body Client client, Callback cb + @retrofit.http.Body Client body, Callback cb ); } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/PetApi.java index 7688e34406e..858b8107bee 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/PetApi.java @@ -20,25 +20,25 @@ public interface PetApi { * Add a new pet to the store * Sync method * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Void */ @POST("/pet") Void addPet( - @retrofit.http.Body Pet pet + @retrofit.http.Body Pet body ); /** * Add a new pet to the store * Async method - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param cb callback method */ @POST("/pet") void addPet( - @retrofit.http.Body Pet pet, Callback cb + @retrofit.http.Body Pet body, Callback cb ); /** * Deletes a pet @@ -142,25 +142,25 @@ public interface PetApi { * Update an existing pet * Sync method * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Void */ @PUT("/pet") Void updatePet( - @retrofit.http.Body Pet pet + @retrofit.http.Body Pet body ); /** * Update an existing pet * Async method - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param cb callback method */ @PUT("/pet") void updatePet( - @retrofit.http.Body Pet pet, Callback cb + @retrofit.http.Body Pet body, Callback cb ); /** * Updates a pet in the store with form data diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/StoreApi.java index 709f5f63565..7a6bea93e82 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/StoreApi.java @@ -87,24 +87,24 @@ public interface StoreApi { * Place an order for a pet * Sync method * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Order */ @POST("/store/order") Order placeOrder( - @retrofit.http.Body Order order + @retrofit.http.Body Order body ); /** * Place an order for a pet * Async method - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @param cb callback method */ @POST("/store/order") void placeOrder( - @retrofit.http.Body Order order, Callback cb + @retrofit.http.Body Order body, Callback cb ); } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/UserApi.java index bf8a362cf5c..b8ba97a19de 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/UserApi.java @@ -18,73 +18,73 @@ public interface UserApi { * Create user * Sync method * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @return Void */ @POST("/user") Void createUser( - @retrofit.http.Body User user + @retrofit.http.Body User body ); /** * Create user * Async method - * @param user Created user object (required) + * @param body Created user object (required) * @param cb callback method */ @POST("/user") void createUser( - @retrofit.http.Body User user, Callback cb + @retrofit.http.Body User body, Callback cb ); /** * Creates list of users with given input array * Sync method * - * @param user List of user object (required) + * @param body List of user object (required) * @return Void */ @POST("/user/createWithArray") Void createUsersWithArrayInput( - @retrofit.http.Body List user + @retrofit.http.Body List body ); /** * Creates list of users with given input array * Async method - * @param user List of user object (required) + * @param body List of user object (required) * @param cb callback method */ @POST("/user/createWithArray") void createUsersWithArrayInput( - @retrofit.http.Body List user, Callback cb + @retrofit.http.Body List body, Callback cb ); /** * Creates list of users with given input array * Sync method * - * @param user List of user object (required) + * @param body List of user object (required) * @return Void */ @POST("/user/createWithList") Void createUsersWithListInput( - @retrofit.http.Body List user + @retrofit.http.Body List body ); /** * Creates list of users with given input array * Async method - * @param user List of user object (required) + * @param body List of user object (required) * @param cb callback method */ @POST("/user/createWithList") void createUsersWithListInput( - @retrofit.http.Body List user, Callback cb + @retrofit.http.Body List body, Callback cb ); /** * Delete user @@ -186,25 +186,25 @@ public interface UserApi { * Sync method * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @return Void */ @PUT("/user/{username}") Void updateUser( - @retrofit.http.Path("username") String username, @retrofit.http.Body User user + @retrofit.http.Path("username") String username, @retrofit.http.Body User body ); /** * Updated user * Async method * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @param cb callback method */ @PUT("/user/{username}") void updateUser( - @retrofit.http.Path("username") String username, @retrofit.http.Body User user, Callback cb + @retrofit.http.Path("username") String username, @retrofit.http.Body User body, Callback cb ); } diff --git a/samples/client/petstore/java/retrofit2-play24/docs/AnotherFakeApi.md b/samples/client/petstore/java/retrofit2-play24/docs/AnotherFakeApi.md index c44a064755c..e2d3546b305 100644 --- a/samples/client/petstore/java/retrofit2-play24/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/retrofit2-play24/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/retrofit2-play24/docs/FakeApi.md b/samples/client/petstore/java/retrofit2-play24/docs/FakeApi.md index 5335c1521aa..9a034514e7c 100644 --- a/samples/client/petstore/java/retrofit2-play24/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2-play24/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/retrofit2-play24/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/retrofit2-play24/docs/FakeClassnameTags123Api.md index d805d10a830..e8f69f8953e 100644 --- a/samples/client/petstore/java/retrofit2-play24/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/retrofit2-play24/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/retrofit2-play24/docs/PetApi.md b/samples/client/petstore/java/retrofit2-play24/docs/PetApi.md index 829565c5db1..9d496e61683 100644 --- a/samples/client/petstore/java/retrofit2-play24/docs/PetApi.md +++ b/samples/client/petstore/java/retrofit2-play24/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/retrofit2-play24/docs/StoreApi.md b/samples/client/petstore/java/retrofit2-play24/docs/StoreApi.md index 06886f6d565..60b3ffae9bf 100644 --- a/samples/client/petstore/java/retrofit2-play24/docs/StoreApi.md +++ b/samples/client/petstore/java/retrofit2-play24/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/retrofit2-play24/docs/UserApi.md b/samples/client/petstore/java/retrofit2-play24/docs/UserApi.md index 170d5027e1a..b8a66f3bc00 100644 --- a/samples/client/petstore/java/retrofit2-play24/docs/UserApi.md +++ b/samples/client/petstore/java/retrofit2-play24/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/retrofit2-play24/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 2e7b01f0557..5af56d72d0d 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -25,7 +25,7 @@ public interface AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Call<Client> */ @Headers({ @@ -33,7 +33,7 @@ public interface AnotherFakeApi { }) @PATCH("another-fake/dummy") F.Promise> call123testSpecialTags( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeApi.java index 88d49bfb020..b0deb92a1e7 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeApi.java @@ -43,12 +43,12 @@ public interface FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return Call<OuterComposite> */ @POST("fake/outer/composite") F.Promise> fakeOuterCompositeSerialize( - @retrofit2.http.Body OuterComposite outerComposite + @retrofit2.http.Body OuterComposite body ); /** @@ -76,7 +76,7 @@ public interface FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @return Call<Void> */ @Headers({ @@ -84,14 +84,14 @@ public interface FakeApi { }) @PUT("fake/body-with-file-schema") F.Promise> testBodyWithFileSchema( - @retrofit2.http.Body FileSchemaTestClass fileSchemaTestClass + @retrofit2.http.Body FileSchemaTestClass body ); /** * * * @param query (required) - * @param user (required) + * @param body (required) * @return Call<Void> */ @Headers({ @@ -99,13 +99,13 @@ public interface FakeApi { }) @PUT("fake/body-with-query-params") F.Promise> testBodyWithQueryParams( - @retrofit2.http.Query("query") String query, @retrofit2.http.Body User user + @retrofit2.http.Query("query") String query, @retrofit2.http.Body User body ); /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Call<Client> */ @Headers({ @@ -113,7 +113,7 @@ public interface FakeApi { }) @PATCH("fake") F.Promise> testClientModel( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); /** @@ -179,7 +179,7 @@ public interface FakeApi { /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @return Call<Void> */ @Headers({ @@ -187,7 +187,7 @@ public interface FakeApi { }) @POST("fake/inline-additionalProperties") F.Promise> testInlineAdditionalProperties( - @retrofit2.http.Body Map requestBody + @retrofit2.http.Body Map param ); /** diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index f6c40a6ba7f..111f24e7b96 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -25,7 +25,7 @@ public interface FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Call<Client> */ @Headers({ @@ -33,7 +33,7 @@ public interface FakeClassnameTags123Api { }) @PATCH("fake_classname_test") F.Promise> testClassname( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/PetApi.java index 95720ad8fec..e2c5e7bfa49 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/PetApi.java @@ -27,7 +27,7 @@ public interface PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Call<Void> */ @Headers({ @@ -35,7 +35,7 @@ public interface PetApi { }) @POST("pet") F.Promise> addPet( - @retrofit2.http.Body Pet pet + @retrofit2.http.Body Pet body ); /** @@ -86,7 +86,7 @@ public interface PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Call<Void> */ @Headers({ @@ -94,7 +94,7 @@ public interface PetApi { }) @PUT("pet") F.Promise> updatePet( - @retrofit2.http.Body Pet pet + @retrofit2.http.Body Pet body ); /** diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/StoreApi.java index 895a22b05d7..92eab00b6eb 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/StoreApi.java @@ -56,12 +56,12 @@ public interface StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Call<Order> */ @POST("store/order") F.Promise> placeOrder( - @retrofit2.http.Body Order order + @retrofit2.http.Body Order body ); } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/UserApi.java index 604b56106ab..3a3d0b974a7 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/UserApi.java @@ -25,34 +25,34 @@ public interface UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @return Call<Void> */ @POST("user") F.Promise> createUser( - @retrofit2.http.Body User user + @retrofit2.http.Body User body ); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Call<Void> */ @POST("user/createWithArray") F.Promise> createUsersWithArrayInput( - @retrofit2.http.Body List user + @retrofit2.http.Body List body ); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Call<Void> */ @POST("user/createWithList") F.Promise> createUsersWithListInput( - @retrofit2.http.Body List user + @retrofit2.http.Body List body ); /** @@ -102,12 +102,12 @@ public interface UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @return Call<Void> */ @PUT("user/{username}") F.Promise> updateUser( - @retrofit2.http.Path("username") String username, @retrofit2.http.Body User user + @retrofit2.http.Path("username") String username, @retrofit2.http.Body User body ); } diff --git a/samples/client/petstore/java/retrofit2-play25/docs/AnotherFakeApi.md b/samples/client/petstore/java/retrofit2-play25/docs/AnotherFakeApi.md index c44a064755c..e2d3546b305 100644 --- a/samples/client/petstore/java/retrofit2-play25/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/retrofit2-play25/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/retrofit2-play25/docs/FakeApi.md b/samples/client/petstore/java/retrofit2-play25/docs/FakeApi.md index 5335c1521aa..9a034514e7c 100644 --- a/samples/client/petstore/java/retrofit2-play25/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2-play25/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/retrofit2-play25/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/retrofit2-play25/docs/FakeClassnameTags123Api.md index d805d10a830..e8f69f8953e 100644 --- a/samples/client/petstore/java/retrofit2-play25/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/retrofit2-play25/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/retrofit2-play25/docs/PetApi.md b/samples/client/petstore/java/retrofit2-play25/docs/PetApi.md index 829565c5db1..9d496e61683 100644 --- a/samples/client/petstore/java/retrofit2-play25/docs/PetApi.md +++ b/samples/client/petstore/java/retrofit2-play25/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/retrofit2-play25/docs/StoreApi.md b/samples/client/petstore/java/retrofit2-play25/docs/StoreApi.md index 06886f6d565..60b3ffae9bf 100644 --- a/samples/client/petstore/java/retrofit2-play25/docs/StoreApi.md +++ b/samples/client/petstore/java/retrofit2-play25/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/retrofit2-play25/docs/UserApi.md b/samples/client/petstore/java/retrofit2-play25/docs/UserApi.md index 170d5027e1a..b8a66f3bc00 100644 --- a/samples/client/petstore/java/retrofit2-play25/docs/UserApi.md +++ b/samples/client/petstore/java/retrofit2-play25/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/retrofit2-play25/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 616c44b0102..b638ac67690 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -25,7 +25,7 @@ public interface AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Call<Client> */ @Headers({ @@ -33,7 +33,7 @@ public interface AnotherFakeApi { }) @PATCH("another-fake/dummy") CompletionStage> call123testSpecialTags( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/FakeApi.java index c542ee4d79c..67a0e9189aa 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/FakeApi.java @@ -43,12 +43,12 @@ public interface FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return Call<OuterComposite> */ @POST("fake/outer/composite") CompletionStage> fakeOuterCompositeSerialize( - @retrofit2.http.Body OuterComposite outerComposite + @retrofit2.http.Body OuterComposite body ); /** @@ -76,7 +76,7 @@ public interface FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @return Call<Void> */ @Headers({ @@ -84,14 +84,14 @@ public interface FakeApi { }) @PUT("fake/body-with-file-schema") CompletionStage> testBodyWithFileSchema( - @retrofit2.http.Body FileSchemaTestClass fileSchemaTestClass + @retrofit2.http.Body FileSchemaTestClass body ); /** * * * @param query (required) - * @param user (required) + * @param body (required) * @return Call<Void> */ @Headers({ @@ -99,13 +99,13 @@ public interface FakeApi { }) @PUT("fake/body-with-query-params") CompletionStage> testBodyWithQueryParams( - @retrofit2.http.Query("query") String query, @retrofit2.http.Body User user + @retrofit2.http.Query("query") String query, @retrofit2.http.Body User body ); /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Call<Client> */ @Headers({ @@ -113,7 +113,7 @@ public interface FakeApi { }) @PATCH("fake") CompletionStage> testClientModel( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); /** @@ -179,7 +179,7 @@ public interface FakeApi { /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @return Call<Void> */ @Headers({ @@ -187,7 +187,7 @@ public interface FakeApi { }) @POST("fake/inline-additionalProperties") CompletionStage> testInlineAdditionalProperties( - @retrofit2.http.Body Map requestBody + @retrofit2.http.Body Map param ); /** diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index c3db217e30d..e4f16e34fd7 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -25,7 +25,7 @@ public interface FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Call<Client> */ @Headers({ @@ -33,7 +33,7 @@ public interface FakeClassnameTags123Api { }) @PATCH("fake_classname_test") CompletionStage> testClassname( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/PetApi.java index 98c3b6b42bd..581b909f2fe 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/PetApi.java @@ -27,7 +27,7 @@ public interface PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Call<Void> */ @Headers({ @@ -35,7 +35,7 @@ public interface PetApi { }) @POST("pet") CompletionStage> addPet( - @retrofit2.http.Body Pet pet + @retrofit2.http.Body Pet body ); /** @@ -86,7 +86,7 @@ public interface PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Call<Void> */ @Headers({ @@ -94,7 +94,7 @@ public interface PetApi { }) @PUT("pet") CompletionStage> updatePet( - @retrofit2.http.Body Pet pet + @retrofit2.http.Body Pet body ); /** diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/StoreApi.java index 040c1680202..798245fd983 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/StoreApi.java @@ -56,12 +56,12 @@ public interface StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Call<Order> */ @POST("store/order") CompletionStage> placeOrder( - @retrofit2.http.Body Order order + @retrofit2.http.Body Order body ); } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/UserApi.java index 47f55e188ef..3208b159ade 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/UserApi.java @@ -25,34 +25,34 @@ public interface UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @return Call<Void> */ @POST("user") CompletionStage> createUser( - @retrofit2.http.Body User user + @retrofit2.http.Body User body ); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Call<Void> */ @POST("user/createWithArray") CompletionStage> createUsersWithArrayInput( - @retrofit2.http.Body List user + @retrofit2.http.Body List body ); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Call<Void> */ @POST("user/createWithList") CompletionStage> createUsersWithListInput( - @retrofit2.http.Body List user + @retrofit2.http.Body List body ); /** @@ -102,12 +102,12 @@ public interface UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @return Call<Void> */ @PUT("user/{username}") CompletionStage> updateUser( - @retrofit2.http.Path("username") String username, @retrofit2.http.Body User user + @retrofit2.http.Path("username") String username, @retrofit2.http.Body User body ); } diff --git a/samples/client/petstore/java/retrofit2-play26/docs/AnotherFakeApi.md b/samples/client/petstore/java/retrofit2-play26/docs/AnotherFakeApi.md index c44a064755c..e2d3546b305 100644 --- a/samples/client/petstore/java/retrofit2-play26/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/retrofit2-play26/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md b/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md index 5335c1521aa..9a034514e7c 100644 --- a/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/retrofit2-play26/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/retrofit2-play26/docs/FakeClassnameTags123Api.md index d805d10a830..e8f69f8953e 100644 --- a/samples/client/petstore/java/retrofit2-play26/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/retrofit2-play26/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/retrofit2-play26/docs/PetApi.md b/samples/client/petstore/java/retrofit2-play26/docs/PetApi.md index 829565c5db1..9d496e61683 100644 --- a/samples/client/petstore/java/retrofit2-play26/docs/PetApi.md +++ b/samples/client/petstore/java/retrofit2-play26/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/retrofit2-play26/docs/StoreApi.md b/samples/client/petstore/java/retrofit2-play26/docs/StoreApi.md index 06886f6d565..60b3ffae9bf 100644 --- a/samples/client/petstore/java/retrofit2-play26/docs/StoreApi.md +++ b/samples/client/petstore/java/retrofit2-play26/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/retrofit2-play26/docs/UserApi.md b/samples/client/petstore/java/retrofit2-play26/docs/UserApi.md index 170d5027e1a..b8a66f3bc00 100644 --- a/samples/client/petstore/java/retrofit2-play26/docs/UserApi.md +++ b/samples/client/petstore/java/retrofit2-play26/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/retrofit2-play26/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 616c44b0102..b638ac67690 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -25,7 +25,7 @@ public interface AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Call<Client> */ @Headers({ @@ -33,7 +33,7 @@ public interface AnotherFakeApi { }) @PATCH("another-fake/dummy") CompletionStage> call123testSpecialTags( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeApi.java index c542ee4d79c..67a0e9189aa 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeApi.java @@ -43,12 +43,12 @@ public interface FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return Call<OuterComposite> */ @POST("fake/outer/composite") CompletionStage> fakeOuterCompositeSerialize( - @retrofit2.http.Body OuterComposite outerComposite + @retrofit2.http.Body OuterComposite body ); /** @@ -76,7 +76,7 @@ public interface FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @return Call<Void> */ @Headers({ @@ -84,14 +84,14 @@ public interface FakeApi { }) @PUT("fake/body-with-file-schema") CompletionStage> testBodyWithFileSchema( - @retrofit2.http.Body FileSchemaTestClass fileSchemaTestClass + @retrofit2.http.Body FileSchemaTestClass body ); /** * * * @param query (required) - * @param user (required) + * @param body (required) * @return Call<Void> */ @Headers({ @@ -99,13 +99,13 @@ public interface FakeApi { }) @PUT("fake/body-with-query-params") CompletionStage> testBodyWithQueryParams( - @retrofit2.http.Query("query") String query, @retrofit2.http.Body User user + @retrofit2.http.Query("query") String query, @retrofit2.http.Body User body ); /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Call<Client> */ @Headers({ @@ -113,7 +113,7 @@ public interface FakeApi { }) @PATCH("fake") CompletionStage> testClientModel( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); /** @@ -179,7 +179,7 @@ public interface FakeApi { /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @return Call<Void> */ @Headers({ @@ -187,7 +187,7 @@ public interface FakeApi { }) @POST("fake/inline-additionalProperties") CompletionStage> testInlineAdditionalProperties( - @retrofit2.http.Body Map requestBody + @retrofit2.http.Body Map param ); /** diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index c3db217e30d..e4f16e34fd7 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -25,7 +25,7 @@ public interface FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Call<Client> */ @Headers({ @@ -33,7 +33,7 @@ public interface FakeClassnameTags123Api { }) @PATCH("fake_classname_test") CompletionStage> testClassname( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/PetApi.java index 98c3b6b42bd..581b909f2fe 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/PetApi.java @@ -27,7 +27,7 @@ public interface PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Call<Void> */ @Headers({ @@ -35,7 +35,7 @@ public interface PetApi { }) @POST("pet") CompletionStage> addPet( - @retrofit2.http.Body Pet pet + @retrofit2.http.Body Pet body ); /** @@ -86,7 +86,7 @@ public interface PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Call<Void> */ @Headers({ @@ -94,7 +94,7 @@ public interface PetApi { }) @PUT("pet") CompletionStage> updatePet( - @retrofit2.http.Body Pet pet + @retrofit2.http.Body Pet body ); /** diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/StoreApi.java index 040c1680202..798245fd983 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/StoreApi.java @@ -56,12 +56,12 @@ public interface StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Call<Order> */ @POST("store/order") CompletionStage> placeOrder( - @retrofit2.http.Body Order order + @retrofit2.http.Body Order body ); } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/UserApi.java index 47f55e188ef..3208b159ade 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/UserApi.java @@ -25,34 +25,34 @@ public interface UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @return Call<Void> */ @POST("user") CompletionStage> createUser( - @retrofit2.http.Body User user + @retrofit2.http.Body User body ); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Call<Void> */ @POST("user/createWithArray") CompletionStage> createUsersWithArrayInput( - @retrofit2.http.Body List user + @retrofit2.http.Body List body ); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Call<Void> */ @POST("user/createWithList") CompletionStage> createUsersWithListInput( - @retrofit2.http.Body List user + @retrofit2.http.Body List body ); /** @@ -102,12 +102,12 @@ public interface UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @return Call<Void> */ @PUT("user/{username}") CompletionStage> updateUser( - @retrofit2.http.Path("username") String username, @retrofit2.http.Body User user + @retrofit2.http.Path("username") String username, @retrofit2.http.Body User body ); } diff --git a/samples/client/petstore/java/retrofit2/docs/AnotherFakeApi.md b/samples/client/petstore/java/retrofit2/docs/AnotherFakeApi.md index c44a064755c..e2d3546b305 100644 --- a/samples/client/petstore/java/retrofit2/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/retrofit2/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/retrofit2/docs/FakeApi.md b/samples/client/petstore/java/retrofit2/docs/FakeApi.md index 5335c1521aa..9a034514e7c 100644 --- a/samples/client/petstore/java/retrofit2/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/retrofit2/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/retrofit2/docs/FakeClassnameTags123Api.md index d805d10a830..e8f69f8953e 100644 --- a/samples/client/petstore/java/retrofit2/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/retrofit2/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/retrofit2/docs/PetApi.md b/samples/client/petstore/java/retrofit2/docs/PetApi.md index 829565c5db1..9d496e61683 100644 --- a/samples/client/petstore/java/retrofit2/docs/PetApi.md +++ b/samples/client/petstore/java/retrofit2/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/retrofit2/docs/StoreApi.md b/samples/client/petstore/java/retrofit2/docs/StoreApi.md index 06886f6d565..60b3ffae9bf 100644 --- a/samples/client/petstore/java/retrofit2/docs/StoreApi.md +++ b/samples/client/petstore/java/retrofit2/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/retrofit2/docs/UserApi.md b/samples/client/petstore/java/retrofit2/docs/UserApi.md index 170d5027e1a..b8a66f3bc00 100644 --- a/samples/client/petstore/java/retrofit2/docs/UserApi.md +++ b/samples/client/petstore/java/retrofit2/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/retrofit2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 043e2144347..944e3de5ce3 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -20,7 +20,7 @@ public interface AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Call<Client> */ @Headers({ @@ -28,7 +28,7 @@ public interface AnotherFakeApi { }) @PATCH("another-fake/dummy") Call call123testSpecialTags( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeApi.java index 42da2aed960..82bfec2f3a9 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -38,12 +38,12 @@ public interface FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return Call<OuterComposite> */ @POST("fake/outer/composite") Call fakeOuterCompositeSerialize( - @retrofit2.http.Body OuterComposite outerComposite + @retrofit2.http.Body OuterComposite body ); /** @@ -71,7 +71,7 @@ public interface FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @return Call<Void> */ @Headers({ @@ -79,14 +79,14 @@ public interface FakeApi { }) @PUT("fake/body-with-file-schema") Call testBodyWithFileSchema( - @retrofit2.http.Body FileSchemaTestClass fileSchemaTestClass + @retrofit2.http.Body FileSchemaTestClass body ); /** * * * @param query (required) - * @param user (required) + * @param body (required) * @return Call<Void> */ @Headers({ @@ -94,13 +94,13 @@ public interface FakeApi { }) @PUT("fake/body-with-query-params") Call testBodyWithQueryParams( - @retrofit2.http.Query("query") String query, @retrofit2.http.Body User user + @retrofit2.http.Query("query") String query, @retrofit2.http.Body User body ); /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Call<Client> */ @Headers({ @@ -108,7 +108,7 @@ public interface FakeApi { }) @PATCH("fake") Call testClientModel( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); /** @@ -174,7 +174,7 @@ public interface FakeApi { /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @return Call<Void> */ @Headers({ @@ -182,7 +182,7 @@ public interface FakeApi { }) @POST("fake/inline-additionalProperties") Call testInlineAdditionalProperties( - @retrofit2.http.Body Map requestBody + @retrofit2.http.Body Map param ); /** diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 4818e34f207..50c015a5035 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -20,7 +20,7 @@ public interface FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Call<Client> */ @Headers({ @@ -28,7 +28,7 @@ public interface FakeClassnameTags123Api { }) @PATCH("fake_classname_test") Call testClassname( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/PetApi.java index 4935b7b895f..ddf41efc73b 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/PetApi.java @@ -22,7 +22,7 @@ public interface PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Call<Void> */ @Headers({ @@ -30,7 +30,7 @@ public interface PetApi { }) @POST("pet") Call addPet( - @retrofit2.http.Body Pet pet + @retrofit2.http.Body Pet body ); /** @@ -83,7 +83,7 @@ public interface PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Call<Void> */ @Headers({ @@ -91,7 +91,7 @@ public interface PetApi { }) @PUT("pet") Call updatePet( - @retrofit2.http.Body Pet pet + @retrofit2.http.Body Pet body ); /** diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/StoreApi.java index 29695f818e2..f4fd28bd1da 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/StoreApi.java @@ -51,12 +51,12 @@ public interface StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Call<Order> */ @POST("store/order") Call placeOrder( - @retrofit2.http.Body Order order + @retrofit2.http.Body Order body ); } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/UserApi.java index b5de7fe866b..be6071fd7d0 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/UserApi.java @@ -20,34 +20,34 @@ public interface UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @return Call<Void> */ @POST("user") Call createUser( - @retrofit2.http.Body User user + @retrofit2.http.Body User body ); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Call<Void> */ @POST("user/createWithArray") Call createUsersWithArrayInput( - @retrofit2.http.Body List user + @retrofit2.http.Body List body ); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Call<Void> */ @POST("user/createWithList") Call createUsersWithListInput( - @retrofit2.http.Body List user + @retrofit2.http.Body List body ); /** @@ -97,12 +97,12 @@ public interface UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @return Call<Void> */ @PUT("user/{username}") Call updateUser( - @retrofit2.http.Path("username") String username, @retrofit2.http.Body User user + @retrofit2.http.Path("username") String username, @retrofit2.http.Body User body ); } diff --git a/samples/client/petstore/java/retrofit2rx/docs/AnotherFakeApi.md b/samples/client/petstore/java/retrofit2rx/docs/AnotherFakeApi.md index c44a064755c..e2d3546b305 100644 --- a/samples/client/petstore/java/retrofit2rx/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/retrofit2rx/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/retrofit2rx/docs/FakeApi.md b/samples/client/petstore/java/retrofit2rx/docs/FakeApi.md index 5335c1521aa..9a034514e7c 100644 --- a/samples/client/petstore/java/retrofit2rx/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2rx/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/retrofit2rx/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/retrofit2rx/docs/FakeClassnameTags123Api.md index d805d10a830..e8f69f8953e 100644 --- a/samples/client/petstore/java/retrofit2rx/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/retrofit2rx/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/retrofit2rx/docs/PetApi.md b/samples/client/petstore/java/retrofit2rx/docs/PetApi.md index 829565c5db1..9d496e61683 100644 --- a/samples/client/petstore/java/retrofit2rx/docs/PetApi.md +++ b/samples/client/petstore/java/retrofit2rx/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/retrofit2rx/docs/StoreApi.md b/samples/client/petstore/java/retrofit2rx/docs/StoreApi.md index 06886f6d565..60b3ffae9bf 100644 --- a/samples/client/petstore/java/retrofit2rx/docs/StoreApi.md +++ b/samples/client/petstore/java/retrofit2rx/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/retrofit2rx/docs/UserApi.md b/samples/client/petstore/java/retrofit2rx/docs/UserApi.md index 170d5027e1a..b8a66f3bc00 100644 --- a/samples/client/petstore/java/retrofit2rx/docs/UserApi.md +++ b/samples/client/petstore/java/retrofit2rx/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/retrofit2rx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 482fbf1d501..925faf5589d 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -20,7 +20,7 @@ public interface AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Observable<Client> */ @Headers({ @@ -28,7 +28,7 @@ public interface AnotherFakeApi { }) @PATCH("another-fake/dummy") Observable call123testSpecialTags( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/FakeApi.java index 1c1f58d8c15..cd43e3cde03 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/FakeApi.java @@ -38,12 +38,12 @@ public interface FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return Observable<OuterComposite> */ @POST("fake/outer/composite") Observable fakeOuterCompositeSerialize( - @retrofit2.http.Body OuterComposite outerComposite + @retrofit2.http.Body OuterComposite body ); /** @@ -71,7 +71,7 @@ public interface FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @return Observable<Void> */ @Headers({ @@ -79,14 +79,14 @@ public interface FakeApi { }) @PUT("fake/body-with-file-schema") Observable testBodyWithFileSchema( - @retrofit2.http.Body FileSchemaTestClass fileSchemaTestClass + @retrofit2.http.Body FileSchemaTestClass body ); /** * * * @param query (required) - * @param user (required) + * @param body (required) * @return Observable<Void> */ @Headers({ @@ -94,13 +94,13 @@ public interface FakeApi { }) @PUT("fake/body-with-query-params") Observable testBodyWithQueryParams( - @retrofit2.http.Query("query") String query, @retrofit2.http.Body User user + @retrofit2.http.Query("query") String query, @retrofit2.http.Body User body ); /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Observable<Client> */ @Headers({ @@ -108,7 +108,7 @@ public interface FakeApi { }) @PATCH("fake") Observable testClientModel( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); /** @@ -174,7 +174,7 @@ public interface FakeApi { /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @return Observable<Void> */ @Headers({ @@ -182,7 +182,7 @@ public interface FakeApi { }) @POST("fake/inline-additionalProperties") Observable testInlineAdditionalProperties( - @retrofit2.http.Body Map requestBody + @retrofit2.http.Body Map param ); /** diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 9acbfed8ef8..6806977340b 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -20,7 +20,7 @@ public interface FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Observable<Client> */ @Headers({ @@ -28,7 +28,7 @@ public interface FakeClassnameTags123Api { }) @PATCH("fake_classname_test") Observable testClassname( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/PetApi.java index 66c9488578f..5f295827ad3 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/PetApi.java @@ -22,7 +22,7 @@ public interface PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Observable<Void> */ @Headers({ @@ -30,7 +30,7 @@ public interface PetApi { }) @POST("pet") Observable addPet( - @retrofit2.http.Body Pet pet + @retrofit2.http.Body Pet body ); /** @@ -83,7 +83,7 @@ public interface PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Observable<Void> */ @Headers({ @@ -91,7 +91,7 @@ public interface PetApi { }) @PUT("pet") Observable updatePet( - @retrofit2.http.Body Pet pet + @retrofit2.http.Body Pet body ); /** diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/StoreApi.java index 9ef85922d6d..a82986b7143 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/StoreApi.java @@ -51,12 +51,12 @@ public interface StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Observable<Order> */ @POST("store/order") Observable placeOrder( - @retrofit2.http.Body Order order + @retrofit2.http.Body Order body ); } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/UserApi.java index fbbc0fa088b..54b188d24ce 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/UserApi.java @@ -20,34 +20,34 @@ public interface UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @return Observable<Void> */ @POST("user") Observable createUser( - @retrofit2.http.Body User user + @retrofit2.http.Body User body ); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Observable<Void> */ @POST("user/createWithArray") Observable createUsersWithArrayInput( - @retrofit2.http.Body List user + @retrofit2.http.Body List body ); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Observable<Void> */ @POST("user/createWithList") Observable createUsersWithListInput( - @retrofit2.http.Body List user + @retrofit2.http.Body List body ); /** @@ -97,12 +97,12 @@ public interface UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @return Observable<Void> */ @PUT("user/{username}") Observable updateUser( - @retrofit2.http.Path("username") String username, @retrofit2.http.Body User user + @retrofit2.http.Path("username") String username, @retrofit2.http.Body User body ); } diff --git a/samples/client/petstore/java/retrofit2rx2/docs/AnotherFakeApi.md b/samples/client/petstore/java/retrofit2rx2/docs/AnotherFakeApi.md index c44a064755c..e2d3546b305 100644 --- a/samples/client/petstore/java/retrofit2rx2/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/retrofit2rx2/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md b/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md index 5335c1521aa..9a034514e7c 100644 --- a/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/retrofit2rx2/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/retrofit2rx2/docs/FakeClassnameTags123Api.md index d805d10a830..e8f69f8953e 100644 --- a/samples/client/petstore/java/retrofit2rx2/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/retrofit2rx2/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/retrofit2rx2/docs/PetApi.md b/samples/client/petstore/java/retrofit2rx2/docs/PetApi.md index 829565c5db1..9d496e61683 100644 --- a/samples/client/petstore/java/retrofit2rx2/docs/PetApi.md +++ b/samples/client/petstore/java/retrofit2rx2/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/retrofit2rx2/docs/StoreApi.md b/samples/client/petstore/java/retrofit2rx2/docs/StoreApi.md index 06886f6d565..60b3ffae9bf 100644 --- a/samples/client/petstore/java/retrofit2rx2/docs/StoreApi.md +++ b/samples/client/petstore/java/retrofit2rx2/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/retrofit2rx2/docs/UserApi.md b/samples/client/petstore/java/retrofit2rx2/docs/UserApi.md index 170d5027e1a..b8a66f3bc00 100644 --- a/samples/client/petstore/java/retrofit2rx2/docs/UserApi.md +++ b/samples/client/petstore/java/retrofit2rx2/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/retrofit2rx2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 81b821d0194..1299cf84b26 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -21,7 +21,7 @@ public interface AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Observable<Client> */ @Headers({ @@ -29,7 +29,7 @@ public interface AnotherFakeApi { }) @PATCH("another-fake/dummy") Observable call123testSpecialTags( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeApi.java index 01e20f57220..d4f662673b8 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -39,12 +39,12 @@ public interface FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return Observable<OuterComposite> */ @POST("fake/outer/composite") Observable fakeOuterCompositeSerialize( - @retrofit2.http.Body OuterComposite outerComposite + @retrofit2.http.Body OuterComposite body ); /** @@ -72,7 +72,7 @@ public interface FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @return Completable */ @Headers({ @@ -80,14 +80,14 @@ public interface FakeApi { }) @PUT("fake/body-with-file-schema") Completable testBodyWithFileSchema( - @retrofit2.http.Body FileSchemaTestClass fileSchemaTestClass + @retrofit2.http.Body FileSchemaTestClass body ); /** * * * @param query (required) - * @param user (required) + * @param body (required) * @return Completable */ @Headers({ @@ -95,13 +95,13 @@ public interface FakeApi { }) @PUT("fake/body-with-query-params") Completable testBodyWithQueryParams( - @retrofit2.http.Query("query") String query, @retrofit2.http.Body User user + @retrofit2.http.Query("query") String query, @retrofit2.http.Body User body ); /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Observable<Client> */ @Headers({ @@ -109,7 +109,7 @@ public interface FakeApi { }) @PATCH("fake") Observable testClientModel( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); /** @@ -175,7 +175,7 @@ public interface FakeApi { /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @return Completable */ @Headers({ @@ -183,7 +183,7 @@ public interface FakeApi { }) @POST("fake/inline-additionalProperties") Completable testInlineAdditionalProperties( - @retrofit2.http.Body Map requestBody + @retrofit2.http.Body Map param ); /** diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index be6f243ca02..503798776d8 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -21,7 +21,7 @@ public interface FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Observable<Client> */ @Headers({ @@ -29,7 +29,7 @@ public interface FakeClassnameTags123Api { }) @PATCH("fake_classname_test") Observable testClassname( - @retrofit2.http.Body Client client + @retrofit2.http.Body Client body ); } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/PetApi.java index 47b71e74580..4b54f3a3274 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/PetApi.java @@ -23,7 +23,7 @@ public interface PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Completable */ @Headers({ @@ -31,7 +31,7 @@ public interface PetApi { }) @POST("pet") Completable addPet( - @retrofit2.http.Body Pet pet + @retrofit2.http.Body Pet body ); /** @@ -84,7 +84,7 @@ public interface PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Completable */ @Headers({ @@ -92,7 +92,7 @@ public interface PetApi { }) @PUT("pet") Completable updatePet( - @retrofit2.http.Body Pet pet + @retrofit2.http.Body Pet body ); /** diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/StoreApi.java index a2e624fcee6..d45f42a7150 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/StoreApi.java @@ -52,12 +52,12 @@ public interface StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Observable<Order> */ @POST("store/order") Observable placeOrder( - @retrofit2.http.Body Order order + @retrofit2.http.Body Order body ); } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/UserApi.java index d23555ee8c7..134d9ea66f5 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/UserApi.java @@ -21,34 +21,34 @@ public interface UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @return Completable */ @POST("user") Completable createUser( - @retrofit2.http.Body User user + @retrofit2.http.Body User body ); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Completable */ @POST("user/createWithArray") Completable createUsersWithArrayInput( - @retrofit2.http.Body List user + @retrofit2.http.Body List body ); /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Completable */ @POST("user/createWithList") Completable createUsersWithListInput( - @retrofit2.http.Body List user + @retrofit2.http.Body List body ); /** @@ -98,12 +98,12 @@ public interface UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @return Completable */ @PUT("user/{username}") Completable updateUser( - @retrofit2.http.Path("username") String username, @retrofit2.http.Body User user + @retrofit2.http.Path("username") String username, @retrofit2.http.Body User body ); } diff --git a/samples/client/petstore/java/vertx/docs/AnotherFakeApi.md b/samples/client/petstore/java/vertx/docs/AnotherFakeApi.md index a618e3928c9..4a8546e0c16 100644 --- a/samples/client/petstore/java/vertx/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/vertx/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/vertx/docs/FakeApi.md b/samples/client/petstore/java/vertx/docs/FakeApi.md index 34bb5172b87..664a98ddc4b 100644 --- a/samples/client/petstore/java/vertx/docs/FakeApi.md +++ b/samples/client/petstore/java/vertx/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/vertx/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/vertx/docs/FakeClassnameTags123Api.md index 89cd0fb3f73..873b7493623 100644 --- a/samples/client/petstore/java/vertx/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/vertx/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/vertx/docs/PetApi.md b/samples/client/petstore/java/vertx/docs/PetApi.md index 4718ad675b1..0001b932415 100644 --- a/samples/client/petstore/java/vertx/docs/PetApi.md +++ b/samples/client/petstore/java/vertx/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/vertx/docs/StoreApi.md b/samples/client/petstore/java/vertx/docs/StoreApi.md index 578e086a3e1..30d782f82d9 100644 --- a/samples/client/petstore/java/vertx/docs/StoreApi.md +++ b/samples/client/petstore/java/vertx/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/vertx/docs/UserApi.md b/samples/client/petstore/java/vertx/docs/UserApi.md index b7b880585f7..5969abd518d 100644 --- a/samples/client/petstore/java/vertx/docs/UserApi.md +++ b/samples/client/petstore/java/vertx/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index e3526083127..787cd307f1b 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -9,6 +9,6 @@ import java.util.*; public interface AnotherFakeApi { - void call123testSpecialTags(Client client, Handler> handler); + void call123testSpecialTags(Client body, Handler> handler); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApiImpl.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApiImpl.java index b6d794b35c5..b0e86cf140f 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApiImpl.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApiImpl.java @@ -40,15 +40,15 @@ public class AnotherFakeApiImpl implements AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @param resultHandler Asynchronous result handler */ - public void call123testSpecialTags(Client client, Handler> resultHandler) { - Object localVarBody = client; + public void call123testSpecialTags(Client body, Handler> resultHandler) { + Object localVarBody = body; - // verify the required parameter 'client' is set - if (client == null) { - resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'client' when calling call123testSpecialTags")); + // verify the required parameter 'body' is set + if (body == null) { + resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'body' when calling call123testSpecialTags")); return; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApi.java index d4349a5564e..816a0085cd9 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApi.java @@ -18,17 +18,17 @@ public interface FakeApi { void fakeOuterBooleanSerialize(Boolean body, Handler> handler); - void fakeOuterCompositeSerialize(OuterComposite outerComposite, Handler> handler); + void fakeOuterCompositeSerialize(OuterComposite body, Handler> handler); void fakeOuterNumberSerialize(BigDecimal body, Handler> handler); void fakeOuterStringSerialize(String body, Handler> handler); - void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Handler> handler); + void testBodyWithFileSchema(FileSchemaTestClass body, Handler> handler); - void testBodyWithQueryParams(String query, User user, Handler> handler); + void testBodyWithQueryParams(String query, User body, Handler> handler); - void testClientModel(Client client, Handler> handler); + void testClientModel(Client body, Handler> handler); void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, AsyncFile binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, Handler> handler); @@ -36,7 +36,7 @@ public interface FakeApi { void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, Handler> handler); - void testInlineAdditionalProperties(Map requestBody, Handler> handler); + void testInlineAdditionalProperties(Map param, Handler> handler); void testJsonFormData(String param, String param2, Handler> handler); diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApiImpl.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApiImpl.java index 39b3124f3a0..fd3dd6e2973 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApiImpl.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApiImpl.java @@ -75,11 +75,11 @@ public class FakeApiImpl implements FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @param resultHandler Asynchronous result handler */ - public void fakeOuterCompositeSerialize(OuterComposite outerComposite, Handler> resultHandler) { - Object localVarBody = outerComposite; + public void fakeOuterCompositeSerialize(OuterComposite body, Handler> resultHandler) { + Object localVarBody = body; // create path and map variables String localVarPath = "/fake/outer/composite"; @@ -159,15 +159,15 @@ public class FakeApiImpl implements FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @param resultHandler Asynchronous result handler */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Handler> resultHandler) { - Object localVarBody = fileSchemaTestClass; + public void testBodyWithFileSchema(FileSchemaTestClass body, Handler> resultHandler) { + Object localVarBody = body; - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema")); + // verify the required parameter 'body' is set + if (body == null) { + resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema")); return; } @@ -194,11 +194,11 @@ public class FakeApiImpl implements FakeApi { * * * @param query (required) - * @param user (required) + * @param body (required) * @param resultHandler Asynchronous result handler */ - public void testBodyWithQueryParams(String query, User user, Handler> resultHandler) { - Object localVarBody = user; + public void testBodyWithQueryParams(String query, User body, Handler> resultHandler) { + Object localVarBody = body; // verify the required parameter 'query' is set if (query == null) { @@ -206,9 +206,9 @@ public class FakeApiImpl implements FakeApi { return; } - // verify the required parameter 'user' is set - if (user == null) { - resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams")); + // verify the required parameter 'body' is set + if (body == null) { + resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams")); return; } @@ -235,15 +235,15 @@ public class FakeApiImpl implements FakeApi { /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @param resultHandler Asynchronous result handler */ - public void testClientModel(Client client, Handler> resultHandler) { - Object localVarBody = client; + public void testClientModel(Client body, Handler> resultHandler) { + Object localVarBody = body; - // verify the required parameter 'client' is set - if (client == null) { - resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'client' when calling testClientModel")); + // verify the required parameter 'body' is set + if (body == null) { + resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'body' when calling testClientModel")); return; } @@ -452,15 +452,15 @@ if (booleanGroup != null) /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @param resultHandler Asynchronous result handler */ - public void testInlineAdditionalProperties(Map requestBody, Handler> resultHandler) { - Object localVarBody = requestBody; + public void testInlineAdditionalProperties(Map param, Handler> resultHandler) { + Object localVarBody = param; - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties")); + // verify the required parameter 'param' is set + if (param == null) { + resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties")); return; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index f4e35735747..ab26b6fa2d6 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -9,6 +9,6 @@ import java.util.*; public interface FakeClassnameTags123Api { - void testClassname(Client client, Handler> handler); + void testClassname(Client body, Handler> handler); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeClassnameTags123ApiImpl.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeClassnameTags123ApiImpl.java index b40120b56fb..ed9f0a88c71 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeClassnameTags123ApiImpl.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeClassnameTags123ApiImpl.java @@ -40,15 +40,15 @@ public class FakeClassnameTags123ApiImpl implements FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @param resultHandler Asynchronous result handler */ - public void testClassname(Client client, Handler> resultHandler) { - Object localVarBody = client; + public void testClassname(Client body, Handler> resultHandler) { + Object localVarBody = body; - // verify the required parameter 'client' is set - if (client == null) { - resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'client' when calling testClassname")); + // verify the required parameter 'body' is set + if (body == null) { + resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'body' when calling testClassname")); return; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/PetApi.java index eb0cd44f8c6..eaa6f805d85 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/PetApi.java @@ -11,7 +11,7 @@ import java.util.*; public interface PetApi { - void addPet(Pet pet, Handler> handler); + void addPet(Pet body, Handler> handler); void deletePet(Long petId, String apiKey, Handler> handler); @@ -21,7 +21,7 @@ public interface PetApi { void getPetById(Long petId, Handler> handler); - void updatePet(Pet pet, Handler> handler); + void updatePet(Pet body, Handler> handler); void updatePetWithForm(Long petId, String name, String status, Handler> handler); diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/PetApiImpl.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/PetApiImpl.java index 9188af410bb..d9220599d66 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/PetApiImpl.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/PetApiImpl.java @@ -42,15 +42,15 @@ public class PetApiImpl implements PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param resultHandler Asynchronous result handler */ - public void addPet(Pet pet, Handler> resultHandler) { - Object localVarBody = pet; + public void addPet(Pet body, Handler> resultHandler) { + Object localVarBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'pet' when calling addPet")); + // verify the required parameter 'body' is set + if (body == null) { + resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'body' when calling addPet")); return; } @@ -217,15 +217,15 @@ public class PetApiImpl implements PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param resultHandler Asynchronous result handler */ - public void updatePet(Pet pet, Handler> resultHandler) { - Object localVarBody = pet; + public void updatePet(Pet body, Handler> resultHandler) { + Object localVarBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'pet' when calling updatePet")); + // verify the required parameter 'body' is set + if (body == null) { + resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'body' when calling updatePet")); return; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/StoreApi.java index 82be515d2f5..beae7610b2c 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/StoreApi.java @@ -15,6 +15,6 @@ public interface StoreApi { void getOrderById(Long orderId, Handler> handler); - void placeOrder(Order order, Handler> handler); + void placeOrder(Order body, Handler> handler); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/StoreApiImpl.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/StoreApiImpl.java index 24bc5c10a6c..f939ac8e40c 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/StoreApiImpl.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/StoreApiImpl.java @@ -135,15 +135,15 @@ public class StoreApiImpl implements StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @param resultHandler Asynchronous result handler */ - public void placeOrder(Order order, Handler> resultHandler) { - Object localVarBody = order; + public void placeOrder(Order body, Handler> resultHandler) { + Object localVarBody = body; - // verify the required parameter 'order' is set - if (order == null) { - resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'order' when calling placeOrder")); + // verify the required parameter 'body' is set + if (body == null) { + resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'body' when calling placeOrder")); return; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/UserApi.java index 02e30db494f..a7213558a58 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/UserApi.java @@ -9,11 +9,11 @@ import java.util.*; public interface UserApi { - void createUser(User user, Handler> handler); + void createUser(User body, Handler> handler); - void createUsersWithArrayInput(List user, Handler> handler); + void createUsersWithArrayInput(List body, Handler> handler); - void createUsersWithListInput(List user, Handler> handler); + void createUsersWithListInput(List body, Handler> handler); void deleteUser(String username, Handler> handler); @@ -23,6 +23,6 @@ public interface UserApi { void logoutUser(Handler> handler); - void updateUser(String username, User user, Handler> handler); + void updateUser(String username, User body, Handler> handler); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/UserApiImpl.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/UserApiImpl.java index e4775c942aa..ad2cb4881cb 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/UserApiImpl.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/UserApiImpl.java @@ -40,15 +40,15 @@ public class UserApiImpl implements UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @param resultHandler Asynchronous result handler */ - public void createUser(User user, Handler> resultHandler) { - Object localVarBody = user; + public void createUser(User body, Handler> resultHandler) { + Object localVarBody = body; - // verify the required parameter 'user' is set - if (user == null) { - resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'user' when calling createUser")); + // verify the required parameter 'body' is set + if (body == null) { + resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'body' when calling createUser")); return; } @@ -74,15 +74,15 @@ public class UserApiImpl implements UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @param resultHandler Asynchronous result handler */ - public void createUsersWithArrayInput(List user, Handler> resultHandler) { - Object localVarBody = user; + public void createUsersWithArrayInput(List body, Handler> resultHandler) { + Object localVarBody = body; - // verify the required parameter 'user' is set - if (user == null) { - resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput")); + // verify the required parameter 'body' is set + if (body == null) { + resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput")); return; } @@ -108,15 +108,15 @@ public class UserApiImpl implements UserApi { /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @param resultHandler Asynchronous result handler */ - public void createUsersWithListInput(List user, Handler> resultHandler) { - Object localVarBody = user; + public void createUsersWithListInput(List body, Handler> resultHandler) { + Object localVarBody = body; - // verify the required parameter 'user' is set - if (user == null) { - resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'user' when calling createUsersWithListInput")); + // verify the required parameter 'body' is set + if (body == null) { + resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'body' when calling createUsersWithListInput")); return; } @@ -281,11 +281,11 @@ public class UserApiImpl implements UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @param resultHandler Asynchronous result handler */ - public void updateUser(String username, User user, Handler> resultHandler) { - Object localVarBody = user; + public void updateUser(String username, User body, Handler> resultHandler) { + Object localVarBody = body; // verify the required parameter 'username' is set if (username == null) { @@ -293,9 +293,9 @@ public class UserApiImpl implements UserApi { return; } - // verify the required parameter 'user' is set - if (user == null) { - resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'user' when calling updateUser")); + // verify the required parameter 'body' is set + if (body == null) { + resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'body' when calling updateUser")); return; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/AnotherFakeApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/AnotherFakeApi.java index 28b6bcc6a0c..a9781c68f0b 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/AnotherFakeApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/AnotherFakeApi.java @@ -24,22 +24,22 @@ public class AnotherFakeApi { /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @param resultHandler Asynchronous result handler */ - public void call123testSpecialTags(Client client, Handler> resultHandler) { - delegate.call123testSpecialTags(client, resultHandler); + public void call123testSpecialTags(Client body, Handler> resultHandler) { + delegate.call123testSpecialTags(body, resultHandler); } /** * To test special tags * To test special tags and operation ID starting with number - * @param client client model (required) + * @param body client model (required) * @return Asynchronous result handler (RxJava Single) */ - public Single rxCall123testSpecialTags(Client client) { + public Single rxCall123testSpecialTags(Client body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.call123testSpecialTags(client, fut); + delegate.call123testSpecialTags(body, fut); })); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java index fce29914f89..6da7d94fee8 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java @@ -52,22 +52,22 @@ public class FakeApi { /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @param resultHandler Asynchronous result handler */ - public void fakeOuterCompositeSerialize(OuterComposite outerComposite, Handler> resultHandler) { - delegate.fakeOuterCompositeSerialize(outerComposite, resultHandler); + public void fakeOuterCompositeSerialize(OuterComposite body, Handler> resultHandler) { + delegate.fakeOuterCompositeSerialize(body, resultHandler); } /** * * Test serialization of object with outer number type - * @param outerComposite Input composite as post body (optional) + * @param body Input composite as post body (optional) * @return Asynchronous result handler (RxJava Single) */ - public Single rxFakeOuterCompositeSerialize(OuterComposite outerComposite) { + public Single rxFakeOuterCompositeSerialize(OuterComposite body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.fakeOuterCompositeSerialize(outerComposite, fut); + delegate.fakeOuterCompositeSerialize(body, fut); })); } /** @@ -115,66 +115,66 @@ public class FakeApi { /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @param resultHandler Asynchronous result handler */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Handler> resultHandler) { - delegate.testBodyWithFileSchema(fileSchemaTestClass, resultHandler); + public void testBodyWithFileSchema(FileSchemaTestClass body, Handler> resultHandler) { + delegate.testBodyWithFileSchema(body, resultHandler); } /** * * For this test, the body for this request much reference a schema named `File`. - * @param fileSchemaTestClass (required) + * @param body (required) * @return Asynchronous result handler (RxJava Single) */ - public Single rxTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) { + public Single rxTestBodyWithFileSchema(FileSchemaTestClass body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.testBodyWithFileSchema(fileSchemaTestClass, fut); + delegate.testBodyWithFileSchema(body, fut); })); } /** * * * @param query (required) - * @param user (required) + * @param body (required) * @param resultHandler Asynchronous result handler */ - public void testBodyWithQueryParams(String query, User user, Handler> resultHandler) { - delegate.testBodyWithQueryParams(query, user, resultHandler); + public void testBodyWithQueryParams(String query, User body, Handler> resultHandler) { + delegate.testBodyWithQueryParams(query, body, resultHandler); } /** * * * @param query (required) - * @param user (required) + * @param body (required) * @return Asynchronous result handler (RxJava Single) */ - public Single rxTestBodyWithQueryParams(String query, User user) { + public Single rxTestBodyWithQueryParams(String query, User body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.testBodyWithQueryParams(query, user, fut); + delegate.testBodyWithQueryParams(query, body, fut); })); } /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @param resultHandler Asynchronous result handler */ - public void testClientModel(Client client, Handler> resultHandler) { - delegate.testClientModel(client, resultHandler); + public void testClientModel(Client body, Handler> resultHandler) { + delegate.testClientModel(body, resultHandler); } /** * To test \"client\" model * To test \"client\" model - * @param client client model (required) + * @param body client model (required) * @return Asynchronous result handler (RxJava Single) */ - public Single rxTestClientModel(Client client) { + public Single rxTestClientModel(Client body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.testClientModel(client, fut); + delegate.testClientModel(body, fut); })); } /** @@ -293,22 +293,22 @@ public class FakeApi { /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @param resultHandler Asynchronous result handler */ - public void testInlineAdditionalProperties(Map requestBody, Handler> resultHandler) { - delegate.testInlineAdditionalProperties(requestBody, resultHandler); + public void testInlineAdditionalProperties(Map param, Handler> resultHandler) { + delegate.testInlineAdditionalProperties(param, resultHandler); } /** * test inline additionalProperties * - * @param requestBody request body (required) + * @param param request body (required) * @return Asynchronous result handler (RxJava Single) */ - public Single rxTestInlineAdditionalProperties(Map requestBody) { + public Single rxTestInlineAdditionalProperties(Map param) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.testInlineAdditionalProperties(requestBody, fut); + delegate.testInlineAdditionalProperties(param, fut); })); } /** diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/FakeClassnameTags123Api.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/FakeClassnameTags123Api.java index 34c86db0062..757c028b299 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/FakeClassnameTags123Api.java @@ -24,22 +24,22 @@ public class FakeClassnameTags123Api { /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @param resultHandler Asynchronous result handler */ - public void testClassname(Client client, Handler> resultHandler) { - delegate.testClassname(client, resultHandler); + public void testClassname(Client body, Handler> resultHandler) { + delegate.testClassname(body, resultHandler); } /** * To test class name in snake case * To test class name in snake case - * @param client client model (required) + * @param body client model (required) * @return Asynchronous result handler (RxJava Single) */ - public Single rxTestClassname(Client client) { + public Single rxTestClassname(Client body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.testClassname(client, fut); + delegate.testClassname(body, fut); })); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/PetApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/PetApi.java index 9955ec657dd..4314f8dc991 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/PetApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/PetApi.java @@ -26,22 +26,22 @@ public class PetApi { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param resultHandler Asynchronous result handler */ - public void addPet(Pet pet, Handler> resultHandler) { - delegate.addPet(pet, resultHandler); + public void addPet(Pet body, Handler> resultHandler) { + delegate.addPet(body, resultHandler); } /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Asynchronous result handler (RxJava Single) */ - public Single rxAddPet(Pet pet) { + public Single rxAddPet(Pet body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.addPet(pet, fut); + delegate.addPet(body, fut); })); } /** @@ -133,22 +133,22 @@ public class PetApi { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @param resultHandler Asynchronous result handler */ - public void updatePet(Pet pet, Handler> resultHandler) { - delegate.updatePet(pet, resultHandler); + public void updatePet(Pet body, Handler> resultHandler) { + delegate.updatePet(body, resultHandler); } /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store (required) + * @param body Pet object that needs to be added to the store (required) * @return Asynchronous result handler (RxJava Single) */ - public Single rxUpdatePet(Pet pet) { + public Single rxUpdatePet(Pet body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.updatePet(pet, fut); + delegate.updatePet(body, fut); })); } /** diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/StoreApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/StoreApi.java index d400af5a5f2..f5ec71da2e6 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/StoreApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/StoreApi.java @@ -85,22 +85,22 @@ public class StoreApi { /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @param resultHandler Asynchronous result handler */ - public void placeOrder(Order order, Handler> resultHandler) { - delegate.placeOrder(order, resultHandler); + public void placeOrder(Order body, Handler> resultHandler) { + delegate.placeOrder(body, resultHandler); } /** * Place an order for a pet * - * @param order order placed for purchasing the pet (required) + * @param body order placed for purchasing the pet (required) * @return Asynchronous result handler (RxJava Single) */ - public Single rxPlaceOrder(Order order) { + public Single rxPlaceOrder(Order body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.placeOrder(order, fut); + delegate.placeOrder(body, fut); })); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/UserApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/UserApi.java index 84d313898f1..0d5c712f4a3 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/UserApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/UserApi.java @@ -24,64 +24,64 @@ public class UserApi { /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @param resultHandler Asynchronous result handler */ - public void createUser(User user, Handler> resultHandler) { - delegate.createUser(user, resultHandler); + public void createUser(User body, Handler> resultHandler) { + delegate.createUser(body, resultHandler); } /** * Create user * This can only be done by the logged in user. - * @param user Created user object (required) + * @param body Created user object (required) * @return Asynchronous result handler (RxJava Single) */ - public Single rxCreateUser(User user) { + public Single rxCreateUser(User body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.createUser(user, fut); + delegate.createUser(body, fut); })); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @param resultHandler Asynchronous result handler */ - public void createUsersWithArrayInput(List user, Handler> resultHandler) { - delegate.createUsersWithArrayInput(user, resultHandler); + public void createUsersWithArrayInput(List body, Handler> resultHandler) { + delegate.createUsersWithArrayInput(body, resultHandler); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Asynchronous result handler (RxJava Single) */ - public Single rxCreateUsersWithArrayInput(List user) { + public Single rxCreateUsersWithArrayInput(List body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.createUsersWithArrayInput(user, fut); + delegate.createUsersWithArrayInput(body, fut); })); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @param resultHandler Asynchronous result handler */ - public void createUsersWithListInput(List user, Handler> resultHandler) { - delegate.createUsersWithListInput(user, resultHandler); + public void createUsersWithListInput(List body, Handler> resultHandler) { + delegate.createUsersWithListInput(body, resultHandler); } /** * Creates list of users with given input array * - * @param user List of user object (required) + * @param body List of user object (required) * @return Asynchronous result handler (RxJava Single) */ - public Single rxCreateUsersWithListInput(List user) { + public Single rxCreateUsersWithListInput(List body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.createUsersWithListInput(user, fut); + delegate.createUsersWithListInput(body, fut); })); } /** @@ -172,23 +172,23 @@ public class UserApi { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @param resultHandler Asynchronous result handler */ - public void updateUser(String username, User user, Handler> resultHandler) { - delegate.updateUser(username, user, resultHandler); + public void updateUser(String username, User body, Handler> resultHandler) { + delegate.updateUser(username, body, resultHandler); } /** * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted (required) - * @param user Updated user object (required) + * @param body Updated user object (required) * @return Asynchronous result handler (RxJava Single) */ - public Single rxUpdateUser(String username, User user) { + public Single rxUpdateUser(String username, User body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { - delegate.updateUser(username, user, fut); + delegate.updateUser(username, body, fut); })); } diff --git a/samples/client/petstore/java/webclient/docs/AnotherFakeApi.md b/samples/client/petstore/java/webclient/docs/AnotherFakeApi.md index a618e3928c9..4a8546e0c16 100644 --- a/samples/client/petstore/java/webclient/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/webclient/docs/AnotherFakeApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> Client call123testSpecialTags(client) +> Client call123testSpecialTags(body) To test special tags @@ -23,9 +23,9 @@ To test special tags and operation ID starting with number AnotherFakeApi apiInstance = new AnotherFakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.call123testSpecialTags(client); + Client result = apiInstance.call123testSpecialTags(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); @@ -37,7 +37,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/webclient/docs/FakeApi.md b/samples/client/petstore/java/webclient/docs/FakeApi.md index 62046473c1f..8e3385cc83d 100644 --- a/samples/client/petstore/java/webclient/docs/FakeApi.md +++ b/samples/client/petstore/java/webclient/docs/FakeApi.md @@ -65,7 +65,7 @@ No authorization required # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outerComposite) +> OuterComposite fakeOuterCompositeSerialize(body) @@ -79,9 +79,9 @@ Test serialization of object with outer number type FakeApi apiInstance = new FakeApi(); -OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body +OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body try { - OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); + OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); @@ -93,7 +93,7 @@ try { 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 @@ -200,7 +200,7 @@ No authorization required # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileSchemaTestClass) +> testBodyWithFileSchema(body) @@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil FakeApi apiInstance = new FakeApi(); -FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | +FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | try { - apiInstance.testBodyWithFileSchema(fileSchemaTestClass); + apiInstance.testBodyWithFileSchema(body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); e.printStackTrace(); @@ -227,7 +227,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -244,7 +244,7 @@ No authorization required # **testBodyWithQueryParams** -> testBodyWithQueryParams(query, user) +> testBodyWithQueryParams(query, body) @@ -257,9 +257,9 @@ No authorization required FakeApi apiInstance = new FakeApi(); String query = "query_example"; // String | -User user = new User(); // User | +User body = new User(); // User | try { - apiInstance.testBodyWithQueryParams(query, user); + apiInstance.testBodyWithQueryParams(query, body); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); e.printStackTrace(); @@ -271,7 +271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -288,7 +288,7 @@ No authorization required # **testClientModel** -> Client testClientModel(client) +> Client testClientModel(body) To test \"client\" model @@ -302,9 +302,9 @@ To test \"client\" model FakeApi apiInstance = new FakeApi(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClientModel(client); + Client result = apiInstance.testClientModel(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testClientModel"); @@ -316,7 +316,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -524,7 +524,7 @@ No authorization required # **testInlineAdditionalProperties** -> testInlineAdditionalProperties(requestBody) +> testInlineAdditionalProperties(param) test inline additionalProperties @@ -536,9 +536,9 @@ test inline additionalProperties FakeApi apiInstance = new FakeApi(); -Map requestBody = new HashMap(); // Map | request body +Map param = new HashMap(); // Map | request body try { - apiInstance.testInlineAdditionalProperties(requestBody); + apiInstance.testInlineAdditionalProperties(param); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); e.printStackTrace(); @@ -549,7 +549,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestBody** | [**Map<String, String>**](String.md)| request body | + **param** | [**Map<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/java/webclient/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/webclient/docs/FakeClassnameTags123Api.md index 89cd0fb3f73..873b7493623 100644 --- a/samples/client/petstore/java/webclient/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/webclient/docs/FakeClassnameTags123Api.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **testClassname** -> Client testClassname(client) +> Client testClassname(body) To test class name in snake case @@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY"); //api_key_query.setApiKeyPrefix("Token"); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); -Client client = new Client(); // Client | client model +Client body = new Client(); // Client | client model try { - Client result = apiInstance.testClassname(client); + Client result = apiInstance.testClassname(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); @@ -47,7 +47,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/java/webclient/docs/PetApi.md b/samples/client/petstore/java/webclient/docs/PetApi.md index 8d621d1682a..fa157be7012 100644 --- a/samples/client/petstore/java/webclient/docs/PetApi.md +++ b/samples/client/petstore/java/webclient/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet); + apiInstance.addPet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#addPet"); e.printStackTrace(); @@ -50,7 +50,7 @@ try { 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 @@ -280,7 +280,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); PetApi apiInstance = new PetApi(); -Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store +Pet body = new Pet(); // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet); + apiInstance.updatePet(body); } catch (ApiException e) { System.err.println("Exception when calling PetApi#updatePet"); e.printStackTrace(); @@ -313,7 +313,7 @@ try { 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/java/webclient/docs/StoreApi.md b/samples/client/petstore/java/webclient/docs/StoreApi.md index 578e086a3e1..30d782f82d9 100644 --- a/samples/client/petstore/java/webclient/docs/StoreApi.md +++ b/samples/client/petstore/java/webclient/docs/StoreApi.md @@ -152,7 +152,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -164,9 +164,9 @@ Place an order for a pet StoreApi apiInstance = new StoreApi(); -Order order = new Order(); // Order | order placed for purchasing the pet +Order body = new Order(); // Order | order placed for purchasing the pet try { - Order result = apiInstance.placeOrder(order); + Order result = apiInstance.placeOrder(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StoreApi#placeOrder"); @@ -178,7 +178,7 @@ try { 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/java/webclient/docs/UserApi.md b/samples/client/petstore/java/webclient/docs/UserApi.md index b7b880585f7..5969abd518d 100644 --- a/samples/client/petstore/java/webclient/docs/UserApi.md +++ b/samples/client/petstore/java/webclient/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -30,9 +30,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); -User user = new User(); // User | Created user object +User body = new User(); // User | Created user object try { - apiInstance.createUser(user); + apiInstance.createUser(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); e.printStackTrace(); @@ -43,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -60,7 +60,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -72,9 +72,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithArrayInput(user); + apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); e.printStackTrace(); @@ -85,7 +85,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -102,7 +102,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -114,9 +114,9 @@ Creates list of users with given input array UserApi apiInstance = new UserApi(); -List user = Arrays.asList(null); // List | List of user object +List body = Arrays.asList(null); // List | List of user object try { - apiInstance.createUsersWithListInput(user); + apiInstance.createUsersWithListInput(body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUsersWithListInput"); e.printStackTrace(); @@ -127,7 +127,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**List<User>**](List.md)| List of user object | + **body** | [**List<User>**](List.md)| List of user object | ### Return type @@ -314,7 +314,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -329,9 +329,9 @@ This can only be done by the logged in user. UserApi apiInstance = new UserApi(); String username = "username_example"; // String | name that need to be deleted -User user = new User(); // User | Updated user object +User body = new User(); // User | Updated user object try { - apiInstance.updateUser(username, user); + apiInstance.updateUser(username, body); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUser"); e.printStackTrace(); @@ -343,7 +343,7 @@ try { 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/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index fd44d8122f8..f5502089506 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -49,16 +49,16 @@ public class AnotherFakeApi { * To test special tags * To test special tags and operation ID starting with number *

      200 - successful operation - * @param client client model + * @param body client model * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono call123testSpecialTags(Client client) throws RestClientException { - Object postBody = client; + public Mono call123testSpecialTags(Client body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling call123testSpecialTags"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling call123testSpecialTags"); } String path = UriComponentsBuilder.fromPath("/another-fake/dummy").build().toUriString(); diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java index a1356800406..2a85bb0ae3c 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java @@ -85,12 +85,12 @@ public class FakeApi { * * Test serialization of object with outer number type *

      200 - Output composite - * @param outerComposite Input composite as post body + * @param body Input composite as post body * @return OuterComposite * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterCompositeSerialize(OuterComposite outerComposite) throws RestClientException { - Object postBody = outerComposite; + public Mono fakeOuterCompositeSerialize(OuterComposite body) throws RestClientException { + Object postBody = body; String path = UriComponentsBuilder.fromPath("/fake/outer/composite").build().toUriString(); @@ -172,15 +172,15 @@ public class FakeApi { * * For this test, the body for this request much reference a schema named `File`. *

      200 - Success - * @param fileSchemaTestClass The fileSchemaTestClass parameter + * @param body The body parameter * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws RestClientException { - Object postBody = fileSchemaTestClass; + public Mono testBodyWithFileSchema(FileSchemaTestClass body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'fileSchemaTestClass' is set - if (fileSchemaTestClass == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testBodyWithFileSchema"); } String path = UriComponentsBuilder.fromPath("/fake/body-with-file-schema").build().toUriString(); @@ -206,20 +206,20 @@ public class FakeApi { * *

      200 - Success * @param query The query parameter - * @param user The user parameter + * @param body The body parameter * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono testBodyWithQueryParams(String query, User user) throws RestClientException { - Object postBody = user; + public Mono testBodyWithQueryParams(String query, User body) throws RestClientException { + Object postBody = body; // verify the required parameter 'query' is set if (query == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling testBodyWithQueryParams"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testBodyWithQueryParams"); } String path = UriComponentsBuilder.fromPath("/fake/body-with-query-params").build().toUriString(); @@ -246,16 +246,16 @@ public class FakeApi { * To test \"client\" model * To test \"client\" model *

      200 - successful operation - * @param client client model + * @param body client model * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono testClientModel(Client client) throws RestClientException { - Object postBody = client; + public Mono testClientModel(Client body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling testClientModel"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testClientModel"); } String path = UriComponentsBuilder.fromPath("/fake").build().toUriString(); @@ -480,15 +480,15 @@ public class FakeApi { * test inline additionalProperties * *

      200 - successful operation - * @param requestBody request body + * @param param request body * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono testInlineAdditionalProperties(Map requestBody) throws RestClientException { - Object postBody = requestBody; + public Mono testInlineAdditionalProperties(Map param) throws RestClientException { + Object postBody = param; - // verify the required parameter 'requestBody' is set - if (requestBody == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); + // verify the required parameter 'param' is set + if (param == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'param' when calling testInlineAdditionalProperties"); } String path = UriComponentsBuilder.fromPath("/fake/inline-additionalProperties").build().toUriString(); diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 31e95c77ccb..385b97559f5 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -49,16 +49,16 @@ public class FakeClassnameTags123Api { * To test class name in snake case * To test class name in snake case *

      200 - successful operation - * @param client client model + * @param body client model * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono testClassname(Client client) throws RestClientException { - Object postBody = client; + public Mono testClassname(Client body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'client' is set - if (client == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling testClassname"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testClassname"); } String path = UriComponentsBuilder.fromPath("/fake_classname_test").build().toUriString(); diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/PetApi.java index a746058c7f7..89c82456e76 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/PetApi.java @@ -51,15 +51,15 @@ public class PetApi { * Add a new pet to the store * *

      405 - Invalid input - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono addPet(Pet pet) throws RestClientException { - Object postBody = pet; + public Mono addPet(Pet body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pet' when calling addPet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling addPet"); } String path = UriComponentsBuilder.fromPath("/pet").build().toUriString(); @@ -237,15 +237,15 @@ public class PetApi { *

      400 - Invalid ID supplied *

      404 - Pet not found *

      405 - Validation exception - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono updatePet(Pet pet) throws RestClientException { - Object postBody = pet; + public Mono updatePet(Pet body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'pet' is set - if (pet == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pet' when calling updatePet"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling updatePet"); } String path = UriComponentsBuilder.fromPath("/pet").build().toUriString(); diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/StoreApi.java index c4747ea723a..17dc61fe685 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/StoreApi.java @@ -152,16 +152,16 @@ public class StoreApi { * *

      200 - successful operation *

      400 - Invalid Order - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono placeOrder(Order order) throws RestClientException { - Object postBody = order; + public Mono placeOrder(Order body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'order' is set - if (order == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'order' when calling placeOrder"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling placeOrder"); } String path = UriComponentsBuilder.fromPath("/store/order").build().toUriString(); diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/UserApi.java index 89bcf01c8ae..316dfe888f3 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/UserApi.java @@ -49,15 +49,15 @@ public class UserApi { * Create user * This can only be done by the logged in user. *

      0 - successful operation - * @param user Created user object + * @param body Created user object * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono createUser(User user) throws RestClientException { - Object postBody = user; + public Mono createUser(User body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling createUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling createUser"); } String path = UriComponentsBuilder.fromPath("/user").build().toUriString(); @@ -80,15 +80,15 @@ public class UserApi { * Creates list of users with given input array * *

      0 - successful operation - * @param user List of user object + * @param body List of user object * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono createUsersWithArrayInput(List user) throws RestClientException { - Object postBody = user; + public Mono createUsersWithArrayInput(List body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling createUsersWithArrayInput"); } String path = UriComponentsBuilder.fromPath("/user/createWithArray").build().toUriString(); @@ -111,15 +111,15 @@ public class UserApi { * Creates list of users with given input array * *

      0 - successful operation - * @param user List of user object + * @param body List of user object * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono createUsersWithListInput(List user) throws RestClientException { - Object postBody = user; + public Mono createUsersWithListInput(List body) throws RestClientException { + Object postBody = body; - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling createUsersWithListInput"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling createUsersWithListInput"); } String path = UriComponentsBuilder.fromPath("/user/createWithList").build().toUriString(); @@ -287,20 +287,20 @@ public class UserApi { *

      400 - Invalid user supplied *

      404 - User not found * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Mono updateUser(String username, User user) throws RestClientException { - Object postBody = user; + public Mono updateUser(String username, User body) throws RestClientException { + Object postBody = body; // verify the required parameter 'username' is set if (username == null) { throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'username' when calling updateUser"); } - // verify the required parameter 'user' is set - if (user == null) { - throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling updateUser"); + // verify the required parameter 'body' is set + if (body == null) { + throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling updateUser"); } // create path and map variables diff --git a/samples/client/petstore/kotlin-string/docs/PetApi.md b/samples/client/petstore/kotlin-string/docs/PetApi.md index 4264db745f0..1e6294050c2 100644 --- a/samples/client/petstore/kotlin-string/docs/PetApi.md +++ b/samples/client/petstore/kotlin-string/docs/PetApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -27,9 +27,9 @@ Add a new pet to the store //import org.openapitools.client.models.* val apiInstance = PetApi() -val pet : Pet = // Pet | Pet object that needs to be added to the store +val body : Pet = // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet) + apiInstance.addPet(body) } catch (e: ClientException) { println("4xx response calling PetApi#addPet") e.printStackTrace() @@ -43,7 +43,7 @@ try { 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 @@ -247,7 +247,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -258,9 +258,9 @@ Update an existing pet //import org.openapitools.client.models.* val apiInstance = PetApi() -val pet : Pet = // Pet | Pet object that needs to be added to the store +val body : Pet = // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet) + apiInstance.updatePet(body) } catch (e: ClientException) { println("4xx response calling PetApi#updatePet") e.printStackTrace() @@ -274,7 +274,7 @@ try { 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/kotlin-string/docs/StoreApi.md b/samples/client/petstore/kotlin-string/docs/StoreApi.md index 339ded9f658..160a97d0224 100644 --- a/samples/client/petstore/kotlin-string/docs/StoreApi.md +++ b/samples/client/petstore/kotlin-string/docs/StoreApi.md @@ -148,7 +148,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -159,9 +159,9 @@ Place an order for a pet //import org.openapitools.client.models.* val apiInstance = StoreApi() -val order : Order = // Order | order placed for purchasing the pet +val body : Order = // Order | order placed for purchasing the pet try { - val result : Order = apiInstance.placeOrder(order) + val result : Order = apiInstance.placeOrder(body) println(result) } catch (e: ClientException) { println("4xx response calling StoreApi#placeOrder") @@ -176,7 +176,7 @@ try { 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/kotlin-string/docs/UserApi.md b/samples/client/petstore/kotlin-string/docs/UserApi.md index aac410b658c..26d7b79ba4d 100644 --- a/samples/client/petstore/kotlin-string/docs/UserApi.md +++ b/samples/client/petstore/kotlin-string/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -29,9 +29,9 @@ This can only be done by the logged in user. //import org.openapitools.client.models.* val apiInstance = UserApi() -val user : User = // User | Created user object +val body : User = // User | Created user object try { - apiInstance.createUser(user) + apiInstance.createUser(body) } catch (e: ClientException) { println("4xx response calling UserApi#createUser") e.printStackTrace() @@ -45,7 +45,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -62,7 +62,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -73,9 +73,9 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val user : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.Array = // kotlin.Array | List of user object try { - apiInstance.createUsersWithArrayInput(user) + apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { println("4xx response calling UserApi#createUsersWithArrayInput") e.printStackTrace() @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.Array<User>**](kotlin.Array.md)| List of user object | + **body** | [**kotlin.Array<User>**](kotlin.Array.md)| List of user object | ### Return type @@ -106,7 +106,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -117,9 +117,9 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val user : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.Array = // kotlin.Array | List of user object try { - apiInstance.createUsersWithListInput(user) + apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { println("4xx response calling UserApi#createUsersWithListInput") e.printStackTrace() @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.Array<User>**](kotlin.Array.md)| List of user object | + **body** | [**kotlin.Array<User>**](kotlin.Array.md)| List of user object | ### Return type @@ -328,7 +328,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -342,9 +342,9 @@ This can only be done by the logged in user. val apiInstance = UserApi() val username : kotlin.String = username_example // kotlin.String | name that need to be deleted -val user : User = // User | Updated user object +val body : User = // User | Updated user object try { - apiInstance.updateUser(username, user) + apiInstance.updateUser(username, body) } catch (e: ClientException) { println("4xx response calling UserApi#updateUser") e.printStackTrace() @@ -359,7 +359,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **kotlin.String**| name that need to be deleted | [default to null] - **user** | [**User**](User.md)| Updated user object | + **body** | [**User**](User.md)| Updated user object | ### Return type diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index a34f35793fe..b624957f048 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -21,11 +21,11 @@ class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCli /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @return void */ - fun addPet(pet: Pet) : Unit { - val localVariableBody: kotlin.Any? = pet + fun addPet(body: Pet) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( @@ -180,11 +180,11 @@ class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCli /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @return void */ - fun updatePet(pet: Pet) : Unit { - val localVariableBody: kotlin.Any? = pet + fun updatePet(body: Pet) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index f785eb0a39d..bead1dcc359 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -114,12 +114,12 @@ class StoreApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiC /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @return Order */ @Suppress("UNCHECKED_CAST") - fun placeOrder(order: Order) : Order { - val localVariableBody: kotlin.Any? = order + fun placeOrder(body: Order) : Order { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index e83ca0a7dfd..130def3847f 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -20,11 +20,11 @@ class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCl /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object * @return void */ - fun createUser(user: User) : Unit { - val localVariableBody: kotlin.Any? = user + fun createUser(body: User) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( @@ -51,11 +51,11 @@ class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCl /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @return void */ - fun createUsersWithArrayInput(user: kotlin.Array) : Unit { - val localVariableBody: kotlin.Any? = user + fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( @@ -82,11 +82,11 @@ class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCl /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @return void */ - fun createUsersWithListInput(user: kotlin.Array) : Unit { - val localVariableBody: kotlin.Any? = user + fun createUsersWithListInput(body: kotlin.Array) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( @@ -240,11 +240,11 @@ class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCl * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @return void */ - fun updateUser(username: kotlin.String, user: User) : Unit { - val localVariableBody: kotlin.Any? = user + fun updateUser(username: kotlin.String, body: User) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( diff --git a/samples/client/petstore/kotlin-threetenbp/docs/PetApi.md b/samples/client/petstore/kotlin-threetenbp/docs/PetApi.md index 4264db745f0..1e6294050c2 100644 --- a/samples/client/petstore/kotlin-threetenbp/docs/PetApi.md +++ b/samples/client/petstore/kotlin-threetenbp/docs/PetApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -27,9 +27,9 @@ Add a new pet to the store //import org.openapitools.client.models.* val apiInstance = PetApi() -val pet : Pet = // Pet | Pet object that needs to be added to the store +val body : Pet = // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet) + apiInstance.addPet(body) } catch (e: ClientException) { println("4xx response calling PetApi#addPet") e.printStackTrace() @@ -43,7 +43,7 @@ try { 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 @@ -247,7 +247,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -258,9 +258,9 @@ Update an existing pet //import org.openapitools.client.models.* val apiInstance = PetApi() -val pet : Pet = // Pet | Pet object that needs to be added to the store +val body : Pet = // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet) + apiInstance.updatePet(body) } catch (e: ClientException) { println("4xx response calling PetApi#updatePet") e.printStackTrace() @@ -274,7 +274,7 @@ try { 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/kotlin-threetenbp/docs/StoreApi.md b/samples/client/petstore/kotlin-threetenbp/docs/StoreApi.md index 339ded9f658..160a97d0224 100644 --- a/samples/client/petstore/kotlin-threetenbp/docs/StoreApi.md +++ b/samples/client/petstore/kotlin-threetenbp/docs/StoreApi.md @@ -148,7 +148,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -159,9 +159,9 @@ Place an order for a pet //import org.openapitools.client.models.* val apiInstance = StoreApi() -val order : Order = // Order | order placed for purchasing the pet +val body : Order = // Order | order placed for purchasing the pet try { - val result : Order = apiInstance.placeOrder(order) + val result : Order = apiInstance.placeOrder(body) println(result) } catch (e: ClientException) { println("4xx response calling StoreApi#placeOrder") @@ -176,7 +176,7 @@ try { 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/kotlin-threetenbp/docs/UserApi.md b/samples/client/petstore/kotlin-threetenbp/docs/UserApi.md index aac410b658c..26d7b79ba4d 100644 --- a/samples/client/petstore/kotlin-threetenbp/docs/UserApi.md +++ b/samples/client/petstore/kotlin-threetenbp/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -29,9 +29,9 @@ This can only be done by the logged in user. //import org.openapitools.client.models.* val apiInstance = UserApi() -val user : User = // User | Created user object +val body : User = // User | Created user object try { - apiInstance.createUser(user) + apiInstance.createUser(body) } catch (e: ClientException) { println("4xx response calling UserApi#createUser") e.printStackTrace() @@ -45,7 +45,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -62,7 +62,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -73,9 +73,9 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val user : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.Array = // kotlin.Array | List of user object try { - apiInstance.createUsersWithArrayInput(user) + apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { println("4xx response calling UserApi#createUsersWithArrayInput") e.printStackTrace() @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.Array<User>**](kotlin.Array.md)| List of user object | + **body** | [**kotlin.Array<User>**](kotlin.Array.md)| List of user object | ### Return type @@ -106,7 +106,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -117,9 +117,9 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val user : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.Array = // kotlin.Array | List of user object try { - apiInstance.createUsersWithListInput(user) + apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { println("4xx response calling UserApi#createUsersWithListInput") e.printStackTrace() @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.Array<User>**](kotlin.Array.md)| List of user object | + **body** | [**kotlin.Array<User>**](kotlin.Array.md)| List of user object | ### Return type @@ -328,7 +328,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -342,9 +342,9 @@ This can only be done by the logged in user. val apiInstance = UserApi() val username : kotlin.String = username_example // kotlin.String | name that need to be deleted -val user : User = // User | Updated user object +val body : User = // User | Updated user object try { - apiInstance.updateUser(username, user) + apiInstance.updateUser(username, body) } catch (e: ClientException) { println("4xx response calling UserApi#updateUser") e.printStackTrace() @@ -359,7 +359,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **kotlin.String**| name that need to be deleted | [default to null] - **user** | [**User**](User.md)| Updated user object | + **body** | [**User**](User.md)| Updated user object | ### Return type diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 1f2746d24a0..98909177424 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -22,11 +22,11 @@ class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCli /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @return void */ - fun addPet(pet: Pet) : Unit { - val localVariableBody: kotlin.Any? = pet + fun addPet(body: Pet) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( @@ -181,11 +181,11 @@ class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCli /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @return void */ - fun updatePet(pet: Pet) : Unit { - val localVariableBody: kotlin.Any? = pet + fun updatePet(body: Pet) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index 78a9b60d440..518113b4708 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -115,12 +115,12 @@ class StoreApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiC /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @return Order */ @Suppress("UNCHECKED_CAST") - fun placeOrder(order: Order) : Order { - val localVariableBody: kotlin.Any? = order + fun placeOrder(body: Order) : Order { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index 45775a597a6..2e7ed153438 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -21,11 +21,11 @@ class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCl /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object * @return void */ - fun createUser(user: User) : Unit { - val localVariableBody: kotlin.Any? = user + fun createUser(body: User) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( @@ -52,11 +52,11 @@ class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCl /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @return void */ - fun createUsersWithArrayInput(user: kotlin.Array) : Unit { - val localVariableBody: kotlin.Any? = user + fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( @@ -83,11 +83,11 @@ class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCl /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @return void */ - fun createUsersWithListInput(user: kotlin.Array) : Unit { - val localVariableBody: kotlin.Any? = user + fun createUsersWithListInput(body: kotlin.Array) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( @@ -241,11 +241,11 @@ class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCl * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @return void */ - fun updateUser(username: kotlin.String, user: User) : Unit { - val localVariableBody: kotlin.Any? = user + fun updateUser(username: kotlin.String, body: User) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( diff --git a/samples/client/petstore/kotlin/docs/PetApi.md b/samples/client/petstore/kotlin/docs/PetApi.md index 4264db745f0..1e6294050c2 100644 --- a/samples/client/petstore/kotlin/docs/PetApi.md +++ b/samples/client/petstore/kotlin/docs/PetApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **addPet** -> addPet(pet) +> addPet(body) Add a new pet to the store @@ -27,9 +27,9 @@ Add a new pet to the store //import org.openapitools.client.models.* val apiInstance = PetApi() -val pet : Pet = // Pet | Pet object that needs to be added to the store +val body : Pet = // Pet | Pet object that needs to be added to the store try { - apiInstance.addPet(pet) + apiInstance.addPet(body) } catch (e: ClientException) { println("4xx response calling PetApi#addPet") e.printStackTrace() @@ -43,7 +43,7 @@ try { 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 @@ -247,7 +247,7 @@ Name | Type | Description | Notes # **updatePet** -> updatePet(pet) +> updatePet(body) Update an existing pet @@ -258,9 +258,9 @@ Update an existing pet //import org.openapitools.client.models.* val apiInstance = PetApi() -val pet : Pet = // Pet | Pet object that needs to be added to the store +val body : Pet = // Pet | Pet object that needs to be added to the store try { - apiInstance.updatePet(pet) + apiInstance.updatePet(body) } catch (e: ClientException) { println("4xx response calling PetApi#updatePet") e.printStackTrace() @@ -274,7 +274,7 @@ try { 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/kotlin/docs/StoreApi.md b/samples/client/petstore/kotlin/docs/StoreApi.md index 339ded9f658..160a97d0224 100644 --- a/samples/client/petstore/kotlin/docs/StoreApi.md +++ b/samples/client/petstore/kotlin/docs/StoreApi.md @@ -148,7 +148,7 @@ No authorization required # **placeOrder** -> Order placeOrder(order) +> Order placeOrder(body) Place an order for a pet @@ -159,9 +159,9 @@ Place an order for a pet //import org.openapitools.client.models.* val apiInstance = StoreApi() -val order : Order = // Order | order placed for purchasing the pet +val body : Order = // Order | order placed for purchasing the pet try { - val result : Order = apiInstance.placeOrder(order) + val result : Order = apiInstance.placeOrder(body) println(result) } catch (e: ClientException) { println("4xx response calling StoreApi#placeOrder") @@ -176,7 +176,7 @@ try { 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/kotlin/docs/UserApi.md b/samples/client/petstore/kotlin/docs/UserApi.md index aac410b658c..26d7b79ba4d 100644 --- a/samples/client/petstore/kotlin/docs/UserApi.md +++ b/samples/client/petstore/kotlin/docs/UserApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **createUser** -> createUser(user) +> createUser(body) Create user @@ -29,9 +29,9 @@ This can only be done by the logged in user. //import org.openapitools.client.models.* val apiInstance = UserApi() -val user : User = // User | Created user object +val body : User = // User | Created user object try { - apiInstance.createUser(user) + apiInstance.createUser(body) } catch (e: ClientException) { println("4xx response calling UserApi#createUser") e.printStackTrace() @@ -45,7 +45,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -62,7 +62,7 @@ No authorization required # **createUsersWithArrayInput** -> createUsersWithArrayInput(user) +> createUsersWithArrayInput(body) Creates list of users with given input array @@ -73,9 +73,9 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val user : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.Array = // kotlin.Array | List of user object try { - apiInstance.createUsersWithArrayInput(user) + apiInstance.createUsersWithArrayInput(body) } catch (e: ClientException) { println("4xx response calling UserApi#createUsersWithArrayInput") e.printStackTrace() @@ -89,7 +89,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.Array<User>**](kotlin.Array.md)| List of user object | + **body** | [**kotlin.Array<User>**](kotlin.Array.md)| List of user object | ### Return type @@ -106,7 +106,7 @@ No authorization required # **createUsersWithListInput** -> createUsersWithListInput(user) +> createUsersWithListInput(body) Creates list of users with given input array @@ -117,9 +117,9 @@ Creates list of users with given input array //import org.openapitools.client.models.* val apiInstance = UserApi() -val user : kotlin.Array = // kotlin.Array | List of user object +val body : kotlin.Array = // kotlin.Array | List of user object try { - apiInstance.createUsersWithListInput(user) + apiInstance.createUsersWithListInput(body) } catch (e: ClientException) { println("4xx response calling UserApi#createUsersWithListInput") e.printStackTrace() @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**kotlin.Array<User>**](kotlin.Array.md)| List of user object | + **body** | [**kotlin.Array<User>**](kotlin.Array.md)| List of user object | ### Return type @@ -328,7 +328,7 @@ No authorization required # **updateUser** -> updateUser(username, user) +> updateUser(username, body) Updated user @@ -342,9 +342,9 @@ This can only be done by the logged in user. val apiInstance = UserApi() val username : kotlin.String = username_example // kotlin.String | name that need to be deleted -val user : User = // User | Updated user object +val body : User = // User | Updated user object try { - apiInstance.updateUser(username, user) + apiInstance.updateUser(username, body) } catch (e: ClientException) { println("4xx response calling UserApi#updateUser") e.printStackTrace() @@ -359,7 +359,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **kotlin.String**| name that need to be deleted | [default to null] - **user** | [**User**](User.md)| Updated user object | + **body** | [**User**](User.md)| Updated user object | ### Return type diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index a34f35793fe..b624957f048 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -21,11 +21,11 @@ class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCli /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @return void */ - fun addPet(pet: Pet) : Unit { - val localVariableBody: kotlin.Any? = pet + fun addPet(body: Pet) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( @@ -180,11 +180,11 @@ class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCli /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @return void */ - fun updatePet(pet: Pet) : Unit { - val localVariableBody: kotlin.Any? = pet + fun updatePet(body: Pet) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt index f785eb0a39d..bead1dcc359 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -114,12 +114,12 @@ class StoreApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiC /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @return Order */ @Suppress("UNCHECKED_CAST") - fun placeOrder(order: Order) : Order { - val localVariableBody: kotlin.Any? = order + fun placeOrder(body: Order) : Order { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt index e83ca0a7dfd..130def3847f 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/UserApi.kt @@ -20,11 +20,11 @@ class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCl /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object * @return void */ - fun createUser(user: User) : Unit { - val localVariableBody: kotlin.Any? = user + fun createUser(body: User) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( @@ -51,11 +51,11 @@ class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCl /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @return void */ - fun createUsersWithArrayInput(user: kotlin.Array) : Unit { - val localVariableBody: kotlin.Any? = user + fun createUsersWithArrayInput(body: kotlin.Array) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( @@ -82,11 +82,11 @@ class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCl /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @return void */ - fun createUsersWithListInput(user: kotlin.Array) : Unit { - val localVariableBody: kotlin.Any? = user + fun createUsersWithListInput(body: kotlin.Array) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( @@ -240,11 +240,11 @@ class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiCl * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @return void */ - fun updateUser(username: kotlin.String, user: User) : Unit { - val localVariableBody: kotlin.Any? = user + fun updateUser(username: kotlin.String, body: User) : Unit { + val localVariableBody: kotlin.Any? = body val localVariableQuery: MultiValueMap = mapOf() val localVariableHeaders: kotlin.collections.Map = mapOf() val localVariableConfig = RequestConfig( diff --git a/samples/client/petstore/php/OpenAPIClient-php/README.md b/samples/client/petstore/php/OpenAPIClient-php/README.md index f42e37b4a46..c97a52feb07 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/README.md +++ b/samples/client/petstore/php/OpenAPIClient-php/README.md @@ -61,10 +61,10 @@ $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model +$body = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model try { - $result = $apiInstance->call123TestSpecialTags($client); + $result = $apiInstance->call123TestSpecialTags($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling AnotherFakeApi->call123TestSpecialTags: ', $e->getMessage(), PHP_EOL; diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md index 7534a4dd24a..b2a2d9703c2 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **call123TestSpecialTags** -> \OpenAPI\Client\Model\Client call123TestSpecialTags($client) +> \OpenAPI\Client\Model\Client call123TestSpecialTags($body) To test special tags @@ -24,10 +24,10 @@ $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model +$body = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model try { - $result = $apiInstance->call123TestSpecialTags($client); + $result = $apiInstance->call123TestSpecialTags($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling AnotherFakeApi->call123TestSpecialTags: ', $e->getMessage(), PHP_EOL; @@ -39,7 +39,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model | + **body** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model | ### Return type diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md index c1ea9868ecc..666173d0a4e 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md @@ -68,7 +68,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **fakeOuterCompositeSerialize** -> \OpenAPI\Client\Model\OuterComposite fakeOuterCompositeSerialize($outer_composite) +> \OpenAPI\Client\Model\OuterComposite fakeOuterCompositeSerialize($body) @@ -84,10 +84,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$outer_composite = new \OpenAPI\Client\Model\OuterComposite(); // \OpenAPI\Client\Model\OuterComposite | Input composite as post body +$body = new \OpenAPI\Client\Model\OuterComposite(); // \OpenAPI\Client\Model\OuterComposite | Input composite as post body try { - $result = $apiInstance->fakeOuterCompositeSerialize($outer_composite); + $result = $apiInstance->fakeOuterCompositeSerialize($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling FakeApi->fakeOuterCompositeSerialize: ', $e->getMessage(), PHP_EOL; @@ -99,7 +99,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outer_composite** | [**\OpenAPI\Client\Model\OuterComposite**](../Model/OuterComposite.md)| Input composite as post body | [optional] + **body** | [**\OpenAPI\Client\Model\OuterComposite**](../Model/OuterComposite.md)| Input composite as post body | [optional] ### Return type @@ -215,7 +215,7 @@ No authorization required [[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) # **testBodyWithFileSchema** -> testBodyWithFileSchema($file_schema_test_class) +> testBodyWithFileSchema($body) @@ -231,10 +231,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$file_schema_test_class = new \OpenAPI\Client\Model\FileSchemaTestClass(); // \OpenAPI\Client\Model\FileSchemaTestClass | +$body = new \OpenAPI\Client\Model\FileSchemaTestClass(); // \OpenAPI\Client\Model\FileSchemaTestClass | try { - $apiInstance->testBodyWithFileSchema($file_schema_test_class); + $apiInstance->testBodyWithFileSchema($body); } catch (Exception $e) { echo 'Exception when calling FakeApi->testBodyWithFileSchema: ', $e->getMessage(), PHP_EOL; } @@ -245,7 +245,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **file_schema_test_class** | [**\OpenAPI\Client\Model\FileSchemaTestClass**](../Model/FileSchemaTestClass.md)| | + **body** | [**\OpenAPI\Client\Model\FileSchemaTestClass**](../Model/FileSchemaTestClass.md)| | ### Return type @@ -263,7 +263,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **testBodyWithQueryParams** -> testBodyWithQueryParams($query, $user) +> testBodyWithQueryParams($query, $body) @@ -278,10 +278,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi( new GuzzleHttp\Client() ); $query = 'query_example'; // string | -$user = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | +$body = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | try { - $apiInstance->testBodyWithQueryParams($query, $user); + $apiInstance->testBodyWithQueryParams($query, $body); } catch (Exception $e) { echo 'Exception when calling FakeApi->testBodyWithQueryParams: ', $e->getMessage(), PHP_EOL; } @@ -293,7 +293,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **string**| | - **user** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| | + **body** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| | ### Return type @@ -311,7 +311,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **testClientModel** -> \OpenAPI\Client\Model\Client testClientModel($client) +> \OpenAPI\Client\Model\Client testClientModel($body) To test \"client\" model @@ -327,10 +327,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model +$body = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model try { - $result = $apiInstance->testClientModel($client); + $result = $apiInstance->testClientModel($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling FakeApi->testClientModel: ', $e->getMessage(), PHP_EOL; @@ -342,7 +342,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model | + **body** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model | ### Return type @@ -562,7 +562,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **testInlineAdditionalProperties** -> testInlineAdditionalProperties($request_body) +> testInlineAdditionalProperties($param) test inline additionalProperties @@ -576,10 +576,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$request_body = array('key' => 'request_body_example'); // map[string,string] | request body +$param = array('key' => 'param_example'); // map[string,string] | request body try { - $apiInstance->testInlineAdditionalProperties($request_body); + $apiInstance->testInlineAdditionalProperties($param); } catch (Exception $e) { echo 'Exception when calling FakeApi->testInlineAdditionalProperties: ', $e->getMessage(), PHP_EOL; } @@ -590,7 +590,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request_body** | [**map[string,string]**](../Model/string.md)| request body | + **param** | [**map[string,string]**](../Model/string.md)| request body | ### Return type diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeClassnameTags123Api.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeClassnameTags123Api.md index b4c7dcfff38..447242b2043 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeClassnameTags123Api.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeClassnameTags123Api.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **testClassname** -> \OpenAPI\Client\Model\Client testClassname($client) +> \OpenAPI\Client\Model\Client testClassname($body) To test class name in snake case @@ -30,10 +30,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeClassnameTags123Api( new GuzzleHttp\Client(), $config ); -$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model +$body = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model try { - $result = $apiInstance->testClassname($client); + $result = $apiInstance->testClassname($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling FakeClassnameTags123Api->testClassname: ', $e->getMessage(), PHP_EOL; @@ -45,7 +45,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model | + **body** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model | ### Return type diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/PetApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/PetApi.md index ebd48de8fe3..8b2f55139f7 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/PetApi.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/PetApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **addPet** -> addPet($pet) +> addPet($body) Add a new pet to the store @@ -34,10 +34,10 @@ $apiInstance = new OpenAPI\Client\Api\PetApi( new GuzzleHttp\Client(), $config ); -$pet = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store +$body = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store try { - $apiInstance->addPet($pet); + $apiInstance->addPet($body); } catch (Exception $e) { echo 'Exception when calling PetApi->addPet: ', $e->getMessage(), PHP_EOL; } @@ -48,7 +48,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store | + **body** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store | ### Return type @@ -279,7 +279,7 @@ Name | Type | Description | Notes [[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) # **updatePet** -> updatePet($pet) +> updatePet($body) Update an existing pet @@ -297,10 +297,10 @@ $apiInstance = new OpenAPI\Client\Api\PetApi( new GuzzleHttp\Client(), $config ); -$pet = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store +$body = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store try { - $apiInstance->updatePet($pet); + $apiInstance->updatePet($body); } catch (Exception $e) { echo 'Exception when calling PetApi->updatePet: ', $e->getMessage(), PHP_EOL; } @@ -311,7 +311,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store | + **body** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store | ### Return type diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/StoreApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/StoreApi.md index 9c6cb4a782e..8dbdc81fe26 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/StoreApi.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/StoreApi.md @@ -159,7 +159,7 @@ No authorization required [[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) # **placeOrder** -> \OpenAPI\Client\Model\Order placeOrder($order) +> \OpenAPI\Client\Model\Order placeOrder($body) Place an order for a pet @@ -173,10 +173,10 @@ $apiInstance = new OpenAPI\Client\Api\StoreApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$order = new \OpenAPI\Client\Model\Order(); // \OpenAPI\Client\Model\Order | order placed for purchasing the pet +$body = new \OpenAPI\Client\Model\Order(); // \OpenAPI\Client\Model\Order | order placed for purchasing the pet try { - $result = $apiInstance->placeOrder($order); + $result = $apiInstance->placeOrder($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling StoreApi->placeOrder: ', $e->getMessage(), PHP_EOL; @@ -188,7 +188,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | [**\OpenAPI\Client\Model\Order**](../Model/Order.md)| order placed for purchasing the pet | + **body** | [**\OpenAPI\Client\Model\Order**](../Model/Order.md)| order placed for purchasing the pet | ### Return type diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/UserApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/UserApi.md index c43b9262500..a3cec4c5713 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/UserApi.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/UserApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description # **createUser** -> createUser($user) +> createUser($body) Create user @@ -31,10 +31,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$user = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Created user object +$body = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Created user object try { - $apiInstance->createUser($user); + $apiInstance->createUser($body); } catch (Exception $e) { echo 'Exception when calling UserApi->createUser: ', $e->getMessage(), PHP_EOL; } @@ -45,7 +45,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Created user object | + **body** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Created user object | ### Return type @@ -63,7 +63,7 @@ No authorization required [[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** -> createUsersWithArrayInput($user) +> createUsersWithArrayInput($body) Creates list of users with given input array @@ -77,10 +77,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$user = array(new \OpenAPI\Client\Model\array()); // \OpenAPI\Client\Model\User[] | List of user object +$body = array(new \OpenAPI\Client\Model\array()); // \OpenAPI\Client\Model\User[] | List of user object try { - $apiInstance->createUsersWithArrayInput($user); + $apiInstance->createUsersWithArrayInput($body); } catch (Exception $e) { echo 'Exception when calling UserApi->createUsersWithArrayInput: ', $e->getMessage(), PHP_EOL; } @@ -91,7 +91,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**\OpenAPI\Client\Model\User[]**](../Model/array.md)| List of user object | + **body** | [**\OpenAPI\Client\Model\User[]**](../Model/array.md)| List of user object | ### Return type @@ -109,7 +109,7 @@ No authorization required [[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** -> createUsersWithListInput($user) +> createUsersWithListInput($body) Creates list of users with given input array @@ -123,10 +123,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$user = array(new \OpenAPI\Client\Model\array()); // \OpenAPI\Client\Model\User[] | List of user object +$body = array(new \OpenAPI\Client\Model\array()); // \OpenAPI\Client\Model\User[] | List of user object try { - $apiInstance->createUsersWithListInput($user); + $apiInstance->createUsersWithListInput($body); } catch (Exception $e) { echo 'Exception when calling UserApi->createUsersWithListInput: ', $e->getMessage(), PHP_EOL; } @@ -137,7 +137,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**\OpenAPI\Client\Model\User[]**](../Model/array.md)| List of user object | + **body** | [**\OpenAPI\Client\Model\User[]**](../Model/array.md)| List of user object | ### Return type @@ -341,7 +341,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **updateUser** -> updateUser($username, $user) +> updateUser($username, $body) Updated user @@ -358,10 +358,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi( new GuzzleHttp\Client() ); $username = 'username_example'; // string | name that need to be deleted -$user = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Updated user object +$body = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Updated user object try { - $apiInstance->updateUser($username, $user); + $apiInstance->updateUser($username, $body); } catch (Exception $e) { echo 'Exception when calling UserApi->updateUser: ', $e->getMessage(), PHP_EOL; } @@ -373,7 +373,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **string**| name that need to be deleted | - **user** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Updated user object | + **body** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Updated user object | ### Return type diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php index 62319b80069..a5f0b663f1a 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php @@ -92,15 +92,15 @@ class AnotherFakeApi * * To test special tags * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \OpenAPI\Client\Model\Client */ - public function call123TestSpecialTags($client) + public function call123TestSpecialTags($body) { - list($response) = $this->call123TestSpecialTagsWithHttpInfo($client); + list($response) = $this->call123TestSpecialTagsWithHttpInfo($body); return $response; } @@ -109,15 +109,15 @@ class AnotherFakeApi * * To test special tags * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings) */ - public function call123TestSpecialTagsWithHttpInfo($client) + public function call123TestSpecialTagsWithHttpInfo($body) { - $request = $this->call123TestSpecialTagsRequest($client); + $request = $this->call123TestSpecialTagsRequest($body); try { $options = $this->createHttpClientOption(); @@ -197,14 +197,14 @@ class AnotherFakeApi * * To test special tags * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function call123TestSpecialTagsAsync($client) + public function call123TestSpecialTagsAsync($body) { - return $this->call123TestSpecialTagsAsyncWithHttpInfo($client) + return $this->call123TestSpecialTagsAsyncWithHttpInfo($body) ->then( function ($response) { return $response[0]; @@ -217,15 +217,15 @@ class AnotherFakeApi * * To test special tags * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function call123TestSpecialTagsAsyncWithHttpInfo($client) + public function call123TestSpecialTagsAsyncWithHttpInfo($body) { $returnType = '\OpenAPI\Client\Model\Client'; - $request = $this->call123TestSpecialTagsRequest($client); + $request = $this->call123TestSpecialTagsRequest($body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -264,17 +264,17 @@ class AnotherFakeApi /** * Create request for operation 'call123TestSpecialTags' * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function call123TestSpecialTagsRequest($client) + protected function call123TestSpecialTagsRequest($body) { - // verify the required parameter 'client' is set - if ($client === null || (is_array($client) && count($client) === 0)) { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $client when calling call123TestSpecialTags' + 'Missing the required parameter $body when calling call123TestSpecialTags' ); } @@ -289,8 +289,8 @@ class AnotherFakeApi // body params $_tempBody = null; - if (isset($client)) { - $_tempBody = $client; + if (isset($body)) { + $_tempBody = $body; } if ($multipart) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php index 4f73904867b..eda883abd12 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php @@ -347,30 +347,30 @@ class FakeApi /** * Operation fakeOuterCompositeSerialize * - * @param \OpenAPI\Client\Model\OuterComposite $outer_composite Input composite as post body (optional) + * @param \OpenAPI\Client\Model\OuterComposite $body Input composite as post body (optional) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \OpenAPI\Client\Model\OuterComposite */ - public function fakeOuterCompositeSerialize($outer_composite = null) + public function fakeOuterCompositeSerialize($body = null) { - list($response) = $this->fakeOuterCompositeSerializeWithHttpInfo($outer_composite); + list($response) = $this->fakeOuterCompositeSerializeWithHttpInfo($body); return $response; } /** * Operation fakeOuterCompositeSerializeWithHttpInfo * - * @param \OpenAPI\Client\Model\OuterComposite $outer_composite Input composite as post body (optional) + * @param \OpenAPI\Client\Model\OuterComposite $body Input composite as post body (optional) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \OpenAPI\Client\Model\OuterComposite, HTTP status code, HTTP response headers (array of strings) */ - public function fakeOuterCompositeSerializeWithHttpInfo($outer_composite = null) + public function fakeOuterCompositeSerializeWithHttpInfo($body = null) { - $request = $this->fakeOuterCompositeSerializeRequest($outer_composite); + $request = $this->fakeOuterCompositeSerializeRequest($body); try { $options = $this->createHttpClientOption(); @@ -450,14 +450,14 @@ class FakeApi * * * - * @param \OpenAPI\Client\Model\OuterComposite $outer_composite Input composite as post body (optional) + * @param \OpenAPI\Client\Model\OuterComposite $body Input composite as post body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function fakeOuterCompositeSerializeAsync($outer_composite = null) + public function fakeOuterCompositeSerializeAsync($body = null) { - return $this->fakeOuterCompositeSerializeAsyncWithHttpInfo($outer_composite) + return $this->fakeOuterCompositeSerializeAsyncWithHttpInfo($body) ->then( function ($response) { return $response[0]; @@ -470,15 +470,15 @@ class FakeApi * * * - * @param \OpenAPI\Client\Model\OuterComposite $outer_composite Input composite as post body (optional) + * @param \OpenAPI\Client\Model\OuterComposite $body Input composite as post body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function fakeOuterCompositeSerializeAsyncWithHttpInfo($outer_composite = null) + public function fakeOuterCompositeSerializeAsyncWithHttpInfo($body = null) { $returnType = '\OpenAPI\Client\Model\OuterComposite'; - $request = $this->fakeOuterCompositeSerializeRequest($outer_composite); + $request = $this->fakeOuterCompositeSerializeRequest($body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -517,12 +517,12 @@ class FakeApi /** * Create request for operation 'fakeOuterCompositeSerialize' * - * @param \OpenAPI\Client\Model\OuterComposite $outer_composite Input composite as post body (optional) + * @param \OpenAPI\Client\Model\OuterComposite $body Input composite as post body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function fakeOuterCompositeSerializeRequest($outer_composite = null) + protected function fakeOuterCompositeSerializeRequest($body = null) { $resourcePath = '/fake/outer/composite'; @@ -536,8 +536,8 @@ class FakeApi // body params $_tempBody = null; - if (isset($outer_composite)) { - $_tempBody = $outer_composite; + if (isset($body)) { + $_tempBody = $body; } if ($multipart) { @@ -1118,29 +1118,29 @@ class FakeApi /** * Operation testBodyWithFileSchema * - * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class file_schema_test_class (required) + * @param \OpenAPI\Client\Model\FileSchemaTestClass $body body (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function testBodyWithFileSchema($file_schema_test_class) + public function testBodyWithFileSchema($body) { - $this->testBodyWithFileSchemaWithHttpInfo($file_schema_test_class); + $this->testBodyWithFileSchemaWithHttpInfo($body); } /** * Operation testBodyWithFileSchemaWithHttpInfo * - * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) + * @param \OpenAPI\Client\Model\FileSchemaTestClass $body (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function testBodyWithFileSchemaWithHttpInfo($file_schema_test_class) + public function testBodyWithFileSchemaWithHttpInfo($body) { - $request = $this->testBodyWithFileSchemaRequest($file_schema_test_class); + $request = $this->testBodyWithFileSchemaRequest($body); try { $options = $this->createHttpClientOption(); @@ -1184,14 +1184,14 @@ class FakeApi * * * - * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) + * @param \OpenAPI\Client\Model\FileSchemaTestClass $body (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function testBodyWithFileSchemaAsync($file_schema_test_class) + public function testBodyWithFileSchemaAsync($body) { - return $this->testBodyWithFileSchemaAsyncWithHttpInfo($file_schema_test_class) + return $this->testBodyWithFileSchemaAsyncWithHttpInfo($body) ->then( function ($response) { return $response[0]; @@ -1204,15 +1204,15 @@ class FakeApi * * * - * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) + * @param \OpenAPI\Client\Model\FileSchemaTestClass $body (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function testBodyWithFileSchemaAsyncWithHttpInfo($file_schema_test_class) + public function testBodyWithFileSchemaAsyncWithHttpInfo($body) { $returnType = ''; - $request = $this->testBodyWithFileSchemaRequest($file_schema_test_class); + $request = $this->testBodyWithFileSchemaRequest($body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1240,17 +1240,17 @@ class FakeApi /** * Create request for operation 'testBodyWithFileSchema' * - * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) + * @param \OpenAPI\Client\Model\FileSchemaTestClass $body (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function testBodyWithFileSchemaRequest($file_schema_test_class) + protected function testBodyWithFileSchemaRequest($body) { - // verify the required parameter 'file_schema_test_class' is set - if ($file_schema_test_class === null || (is_array($file_schema_test_class) && count($file_schema_test_class) === 0)) { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $file_schema_test_class when calling testBodyWithFileSchema' + 'Missing the required parameter $body when calling testBodyWithFileSchema' ); } @@ -1265,8 +1265,8 @@ class FakeApi // body params $_tempBody = null; - if (isset($file_schema_test_class)) { - $_tempBody = $file_schema_test_class; + if (isset($body)) { + $_tempBody = $body; } if ($multipart) { @@ -1334,30 +1334,30 @@ class FakeApi * Operation testBodyWithQueryParams * * @param string $query query (required) - * @param \OpenAPI\Client\Model\User $user user (required) + * @param \OpenAPI\Client\Model\User $body body (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function testBodyWithQueryParams($query, $user) + public function testBodyWithQueryParams($query, $body) { - $this->testBodyWithQueryParamsWithHttpInfo($query, $user); + $this->testBodyWithQueryParamsWithHttpInfo($query, $body); } /** * Operation testBodyWithQueryParamsWithHttpInfo * * @param string $query (required) - * @param \OpenAPI\Client\Model\User $user (required) + * @param \OpenAPI\Client\Model\User $body (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function testBodyWithQueryParamsWithHttpInfo($query, $user) + public function testBodyWithQueryParamsWithHttpInfo($query, $body) { - $request = $this->testBodyWithQueryParamsRequest($query, $user); + $request = $this->testBodyWithQueryParamsRequest($query, $body); try { $options = $this->createHttpClientOption(); @@ -1402,14 +1402,14 @@ class FakeApi * * * @param string $query (required) - * @param \OpenAPI\Client\Model\User $user (required) + * @param \OpenAPI\Client\Model\User $body (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function testBodyWithQueryParamsAsync($query, $user) + public function testBodyWithQueryParamsAsync($query, $body) { - return $this->testBodyWithQueryParamsAsyncWithHttpInfo($query, $user) + return $this->testBodyWithQueryParamsAsyncWithHttpInfo($query, $body) ->then( function ($response) { return $response[0]; @@ -1423,15 +1423,15 @@ class FakeApi * * * @param string $query (required) - * @param \OpenAPI\Client\Model\User $user (required) + * @param \OpenAPI\Client\Model\User $body (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function testBodyWithQueryParamsAsyncWithHttpInfo($query, $user) + public function testBodyWithQueryParamsAsyncWithHttpInfo($query, $body) { $returnType = ''; - $request = $this->testBodyWithQueryParamsRequest($query, $user); + $request = $this->testBodyWithQueryParamsRequest($query, $body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1460,12 +1460,12 @@ class FakeApi * Create request for operation 'testBodyWithQueryParams' * * @param string $query (required) - * @param \OpenAPI\Client\Model\User $user (required) + * @param \OpenAPI\Client\Model\User $body (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function testBodyWithQueryParamsRequest($query, $user) + protected function testBodyWithQueryParamsRequest($query, $body) { // verify the required parameter 'query' is set if ($query === null || (is_array($query) && count($query) === 0)) { @@ -1473,10 +1473,10 @@ class FakeApi 'Missing the required parameter $query when calling testBodyWithQueryParams' ); } - // verify the required parameter 'user' is set - if ($user === null || (is_array($user) && count($user) === 0)) { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $user when calling testBodyWithQueryParams' + 'Missing the required parameter $body when calling testBodyWithQueryParams' ); } @@ -1495,8 +1495,8 @@ class FakeApi // body params $_tempBody = null; - if (isset($user)) { - $_tempBody = $user; + if (isset($body)) { + $_tempBody = $body; } if ($multipart) { @@ -1565,15 +1565,15 @@ class FakeApi * * To test \"client\" model * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \OpenAPI\Client\Model\Client */ - public function testClientModel($client) + public function testClientModel($body) { - list($response) = $this->testClientModelWithHttpInfo($client); + list($response) = $this->testClientModelWithHttpInfo($body); return $response; } @@ -1582,15 +1582,15 @@ class FakeApi * * To test \"client\" model * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings) */ - public function testClientModelWithHttpInfo($client) + public function testClientModelWithHttpInfo($body) { - $request = $this->testClientModelRequest($client); + $request = $this->testClientModelRequest($body); try { $options = $this->createHttpClientOption(); @@ -1670,14 +1670,14 @@ class FakeApi * * To test \"client\" model * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function testClientModelAsync($client) + public function testClientModelAsync($body) { - return $this->testClientModelAsyncWithHttpInfo($client) + return $this->testClientModelAsyncWithHttpInfo($body) ->then( function ($response) { return $response[0]; @@ -1690,15 +1690,15 @@ class FakeApi * * To test \"client\" model * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function testClientModelAsyncWithHttpInfo($client) + public function testClientModelAsyncWithHttpInfo($body) { $returnType = '\OpenAPI\Client\Model\Client'; - $request = $this->testClientModelRequest($client); + $request = $this->testClientModelRequest($body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1737,17 +1737,17 @@ class FakeApi /** * Create request for operation 'testClientModel' * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function testClientModelRequest($client) + protected function testClientModelRequest($body) { - // verify the required parameter 'client' is set - if ($client === null || (is_array($client) && count($client) === 0)) { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $client when calling testClientModel' + 'Missing the required parameter $body when calling testClientModel' ); } @@ -1762,8 +1762,8 @@ class FakeApi // body params $_tempBody = null; - if (isset($client)) { - $_tempBody = $client; + if (isset($body)) { + $_tempBody = $body; } if ($multipart) { @@ -2817,15 +2817,15 @@ class FakeApi * * test inline additionalProperties * - * @param map[string,string] $request_body request body (required) + * @param map[string,string] $param request body (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function testInlineAdditionalProperties($request_body) + public function testInlineAdditionalProperties($param) { - $this->testInlineAdditionalPropertiesWithHttpInfo($request_body); + $this->testInlineAdditionalPropertiesWithHttpInfo($param); } /** @@ -2833,15 +2833,15 @@ class FakeApi * * test inline additionalProperties * - * @param map[string,string] $request_body request body (required) + * @param map[string,string] $param request body (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function testInlineAdditionalPropertiesWithHttpInfo($request_body) + public function testInlineAdditionalPropertiesWithHttpInfo($param) { - $request = $this->testInlineAdditionalPropertiesRequest($request_body); + $request = $this->testInlineAdditionalPropertiesRequest($param); try { $options = $this->createHttpClientOption(); @@ -2885,14 +2885,14 @@ class FakeApi * * test inline additionalProperties * - * @param map[string,string] $request_body request body (required) + * @param map[string,string] $param request body (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function testInlineAdditionalPropertiesAsync($request_body) + public function testInlineAdditionalPropertiesAsync($param) { - return $this->testInlineAdditionalPropertiesAsyncWithHttpInfo($request_body) + return $this->testInlineAdditionalPropertiesAsyncWithHttpInfo($param) ->then( function ($response) { return $response[0]; @@ -2905,15 +2905,15 @@ class FakeApi * * test inline additionalProperties * - * @param map[string,string] $request_body request body (required) + * @param map[string,string] $param request body (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function testInlineAdditionalPropertiesAsyncWithHttpInfo($request_body) + public function testInlineAdditionalPropertiesAsyncWithHttpInfo($param) { $returnType = ''; - $request = $this->testInlineAdditionalPropertiesRequest($request_body); + $request = $this->testInlineAdditionalPropertiesRequest($param); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2941,17 +2941,17 @@ class FakeApi /** * Create request for operation 'testInlineAdditionalProperties' * - * @param map[string,string] $request_body request body (required) + * @param map[string,string] $param request body (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function testInlineAdditionalPropertiesRequest($request_body) + protected function testInlineAdditionalPropertiesRequest($param) { - // verify the required parameter 'request_body' is set - if ($request_body === null || (is_array($request_body) && count($request_body) === 0)) { + // verify the required parameter 'param' is set + if ($param === null || (is_array($param) && count($param) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $request_body when calling testInlineAdditionalProperties' + 'Missing the required parameter $param when calling testInlineAdditionalProperties' ); } @@ -2966,8 +2966,8 @@ class FakeApi // body params $_tempBody = null; - if (isset($request_body)) { - $_tempBody = $request_body; + if (isset($param)) { + $_tempBody = $param; } if ($multipart) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeClassnameTags123Api.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeClassnameTags123Api.php index 44eb33aa4e6..2968d306fb4 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeClassnameTags123Api.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeClassnameTags123Api.php @@ -92,15 +92,15 @@ class FakeClassnameTags123Api * * To test class name in snake case * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \OpenAPI\Client\Model\Client */ - public function testClassname($client) + public function testClassname($body) { - list($response) = $this->testClassnameWithHttpInfo($client); + list($response) = $this->testClassnameWithHttpInfo($body); return $response; } @@ -109,15 +109,15 @@ class FakeClassnameTags123Api * * To test class name in snake case * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings) */ - public function testClassnameWithHttpInfo($client) + public function testClassnameWithHttpInfo($body) { - $request = $this->testClassnameRequest($client); + $request = $this->testClassnameRequest($body); try { $options = $this->createHttpClientOption(); @@ -197,14 +197,14 @@ class FakeClassnameTags123Api * * To test class name in snake case * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function testClassnameAsync($client) + public function testClassnameAsync($body) { - return $this->testClassnameAsyncWithHttpInfo($client) + return $this->testClassnameAsyncWithHttpInfo($body) ->then( function ($response) { return $response[0]; @@ -217,15 +217,15 @@ class FakeClassnameTags123Api * * To test class name in snake case * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function testClassnameAsyncWithHttpInfo($client) + public function testClassnameAsyncWithHttpInfo($body) { $returnType = '\OpenAPI\Client\Model\Client'; - $request = $this->testClassnameRequest($client); + $request = $this->testClassnameRequest($body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -264,17 +264,17 @@ class FakeClassnameTags123Api /** * Create request for operation 'testClassname' * - * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param \OpenAPI\Client\Model\Client $body client model (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function testClassnameRequest($client) + protected function testClassnameRequest($body) { - // verify the required parameter 'client' is set - if ($client === null || (is_array($client) && count($client) === 0)) { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $client when calling testClassname' + 'Missing the required parameter $body when calling testClassname' ); } @@ -289,8 +289,8 @@ class FakeClassnameTags123Api // body params $_tempBody = null; - if (isset($client)) { - $_tempBody = $client; + if (isset($body)) { + $_tempBody = $body; } if ($multipart) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php index 98e126ae2ef..12ed0ecc4f8 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php @@ -92,15 +92,15 @@ class PetApi * * Add a new pet to the store * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function addPet($pet) + public function addPet($body) { - $this->addPetWithHttpInfo($pet); + $this->addPetWithHttpInfo($body); } /** @@ -108,15 +108,15 @@ class PetApi * * Add a new pet to the store * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function addPetWithHttpInfo($pet) + public function addPetWithHttpInfo($body) { - $request = $this->addPetRequest($pet); + $request = $this->addPetRequest($body); try { $options = $this->createHttpClientOption(); @@ -160,14 +160,14 @@ class PetApi * * Add a new pet to the store * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function addPetAsync($pet) + public function addPetAsync($body) { - return $this->addPetAsyncWithHttpInfo($pet) + return $this->addPetAsyncWithHttpInfo($body) ->then( function ($response) { return $response[0]; @@ -180,15 +180,15 @@ class PetApi * * Add a new pet to the store * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function addPetAsyncWithHttpInfo($pet) + public function addPetAsyncWithHttpInfo($body) { $returnType = ''; - $request = $this->addPetRequest($pet); + $request = $this->addPetRequest($body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -216,17 +216,17 @@ class PetApi /** * Create request for operation 'addPet' * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function addPetRequest($pet) + protected function addPetRequest($body) { - // verify the required parameter 'pet' is set - if ($pet === null || (is_array($pet) && count($pet) === 0)) { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $pet when calling addPet' + 'Missing the required parameter $body when calling addPet' ); } @@ -241,8 +241,8 @@ class PetApi // body params $_tempBody = null; - if (isset($pet)) { - $_tempBody = $pet; + if (isset($body)) { + $_tempBody = $body; } if ($multipart) { @@ -1379,15 +1379,15 @@ class PetApi * * Update an existing pet * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function updatePet($pet) + public function updatePet($body) { - $this->updatePetWithHttpInfo($pet); + $this->updatePetWithHttpInfo($body); } /** @@ -1395,15 +1395,15 @@ class PetApi * * Update an existing pet * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updatePetWithHttpInfo($pet) + public function updatePetWithHttpInfo($body) { - $request = $this->updatePetRequest($pet); + $request = $this->updatePetRequest($body); try { $options = $this->createHttpClientOption(); @@ -1447,14 +1447,14 @@ class PetApi * * Update an existing pet * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function updatePetAsync($pet) + public function updatePetAsync($body) { - return $this->updatePetAsyncWithHttpInfo($pet) + return $this->updatePetAsyncWithHttpInfo($body) ->then( function ($response) { return $response[0]; @@ -1467,15 +1467,15 @@ class PetApi * * Update an existing pet * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function updatePetAsyncWithHttpInfo($pet) + public function updatePetAsyncWithHttpInfo($body) { $returnType = ''; - $request = $this->updatePetRequest($pet); + $request = $this->updatePetRequest($body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1503,17 +1503,17 @@ class PetApi /** * Create request for operation 'updatePet' * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function updatePetRequest($pet) + protected function updatePetRequest($body) { - // verify the required parameter 'pet' is set - if ($pet === null || (is_array($pet) && count($pet) === 0)) { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $pet when calling updatePet' + 'Missing the required parameter $body when calling updatePet' ); } @@ -1528,8 +1528,8 @@ class PetApi // body params $_tempBody = null; - if (isset($pet)) { - $_tempBody = $pet; + if (isset($body)) { + $_tempBody = $body; } if ($multipart) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php index 9d0c0979162..9cd2dbc0ecd 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php @@ -853,15 +853,15 @@ class StoreApi * * Place an order for a pet * - * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) + * @param \OpenAPI\Client\Model\Order $body order placed for purchasing the pet (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \OpenAPI\Client\Model\Order */ - public function placeOrder($order) + public function placeOrder($body) { - list($response) = $this->placeOrderWithHttpInfo($order); + list($response) = $this->placeOrderWithHttpInfo($body); return $response; } @@ -870,15 +870,15 @@ class StoreApi * * Place an order for a pet * - * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) + * @param \OpenAPI\Client\Model\Order $body order placed for purchasing the pet (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \OpenAPI\Client\Model\Order, HTTP status code, HTTP response headers (array of strings) */ - public function placeOrderWithHttpInfo($order) + public function placeOrderWithHttpInfo($body) { - $request = $this->placeOrderRequest($order); + $request = $this->placeOrderRequest($body); try { $options = $this->createHttpClientOption(); @@ -958,14 +958,14 @@ class StoreApi * * Place an order for a pet * - * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) + * @param \OpenAPI\Client\Model\Order $body order placed for purchasing the pet (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function placeOrderAsync($order) + public function placeOrderAsync($body) { - return $this->placeOrderAsyncWithHttpInfo($order) + return $this->placeOrderAsyncWithHttpInfo($body) ->then( function ($response) { return $response[0]; @@ -978,15 +978,15 @@ class StoreApi * * Place an order for a pet * - * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) + * @param \OpenAPI\Client\Model\Order $body order placed for purchasing the pet (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function placeOrderAsyncWithHttpInfo($order) + public function placeOrderAsyncWithHttpInfo($body) { $returnType = '\OpenAPI\Client\Model\Order'; - $request = $this->placeOrderRequest($order); + $request = $this->placeOrderRequest($body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1025,17 +1025,17 @@ class StoreApi /** * Create request for operation 'placeOrder' * - * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) + * @param \OpenAPI\Client\Model\Order $body order placed for purchasing the pet (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function placeOrderRequest($order) + protected function placeOrderRequest($body) { - // verify the required parameter 'order' is set - if ($order === null || (is_array($order) && count($order) === 0)) { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $order when calling placeOrder' + 'Missing the required parameter $body when calling placeOrder' ); } @@ -1050,8 +1050,8 @@ class StoreApi // body params $_tempBody = null; - if (isset($order)) { - $_tempBody = $order; + if (isset($body)) { + $_tempBody = $body; } if ($multipart) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php index 42f0095c9c5..6cfda7b3ee0 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php @@ -92,15 +92,15 @@ class UserApi * * Create user * - * @param \OpenAPI\Client\Model\User $user Created user object (required) + * @param \OpenAPI\Client\Model\User $body Created user object (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function createUser($user) + public function createUser($body) { - $this->createUserWithHttpInfo($user); + $this->createUserWithHttpInfo($body); } /** @@ -108,15 +108,15 @@ class UserApi * * Create user * - * @param \OpenAPI\Client\Model\User $user Created user object (required) + * @param \OpenAPI\Client\Model\User $body Created user object (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function createUserWithHttpInfo($user) + public function createUserWithHttpInfo($body) { - $request = $this->createUserRequest($user); + $request = $this->createUserRequest($body); try { $options = $this->createHttpClientOption(); @@ -160,14 +160,14 @@ class UserApi * * Create user * - * @param \OpenAPI\Client\Model\User $user Created user object (required) + * @param \OpenAPI\Client\Model\User $body Created user object (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createUserAsync($user) + public function createUserAsync($body) { - return $this->createUserAsyncWithHttpInfo($user) + return $this->createUserAsyncWithHttpInfo($body) ->then( function ($response) { return $response[0]; @@ -180,15 +180,15 @@ class UserApi * * Create user * - * @param \OpenAPI\Client\Model\User $user Created user object (required) + * @param \OpenAPI\Client\Model\User $body Created user object (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createUserAsyncWithHttpInfo($user) + public function createUserAsyncWithHttpInfo($body) { $returnType = ''; - $request = $this->createUserRequest($user); + $request = $this->createUserRequest($body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -216,17 +216,17 @@ class UserApi /** * Create request for operation 'createUser' * - * @param \OpenAPI\Client\Model\User $user Created user object (required) + * @param \OpenAPI\Client\Model\User $body Created user object (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function createUserRequest($user) + protected function createUserRequest($body) { - // verify the required parameter 'user' is set - if ($user === null || (is_array($user) && count($user) === 0)) { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $user when calling createUser' + 'Missing the required parameter $body when calling createUser' ); } @@ -241,8 +241,8 @@ class UserApi // body params $_tempBody = null; - if (isset($user)) { - $_tempBody = $user; + if (isset($body)) { + $_tempBody = $body; } if ($multipart) { @@ -311,15 +311,15 @@ class UserApi * * Creates list of users with given input array * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param \OpenAPI\Client\Model\User[] $body List of user object (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function createUsersWithArrayInput($user) + public function createUsersWithArrayInput($body) { - $this->createUsersWithArrayInputWithHttpInfo($user); + $this->createUsersWithArrayInputWithHttpInfo($body); } /** @@ -327,15 +327,15 @@ class UserApi * * Creates list of users with given input array * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param \OpenAPI\Client\Model\User[] $body List of user object (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function createUsersWithArrayInputWithHttpInfo($user) + public function createUsersWithArrayInputWithHttpInfo($body) { - $request = $this->createUsersWithArrayInputRequest($user); + $request = $this->createUsersWithArrayInputRequest($body); try { $options = $this->createHttpClientOption(); @@ -379,14 +379,14 @@ class UserApi * * Creates list of users with given input array * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param \OpenAPI\Client\Model\User[] $body List of user object (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createUsersWithArrayInputAsync($user) + public function createUsersWithArrayInputAsync($body) { - return $this->createUsersWithArrayInputAsyncWithHttpInfo($user) + return $this->createUsersWithArrayInputAsyncWithHttpInfo($body) ->then( function ($response) { return $response[0]; @@ -399,15 +399,15 @@ class UserApi * * Creates list of users with given input array * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param \OpenAPI\Client\Model\User[] $body List of user object (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createUsersWithArrayInputAsyncWithHttpInfo($user) + public function createUsersWithArrayInputAsyncWithHttpInfo($body) { $returnType = ''; - $request = $this->createUsersWithArrayInputRequest($user); + $request = $this->createUsersWithArrayInputRequest($body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -435,17 +435,17 @@ class UserApi /** * Create request for operation 'createUsersWithArrayInput' * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param \OpenAPI\Client\Model\User[] $body List of user object (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function createUsersWithArrayInputRequest($user) + protected function createUsersWithArrayInputRequest($body) { - // verify the required parameter 'user' is set - if ($user === null || (is_array($user) && count($user) === 0)) { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $user when calling createUsersWithArrayInput' + 'Missing the required parameter $body when calling createUsersWithArrayInput' ); } @@ -460,8 +460,8 @@ class UserApi // body params $_tempBody = null; - if (isset($user)) { - $_tempBody = $user; + if (isset($body)) { + $_tempBody = $body; } if ($multipart) { @@ -530,15 +530,15 @@ class UserApi * * Creates list of users with given input array * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param \OpenAPI\Client\Model\User[] $body List of user object (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function createUsersWithListInput($user) + public function createUsersWithListInput($body) { - $this->createUsersWithListInputWithHttpInfo($user); + $this->createUsersWithListInputWithHttpInfo($body); } /** @@ -546,15 +546,15 @@ class UserApi * * Creates list of users with given input array * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param \OpenAPI\Client\Model\User[] $body List of user object (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function createUsersWithListInputWithHttpInfo($user) + public function createUsersWithListInputWithHttpInfo($body) { - $request = $this->createUsersWithListInputRequest($user); + $request = $this->createUsersWithListInputRequest($body); try { $options = $this->createHttpClientOption(); @@ -598,14 +598,14 @@ class UserApi * * Creates list of users with given input array * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param \OpenAPI\Client\Model\User[] $body List of user object (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createUsersWithListInputAsync($user) + public function createUsersWithListInputAsync($body) { - return $this->createUsersWithListInputAsyncWithHttpInfo($user) + return $this->createUsersWithListInputAsyncWithHttpInfo($body) ->then( function ($response) { return $response[0]; @@ -618,15 +618,15 @@ class UserApi * * Creates list of users with given input array * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param \OpenAPI\Client\Model\User[] $body List of user object (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createUsersWithListInputAsyncWithHttpInfo($user) + public function createUsersWithListInputAsyncWithHttpInfo($body) { $returnType = ''; - $request = $this->createUsersWithListInputRequest($user); + $request = $this->createUsersWithListInputRequest($body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -654,17 +654,17 @@ class UserApi /** * Create request for operation 'createUsersWithListInput' * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param \OpenAPI\Client\Model\User[] $body List of user object (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function createUsersWithListInputRequest($user) + protected function createUsersWithListInputRequest($body) { - // verify the required parameter 'user' is set - if ($user === null || (is_array($user) && count($user) === 0)) { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $user when calling createUsersWithListInput' + 'Missing the required parameter $body when calling createUsersWithListInput' ); } @@ -679,8 +679,8 @@ class UserApi // body params $_tempBody = null; - if (isset($user)) { - $_tempBody = $user; + if (isset($body)) { + $_tempBody = $body; } if ($multipart) { @@ -1734,15 +1734,15 @@ class UserApi * Updated user * * @param string $username name that need to be deleted (required) - * @param \OpenAPI\Client\Model\User $user Updated user object (required) + * @param \OpenAPI\Client\Model\User $body Updated user object (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function updateUser($username, $user) + public function updateUser($username, $body) { - $this->updateUserWithHttpInfo($username, $user); + $this->updateUserWithHttpInfo($username, $body); } /** @@ -1751,15 +1751,15 @@ class UserApi * Updated user * * @param string $username name that need to be deleted (required) - * @param \OpenAPI\Client\Model\User $user Updated user object (required) + * @param \OpenAPI\Client\Model\User $body Updated user object (required) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function updateUserWithHttpInfo($username, $user) + public function updateUserWithHttpInfo($username, $body) { - $request = $this->updateUserRequest($username, $user); + $request = $this->updateUserRequest($username, $body); try { $options = $this->createHttpClientOption(); @@ -1804,14 +1804,14 @@ class UserApi * Updated user * * @param string $username name that need to be deleted (required) - * @param \OpenAPI\Client\Model\User $user Updated user object (required) + * @param \OpenAPI\Client\Model\User $body Updated user object (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function updateUserAsync($username, $user) + public function updateUserAsync($username, $body) { - return $this->updateUserAsyncWithHttpInfo($username, $user) + return $this->updateUserAsyncWithHttpInfo($username, $body) ->then( function ($response) { return $response[0]; @@ -1825,15 +1825,15 @@ class UserApi * Updated user * * @param string $username name that need to be deleted (required) - * @param \OpenAPI\Client\Model\User $user Updated user object (required) + * @param \OpenAPI\Client\Model\User $body Updated user object (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function updateUserAsyncWithHttpInfo($username, $user) + public function updateUserAsyncWithHttpInfo($username, $body) { $returnType = ''; - $request = $this->updateUserRequest($username, $user); + $request = $this->updateUserRequest($username, $body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1862,12 +1862,12 @@ class UserApi * Create request for operation 'updateUser' * * @param string $username name that need to be deleted (required) - * @param \OpenAPI\Client\Model\User $user Updated user object (required) + * @param \OpenAPI\Client\Model\User $body Updated user object (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function updateUserRequest($username, $user) + protected function updateUserRequest($username, $body) { // verify the required parameter 'username' is set if ($username === null || (is_array($username) && count($username) === 0)) { @@ -1875,10 +1875,10 @@ class UserApi 'Missing the required parameter $username when calling updateUser' ); } - // verify the required parameter 'user' is set - if ($user === null || (is_array($user) && count($user) === 0)) { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $user when calling updateUser' + 'Missing the required parameter $body when calling updateUser' ); } @@ -1901,8 +1901,8 @@ class UserApi // body params $_tempBody = null; - if (isset($user)) { - $_tempBody = $user; + if (isset($body)) { + $_tempBody = $body; } if ($multipart) { diff --git a/samples/client/petstore/ruby/README.md b/samples/client/petstore/ruby/README.md index e3c9c27af43..f94148add4a 100644 --- a/samples/client/petstore/ruby/README.md +++ b/samples/client/petstore/ruby/README.md @@ -55,11 +55,11 @@ Please follow the [installation](#installation) procedure and then run the follo require 'petstore' api_instance = Petstore::AnotherFakeApi.new -client = Petstore::Client.new # Client | client model +body = Petstore::Client.new # Client | client model begin #To test special tags - result = api_instance.call_123_test_special_tags(client) + result = api_instance.call_123_test_special_tags(body) p result rescue Petstore::ApiError => e puts "Exception when calling AnotherFakeApi->call_123_test_special_tags: #{e}" diff --git a/samples/client/petstore/ruby/docs/AnotherFakeApi.md b/samples/client/petstore/ruby/docs/AnotherFakeApi.md index 2d4891e0660..79ba2c5e562 100644 --- a/samples/client/petstore/ruby/docs/AnotherFakeApi.md +++ b/samples/client/petstore/ruby/docs/AnotherFakeApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **call_123_test_special_tags** -> Client call_123_test_special_tags(client) +> Client call_123_test_special_tags(body) To test special tags @@ -20,11 +20,11 @@ To test special tags and operation ID starting with number require 'petstore' api_instance = Petstore::AnotherFakeApi.new -client = Petstore::Client.new # Client | client model +body = Petstore::Client.new # Client | client model begin #To test special tags - result = api_instance.call_123_test_special_tags(client) + result = api_instance.call_123_test_special_tags(body) p result rescue Petstore::ApiError => e puts "Exception when calling AnotherFakeApi->call_123_test_special_tags: #{e}" @@ -35,7 +35,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/ruby/docs/FakeApi.md b/samples/client/petstore/ruby/docs/FakeApi.md index e7e99549266..e34e1ef5ef5 100644 --- a/samples/client/petstore/ruby/docs/FakeApi.md +++ b/samples/client/petstore/ruby/docs/FakeApi.md @@ -78,7 +78,7 @@ require 'petstore' api_instance = Petstore::FakeApi.new opts = { - outer_composite: Petstore::OuterComposite.new # OuterComposite | Input composite as post body + body: Petstore::OuterComposite.new # OuterComposite | Input composite as post body } begin @@ -93,7 +93,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outer_composite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] + **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] ### Return type @@ -203,7 +203,7 @@ No authorization required # **test_body_with_file_schema** -> test_body_with_file_schema(file_schema_test_class) +> test_body_with_file_schema(body) @@ -215,10 +215,10 @@ For this test, the body for this request much reference a schema named `File`. require 'petstore' api_instance = Petstore::FakeApi.new -file_schema_test_class = Petstore::FileSchemaTestClass.new # FileSchemaTestClass | +body = Petstore::FileSchemaTestClass.new # FileSchemaTestClass | begin - api_instance.test_body_with_file_schema(file_schema_test_class) + api_instance.test_body_with_file_schema(body) rescue Petstore::ApiError => e puts "Exception when calling FakeApi->test_body_with_file_schema: #{e}" end @@ -228,7 +228,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **file_schema_test_class** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -246,7 +246,7 @@ No authorization required # **test_body_with_query_params** -> test_body_with_query_params(query, user) +> test_body_with_query_params(query, body) @@ -257,10 +257,10 @@ require 'petstore' api_instance = Petstore::FakeApi.new query = 'query_example' # String | -user = Petstore::User.new # User | +body = Petstore::User.new # User | begin - api_instance.test_body_with_query_params(query, user) + api_instance.test_body_with_query_params(query, body) rescue Petstore::ApiError => e puts "Exception when calling FakeApi->test_body_with_query_params: #{e}" end @@ -271,7 +271,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | - **user** | [**User**](User.md)| | + **body** | [**User**](User.md)| | ### Return type @@ -289,7 +289,7 @@ No authorization required # **test_client_model** -> Client test_client_model(client) +> Client test_client_model(body) To test \"client\" model @@ -301,11 +301,11 @@ To test \"client\" model require 'petstore' api_instance = Petstore::FakeApi.new -client = Petstore::Client.new # Client | client model +body = Petstore::Client.new # Client | client model begin #To test \"client\" model - result = api_instance.test_client_model(client) + result = api_instance.test_client_model(body) p result rescue Petstore::ApiError => e puts "Exception when calling FakeApi->test_client_model: #{e}" @@ -316,7 +316,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type @@ -528,7 +528,7 @@ No authorization required # **test_inline_additional_properties** -> test_inline_additional_properties(request_body) +> test_inline_additional_properties(param) test inline additionalProperties @@ -538,11 +538,11 @@ test inline additionalProperties require 'petstore' api_instance = Petstore::FakeApi.new -request_body = {'key' => 'request_body_example'} # Hash | request body +param = {'key' => 'param_example'} # Hash | request body begin #test inline additionalProperties - api_instance.test_inline_additional_properties(request_body) + api_instance.test_inline_additional_properties(param) rescue Petstore::ApiError => e puts "Exception when calling FakeApi->test_inline_additional_properties: #{e}" end @@ -552,7 +552,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request_body** | [**Hash<String, String>**](String.md)| request body | + **param** | [**Hash<String, String>**](String.md)| request body | ### Return type diff --git a/samples/client/petstore/ruby/docs/FakeClassnameTags123Api.md b/samples/client/petstore/ruby/docs/FakeClassnameTags123Api.md index a6153f02926..884bf7703d7 100644 --- a/samples/client/petstore/ruby/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/ruby/docs/FakeClassnameTags123Api.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **test_classname** -> Client test_classname(client) +> Client test_classname(body) To test class name in snake case @@ -27,11 +27,11 @@ Petstore.configure do |config| end api_instance = Petstore::FakeClassnameTags123Api.new -client = Petstore::Client.new # Client | client model +body = Petstore::Client.new # Client | client model begin #To test class name in snake case - result = api_instance.test_classname(client) + result = api_instance.test_classname(body) p result rescue Petstore::ApiError => e puts "Exception when calling FakeClassnameTags123Api->test_classname: #{e}" @@ -42,7 +42,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **client** | [**Client**](Client.md)| client model | + **body** | [**Client**](Client.md)| client model | ### Return type diff --git a/samples/client/petstore/ruby/docs/PetApi.md b/samples/client/petstore/ruby/docs/PetApi.md index 61adf80830b..75b30fa7a7e 100644 --- a/samples/client/petstore/ruby/docs/PetApi.md +++ b/samples/client/petstore/ruby/docs/PetApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **add_pet** -> add_pet(pet) +> add_pet(body) Add a new pet to the store @@ -31,11 +31,11 @@ Petstore.configure do |config| end api_instance = Petstore::PetApi.new -pet = Petstore::Pet.new # Pet | Pet object that needs to be added to the store +body = Petstore::Pet.new # Pet | Pet object that needs to be added to the store begin #Add a new pet to the store - api_instance.add_pet(pet) + api_instance.add_pet(body) rescue Petstore::ApiError => e puts "Exception when calling PetApi->add_pet: #{e}" end @@ -45,7 +45,7 @@ end 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 @@ -266,7 +266,7 @@ Name | Type | Description | Notes # **update_pet** -> update_pet(pet) +> update_pet(body) Update an existing pet @@ -281,11 +281,11 @@ Petstore.configure do |config| end api_instance = Petstore::PetApi.new -pet = Petstore::Pet.new # Pet | Pet object that needs to be added to the store +body = Petstore::Pet.new # Pet | Pet object that needs to be added to the store begin #Update an existing pet - api_instance.update_pet(pet) + api_instance.update_pet(body) rescue Petstore::ApiError => e puts "Exception when calling PetApi->update_pet: #{e}" end @@ -295,7 +295,7 @@ end 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/ruby/docs/StoreApi.md b/samples/client/petstore/ruby/docs/StoreApi.md index 2ebdc4ddc0e..6004e83bf98 100644 --- a/samples/client/petstore/ruby/docs/StoreApi.md +++ b/samples/client/petstore/ruby/docs/StoreApi.md @@ -148,7 +148,7 @@ No authorization required # **place_order** -> Order place_order(order) +> Order place_order(body) Place an order for a pet @@ -158,11 +158,11 @@ Place an order for a pet require 'petstore' api_instance = Petstore::StoreApi.new -order = Petstore::Order.new # Order | order placed for purchasing the pet +body = Petstore::Order.new # Order | order placed for purchasing the pet begin #Place an order for a pet - result = api_instance.place_order(order) + result = api_instance.place_order(body) p result rescue Petstore::ApiError => e puts "Exception when calling StoreApi->place_order: #{e}" @@ -173,7 +173,7 @@ end 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/ruby/docs/UserApi.md b/samples/client/petstore/ruby/docs/UserApi.md index ae8f3fad0f1..eada424a38c 100644 --- a/samples/client/petstore/ruby/docs/UserApi.md +++ b/samples/client/petstore/ruby/docs/UserApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description # **create_user** -> create_user(user) +> create_user(body) Create user @@ -27,11 +27,11 @@ This can only be done by the logged in user. require 'petstore' api_instance = Petstore::UserApi.new -user = Petstore::User.new # User | Created user object +body = Petstore::User.new # User | Created user object begin #Create user - api_instance.create_user(user) + api_instance.create_user(body) rescue Petstore::ApiError => e puts "Exception when calling UserApi->create_user: #{e}" end @@ -41,7 +41,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| Created user object | + **body** | [**User**](User.md)| Created user object | ### Return type @@ -59,7 +59,7 @@ No authorization required # **create_users_with_array_input** -> create_users_with_array_input(user) +> create_users_with_array_input(body) Creates list of users with given input array @@ -69,11 +69,11 @@ Creates list of users with given input array require 'petstore' api_instance = Petstore::UserApi.new -user = nil # Array | List of user object +body = nil # Array | List of user object begin #Creates list of users with given input array - api_instance.create_users_with_array_input(user) + api_instance.create_users_with_array_input(body) rescue Petstore::ApiError => e puts "Exception when calling UserApi->create_users_with_array_input: #{e}" end @@ -83,7 +83,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**Array<User>**](Array.md)| List of user object | + **body** | [**Array<User>**](Array.md)| List of user object | ### Return type @@ -101,7 +101,7 @@ No authorization required # **create_users_with_list_input** -> create_users_with_list_input(user) +> create_users_with_list_input(body) Creates list of users with given input array @@ -111,11 +111,11 @@ Creates list of users with given input array require 'petstore' api_instance = Petstore::UserApi.new -user = nil # Array | List of user object +body = nil # Array | List of user object begin #Creates list of users with given input array - api_instance.create_users_with_list_input(user) + api_instance.create_users_with_list_input(body) rescue Petstore::ApiError => e puts "Exception when calling UserApi->create_users_with_list_input: #{e}" end @@ -125,7 +125,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**Array<User>**](Array.md)| List of user object | + **body** | [**Array<User>**](Array.md)| List of user object | ### Return type @@ -313,7 +313,7 @@ No authorization required # **update_user** -> update_user(username, user) +> update_user(username, body) Updated user @@ -326,11 +326,11 @@ require 'petstore' api_instance = Petstore::UserApi.new username = 'username_example' # String | name that need to be deleted -user = Petstore::User.new # User | Updated user object +body = Petstore::User.new # User | Updated user object begin #Updated user - api_instance.update_user(username, user) + api_instance.update_user(username, body) rescue Petstore::ApiError => e puts "Exception when calling UserApi->update_user: #{e}" end @@ -341,7 +341,7 @@ end 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/ruby/lib/petstore/api/another_fake_api.rb b/samples/client/petstore/ruby/lib/petstore/api/another_fake_api.rb index c9a446e3d9e..c8069ff0168 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/another_fake_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/another_fake_api.rb @@ -21,26 +21,26 @@ module Petstore end # To test special tags # To test special tags and operation ID starting with number - # @param client client model + # @param body client model # @param [Hash] opts the optional parameters # @return [Client] - def call_123_test_special_tags(client, opts = {}) - data, _status_code, _headers = call_123_test_special_tags_with_http_info(client, opts) + def call_123_test_special_tags(body, opts = {}) + data, _status_code, _headers = call_123_test_special_tags_with_http_info(body, opts) data end # To test special tags # To test special tags and operation ID starting with number - # @param client client model + # @param body client model # @param [Hash] opts the optional parameters # @return [Array<(Client, Fixnum, Hash)>] Client data, response status code and response headers - def call_123_test_special_tags_with_http_info(client, opts = {}) + def call_123_test_special_tags_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AnotherFakeApi.call_123_test_special_tags ...' end - # verify the required parameter 'client' is set - if @api_client.config.client_side_validation && client.nil? - fail ArgumentError, "Missing the required parameter 'client' when calling AnotherFakeApi.call_123_test_special_tags" + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling AnotherFakeApi.call_123_test_special_tags" end # resource path local_var_path = '/another-fake/dummy' @@ -59,7 +59,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(client) + post_body = @api_client.object_to_http_body(body) auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, diff --git a/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb index 689d2313943..24801324a8b 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb @@ -68,7 +68,7 @@ module Petstore # Test serialization of object with outer number type # @param [Hash] opts the optional parameters - # @option opts [OuterComposite] :outer_composite Input composite as post body + # @option opts [OuterComposite] :body Input composite as post body # @return [OuterComposite] def fake_outer_composite_serialize(opts = {}) data, _status_code, _headers = fake_outer_composite_serialize_with_http_info(opts) @@ -77,7 +77,7 @@ module Petstore # Test serialization of object with outer number type # @param [Hash] opts the optional parameters - # @option opts [OuterComposite] :outer_composite Input composite as post body + # @option opts [OuterComposite] :body Input composite as post body # @return [Array<(OuterComposite, Fixnum, Hash)>] OuterComposite data, response status code and response headers def fake_outer_composite_serialize_with_http_info(opts = {}) if @api_client.config.debugging @@ -98,7 +98,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'outer_composite']) + post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, @@ -208,25 +208,25 @@ module Petstore end # For this test, the body for this request much reference a schema named `File`. - # @param file_schema_test_class + # @param body # @param [Hash] opts the optional parameters # @return [nil] - def test_body_with_file_schema(file_schema_test_class, opts = {}) - test_body_with_file_schema_with_http_info(file_schema_test_class, opts) + def test_body_with_file_schema(body, opts = {}) + test_body_with_file_schema_with_http_info(body, opts) nil end # For this test, the body for this request much reference a schema named `File`. - # @param file_schema_test_class + # @param body # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def test_body_with_file_schema_with_http_info(file_schema_test_class, opts = {}) + def test_body_with_file_schema_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FakeApi.test_body_with_file_schema ...' end - # verify the required parameter 'file_schema_test_class' is set - if @api_client.config.client_side_validation && file_schema_test_class.nil? - fail ArgumentError, "Missing the required parameter 'file_schema_test_class' when calling FakeApi.test_body_with_file_schema" + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling FakeApi.test_body_with_file_schema" end # resource path local_var_path = '/fake/body-with-file-schema' @@ -243,7 +243,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(file_schema_test_class) + post_body = @api_client.object_to_http_body(body) auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, @@ -258,19 +258,19 @@ module Petstore end # @param query - # @param user + # @param body # @param [Hash] opts the optional parameters # @return [nil] - def test_body_with_query_params(query, user, opts = {}) - test_body_with_query_params_with_http_info(query, user, opts) + def test_body_with_query_params(query, body, opts = {}) + test_body_with_query_params_with_http_info(query, body, opts) nil end # @param query - # @param user + # @param body # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def test_body_with_query_params_with_http_info(query, user, opts = {}) + def test_body_with_query_params_with_http_info(query, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FakeApi.test_body_with_query_params ...' end @@ -278,9 +278,9 @@ module Petstore if @api_client.config.client_side_validation && query.nil? fail ArgumentError, "Missing the required parameter 'query' when calling FakeApi.test_body_with_query_params" end - # verify the required parameter 'user' is set - if @api_client.config.client_side_validation && user.nil? - fail ArgumentError, "Missing the required parameter 'user' when calling FakeApi.test_body_with_query_params" + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling FakeApi.test_body_with_query_params" end # resource path local_var_path = '/fake/body-with-query-params' @@ -298,7 +298,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(user) + post_body = @api_client.object_to_http_body(body) auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, @@ -314,26 +314,26 @@ module Petstore # To test \"client\" model # To test \"client\" model - # @param client client model + # @param body client model # @param [Hash] opts the optional parameters # @return [Client] - def test_client_model(client, opts = {}) - data, _status_code, _headers = test_client_model_with_http_info(client, opts) + def test_client_model(body, opts = {}) + data, _status_code, _headers = test_client_model_with_http_info(body, opts) data end # To test \"client\" model # To test \"client\" model - # @param client client model + # @param body client model # @param [Hash] opts the optional parameters # @return [Array<(Client, Fixnum, Hash)>] Client data, response status code and response headers - def test_client_model_with_http_info(client, opts = {}) + def test_client_model_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FakeApi.test_client_model ...' end - # verify the required parameter 'client' is set - if @api_client.config.client_side_validation && client.nil? - fail ArgumentError, "Missing the required parameter 'client' when calling FakeApi.test_client_model" + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling FakeApi.test_client_model" end # resource path local_var_path = '/fake' @@ -352,7 +352,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(client) + post_body = @api_client.object_to_http_body(body) auth_names = [] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, @@ -692,25 +692,25 @@ module Petstore end # test inline additionalProperties - # @param request_body request body + # @param param request body # @param [Hash] opts the optional parameters # @return [nil] - def test_inline_additional_properties(request_body, opts = {}) - test_inline_additional_properties_with_http_info(request_body, opts) + def test_inline_additional_properties(param, opts = {}) + test_inline_additional_properties_with_http_info(param, opts) nil end # test inline additionalProperties - # @param request_body request body + # @param param request body # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def test_inline_additional_properties_with_http_info(request_body, opts = {}) + def test_inline_additional_properties_with_http_info(param, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FakeApi.test_inline_additional_properties ...' end - # verify the required parameter 'request_body' is set - if @api_client.config.client_side_validation && request_body.nil? - fail ArgumentError, "Missing the required parameter 'request_body' when calling FakeApi.test_inline_additional_properties" + # verify the required parameter 'param' is set + if @api_client.config.client_side_validation && param.nil? + fail ArgumentError, "Missing the required parameter 'param' when calling FakeApi.test_inline_additional_properties" end # resource path local_var_path = '/fake/inline-additionalProperties' @@ -727,7 +727,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(request_body) + post_body = @api_client.object_to_http_body(param) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, diff --git a/samples/client/petstore/ruby/lib/petstore/api/fake_classname_tags123_api.rb b/samples/client/petstore/ruby/lib/petstore/api/fake_classname_tags123_api.rb index 671b496e3a4..52b946ca64c 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/fake_classname_tags123_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/fake_classname_tags123_api.rb @@ -21,26 +21,26 @@ module Petstore end # To test class name in snake case # To test class name in snake case - # @param client client model + # @param body client model # @param [Hash] opts the optional parameters # @return [Client] - def test_classname(client, opts = {}) - data, _status_code, _headers = test_classname_with_http_info(client, opts) + def test_classname(body, opts = {}) + data, _status_code, _headers = test_classname_with_http_info(body, opts) data end # To test class name in snake case # To test class name in snake case - # @param client client model + # @param body client model # @param [Hash] opts the optional parameters # @return [Array<(Client, Fixnum, Hash)>] Client data, response status code and response headers - def test_classname_with_http_info(client, opts = {}) + def test_classname_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FakeClassnameTags123Api.test_classname ...' end - # verify the required parameter 'client' is set - if @api_client.config.client_side_validation && client.nil? - fail ArgumentError, "Missing the required parameter 'client' when calling FakeClassnameTags123Api.test_classname" + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling FakeClassnameTags123Api.test_classname" end # resource path local_var_path = '/fake_classname_test' @@ -59,7 +59,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(client) + post_body = @api_client.object_to_http_body(body) auth_names = ['api_key_query'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, diff --git a/samples/client/petstore/ruby/lib/petstore/api/pet_api.rb b/samples/client/petstore/ruby/lib/petstore/api/pet_api.rb index facacd8b80d..d6a0c26bf6d 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/pet_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/pet_api.rb @@ -20,25 +20,25 @@ module Petstore @api_client = api_client end # Add a new pet to the store - # @param pet Pet object that needs to be added to the store + # @param body Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [nil] - def add_pet(pet, opts = {}) - add_pet_with_http_info(pet, opts) + def add_pet(body, opts = {}) + add_pet_with_http_info(body, opts) nil end # Add a new pet to the store - # @param pet Pet object that needs to be added to the store + # @param body Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def add_pet_with_http_info(pet, opts = {}) + def add_pet_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PetApi.add_pet ...' end - # verify the required parameter 'pet' is set - if @api_client.config.client_side_validation && pet.nil? - fail ArgumentError, "Missing the required parameter 'pet' when calling PetApi.add_pet" + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling PetApi.add_pet" end # resource path local_var_path = '/pet' @@ -55,7 +55,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(pet) + post_body = @api_client.object_to_http_body(body) auth_names = ['petstore_auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, @@ -282,25 +282,25 @@ module Petstore end # Update an existing pet - # @param pet Pet object that needs to be added to the store + # @param body Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [nil] - def update_pet(pet, opts = {}) - update_pet_with_http_info(pet, opts) + def update_pet(body, opts = {}) + update_pet_with_http_info(body, opts) nil end # Update an existing pet - # @param pet Pet object that needs to be added to the store + # @param body Pet object that needs to be added to the store # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def update_pet_with_http_info(pet, opts = {}) + def update_pet_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PetApi.update_pet ...' end - # verify the required parameter 'pet' is set - if @api_client.config.client_side_validation && pet.nil? - fail ArgumentError, "Missing the required parameter 'pet' when calling PetApi.update_pet" + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling PetApi.update_pet" end # resource path local_var_path = '/pet' @@ -317,7 +317,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(pet) + post_body = @api_client.object_to_http_body(body) auth_names = ['petstore_auth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, diff --git a/samples/client/petstore/ruby/lib/petstore/api/store_api.rb b/samples/client/petstore/ruby/lib/petstore/api/store_api.rb index 54787e93828..dee601d7e22 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/store_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/store_api.rb @@ -178,25 +178,25 @@ module Petstore end # Place an order for a pet - # @param order order placed for purchasing the pet + # @param body order placed for purchasing the pet # @param [Hash] opts the optional parameters # @return [Order] - def place_order(order, opts = {}) - data, _status_code, _headers = place_order_with_http_info(order, opts) + def place_order(body, opts = {}) + data, _status_code, _headers = place_order_with_http_info(body, opts) data end # Place an order for a pet - # @param order order placed for purchasing the pet + # @param body order placed for purchasing the pet # @param [Hash] opts the optional parameters # @return [Array<(Order, Fixnum, Hash)>] Order data, response status code and response headers - def place_order_with_http_info(order, opts = {}) + def place_order_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: StoreApi.place_order ...' end - # verify the required parameter 'order' is set - if @api_client.config.client_side_validation && order.nil? - fail ArgumentError, "Missing the required parameter 'order' when calling StoreApi.place_order" + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling StoreApi.place_order" end # resource path local_var_path = '/store/order' @@ -213,7 +213,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(order) + post_body = @api_client.object_to_http_body(body) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, diff --git a/samples/client/petstore/ruby/lib/petstore/api/user_api.rb b/samples/client/petstore/ruby/lib/petstore/api/user_api.rb index 61b6e73baad..67e4b2f776f 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/user_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/user_api.rb @@ -21,26 +21,26 @@ module Petstore end # Create user # This can only be done by the logged in user. - # @param user Created user object + # @param body Created user object # @param [Hash] opts the optional parameters # @return [nil] - def create_user(user, opts = {}) - create_user_with_http_info(user, opts) + def create_user(body, opts = {}) + create_user_with_http_info(body, opts) nil end # Create user # This can only be done by the logged in user. - # @param user Created user object + # @param body Created user object # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def create_user_with_http_info(user, opts = {}) + def create_user_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UserApi.create_user ...' end - # verify the required parameter 'user' is set - if @api_client.config.client_side_validation && user.nil? - fail ArgumentError, "Missing the required parameter 'user' when calling UserApi.create_user" + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling UserApi.create_user" end # resource path local_var_path = '/user' @@ -55,7 +55,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(user) + post_body = @api_client.object_to_http_body(body) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, @@ -70,25 +70,25 @@ module Petstore end # Creates list of users with given input array - # @param user List of user object + # @param body List of user object # @param [Hash] opts the optional parameters # @return [nil] - def create_users_with_array_input(user, opts = {}) - create_users_with_array_input_with_http_info(user, opts) + def create_users_with_array_input(body, opts = {}) + create_users_with_array_input_with_http_info(body, opts) nil end # Creates list of users with given input array - # @param user List of user object + # @param body List of user object # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def create_users_with_array_input_with_http_info(user, opts = {}) + def create_users_with_array_input_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UserApi.create_users_with_array_input ...' end - # verify the required parameter 'user' is set - if @api_client.config.client_side_validation && user.nil? - fail ArgumentError, "Missing the required parameter 'user' when calling UserApi.create_users_with_array_input" + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling UserApi.create_users_with_array_input" end # resource path local_var_path = '/user/createWithArray' @@ -103,7 +103,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(user) + post_body = @api_client.object_to_http_body(body) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, @@ -118,25 +118,25 @@ module Petstore end # Creates list of users with given input array - # @param user List of user object + # @param body List of user object # @param [Hash] opts the optional parameters # @return [nil] - def create_users_with_list_input(user, opts = {}) - create_users_with_list_input_with_http_info(user, opts) + def create_users_with_list_input(body, opts = {}) + create_users_with_list_input_with_http_info(body, opts) nil end # Creates list of users with given input array - # @param user List of user object + # @param body List of user object # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def create_users_with_list_input_with_http_info(user, opts = {}) + def create_users_with_list_input_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UserApi.create_users_with_list_input ...' end - # verify the required parameter 'user' is set - if @api_client.config.client_side_validation && user.nil? - fail ArgumentError, "Missing the required parameter 'user' when calling UserApi.create_users_with_list_input" + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling UserApi.create_users_with_list_input" end # resource path local_var_path = '/user/createWithList' @@ -151,7 +151,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(user) + post_body = @api_client.object_to_http_body(body) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, @@ -370,21 +370,21 @@ module Petstore # Updated user # This can only be done by the logged in user. # @param username name that need to be deleted - # @param user Updated user object + # @param body Updated user object # @param [Hash] opts the optional parameters # @return [nil] - def update_user(username, user, opts = {}) - update_user_with_http_info(username, user, opts) + def update_user(username, body, opts = {}) + update_user_with_http_info(username, body, opts) nil end # Updated user # This can only be done by the logged in user. # @param username name that need to be deleted - # @param user Updated user object + # @param body Updated user object # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def update_user_with_http_info(username, user, opts = {}) + def update_user_with_http_info(username, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UserApi.update_user ...' end @@ -392,9 +392,9 @@ module Petstore if @api_client.config.client_side_validation && username.nil? fail ArgumentError, "Missing the required parameter 'username' when calling UserApi.update_user" end - # verify the required parameter 'user' is set - if @api_client.config.client_side_validation && user.nil? - fail ArgumentError, "Missing the required parameter 'user' when calling UserApi.update_user" + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling UserApi.update_user" end # resource path local_var_path = '/user/{username}'.sub('{' + 'username' + '}', username.to_s) @@ -409,7 +409,7 @@ module Petstore form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(user) + post_body = @api_client.object_to_http_body(body) auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java index 6e282bb98cf..8eb63e88484 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/PetApi.java @@ -44,7 +44,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = "application/json", method = RequestMethod.POST) - com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet); + com.netflix.hystrix.HystrixCommand> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @@ -116,7 +116,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = "application/json", method = RequestMethod.PUT) - com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet); + com.netflix.hystrix.HystrixCommand> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java index 124d0113350..cbefdd1d4db 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/StoreApi.java @@ -70,6 +70,6 @@ public interface StoreApi { @RequestMapping(value = "/store/order", produces = "application/json", method = RequestMethod.POST) - com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order); + com.netflix.hystrix.HystrixCommand> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java index a5122a12bb8..04ac5ed0b8f 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/api/UserApi.java @@ -37,7 +37,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user", method = RequestMethod.POST) - com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user); + com.netflix.hystrix.HystrixCommand> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @@ -45,7 +45,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) - com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user); + com.netflix.hystrix.HystrixCommand> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @@ -53,7 +53,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithList", method = RequestMethod.POST) - com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user); + com.netflix.hystrix.HystrixCommand> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @@ -100,6 +100,6 @@ public interface UserApi { @ApiResponse(code = 404, message = "User not found") }) @RequestMapping(value = "/user/{username}", method = RequestMethod.PUT) - com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user); + com.netflix.hystrix.HystrixCommand> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java index 0dc0848d4dc..f66046a6e9d 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/PetApi.java @@ -48,7 +48,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = "application/json", method = RequestMethod.POST) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,7 +171,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = "application/json", method = RequestMethod.PUT) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java index e1cd461f5f2..e3086e52f38 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/StoreApi.java @@ -95,7 +95,7 @@ public interface StoreApi { @RequestMapping(value = "/store/order", produces = "application/json", method = RequestMethod.POST) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java index 08ebe3fd80d..1e17c628fda 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/api/UserApi.java @@ -41,7 +41,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user", method = RequestMethod.POST) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -52,7 +52,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -63,7 +63,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithList", method = RequestMethod.POST) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -137,7 +137,7 @@ public interface UserApi { @ApiResponse(code = 404, message = "User not found") }) @RequestMapping(value = "/user/{username}", method = RequestMethod.PUT) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/client/petstore/typescript-angular-v2/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v2/default/api/pet.service.ts index f15094ee111..515b400db96 100644 --- a/samples/client/petstore/typescript-angular-v2/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v2/default/api/pet.service.ts @@ -62,10 +62,10 @@ export class PetService { /** * * @summary Add a new pet to the store - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public addPet(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.addPetWithHttpInfo(pet, extraHttpRequestParams) + public addPet(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.addPetWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -143,10 +143,10 @@ export class PetService { /** * * @summary Update an existing pet - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public updatePet(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.updatePetWithHttpInfo(pet, extraHttpRequestParams) + public updatePet(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.updatePetWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -196,12 +196,12 @@ export class PetService { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public addPetWithHttpInfo(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPetWithHttpInfo(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -235,7 +235,7 @@ export class PetService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: pet == null ? '' : JSON.stringify(pet), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -452,12 +452,12 @@ export class PetService { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public updatePetWithHttpInfo(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePetWithHttpInfo(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -491,7 +491,7 @@ export class PetService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Put, headers: headers, - body: pet == null ? '' : JSON.stringify(pet), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 diff --git a/samples/client/petstore/typescript-angular-v2/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v2/default/api/store.service.ts index 53e52d1accb..f042ed047a7 100644 --- a/samples/client/petstore/typescript-angular-v2/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v2/default/api/store.service.ts @@ -108,10 +108,10 @@ export class StoreService { /** * * @summary Place an order for a pet - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet */ - public placeOrder(order: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { - return this.placeOrderWithHttpInfo(order, extraHttpRequestParams) + public placeOrder(body: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { + return this.placeOrderWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -243,12 +243,12 @@ export class StoreService { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet */ - public placeOrderWithHttpInfo(order: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrderWithHttpInfo(body: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -274,7 +274,7 @@ export class StoreService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: order == null ? '' : JSON.stringify(order), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 diff --git a/samples/client/petstore/typescript-angular-v2/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v2/default/api/user.service.ts index 8ad36014c75..a364053e42b 100644 --- a/samples/client/petstore/typescript-angular-v2/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v2/default/api/user.service.ts @@ -61,10 +61,10 @@ export class UserService { /** * This can only be done by the logged in user. * @summary Create user - * @param user Created user object + * @param body Created user object */ - public createUser(user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.createUserWithHttpInfo(user, extraHttpRequestParams) + public createUser(body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.createUserWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -77,10 +77,10 @@ export class UserService { /** * * @summary Creates list of users with given input array - * @param user List of user object + * @param body List of user object */ - public createUsersWithArrayInput(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.createUsersWithArrayInputWithHttpInfo(user, extraHttpRequestParams) + public createUsersWithArrayInput(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.createUsersWithArrayInputWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -93,10 +93,10 @@ export class UserService { /** * * @summary Creates list of users with given input array - * @param user List of user object + * @param body List of user object */ - public createUsersWithListInput(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.createUsersWithListInputWithHttpInfo(user, extraHttpRequestParams) + public createUsersWithListInput(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.createUsersWithListInputWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -174,10 +174,10 @@ export class UserService { * This can only be done by the logged in user. * @summary Updated user * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object */ - public updateUser(username: string, user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.updateUserWithHttpInfo(username, user, extraHttpRequestParams) + public updateUser(username: string, body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.updateUserWithHttpInfo(username, body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -191,12 +191,12 @@ export class UserService { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object */ - public createUserWithHttpInfo(user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUserWithHttpInfo(body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -220,7 +220,7 @@ export class UserService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -234,12 +234,12 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object */ - public createUsersWithArrayInputWithHttpInfo(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInputWithHttpInfo(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -263,7 +263,7 @@ export class UserService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -277,12 +277,12 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object */ - public createUsersWithListInputWithHttpInfo(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInputWithHttpInfo(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -306,7 +306,7 @@ export class UserService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -486,15 +486,15 @@ export class UserService { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object */ - public updateUserWithHttpInfo(username: string, user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { + public updateUserWithHttpInfo(username: string, body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -518,7 +518,7 @@ export class UserService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Put, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 diff --git a/samples/client/petstore/typescript-angular-v2/npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v2/npm/api/pet.service.ts index f15094ee111..515b400db96 100644 --- a/samples/client/petstore/typescript-angular-v2/npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v2/npm/api/pet.service.ts @@ -62,10 +62,10 @@ export class PetService { /** * * @summary Add a new pet to the store - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public addPet(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.addPetWithHttpInfo(pet, extraHttpRequestParams) + public addPet(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.addPetWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -143,10 +143,10 @@ export class PetService { /** * * @summary Update an existing pet - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public updatePet(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.updatePetWithHttpInfo(pet, extraHttpRequestParams) + public updatePet(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.updatePetWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -196,12 +196,12 @@ export class PetService { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public addPetWithHttpInfo(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPetWithHttpInfo(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -235,7 +235,7 @@ export class PetService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: pet == null ? '' : JSON.stringify(pet), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -452,12 +452,12 @@ export class PetService { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public updatePetWithHttpInfo(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePetWithHttpInfo(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -491,7 +491,7 @@ export class PetService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Put, headers: headers, - body: pet == null ? '' : JSON.stringify(pet), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 diff --git a/samples/client/petstore/typescript-angular-v2/npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v2/npm/api/store.service.ts index 53e52d1accb..f042ed047a7 100644 --- a/samples/client/petstore/typescript-angular-v2/npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v2/npm/api/store.service.ts @@ -108,10 +108,10 @@ export class StoreService { /** * * @summary Place an order for a pet - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet */ - public placeOrder(order: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { - return this.placeOrderWithHttpInfo(order, extraHttpRequestParams) + public placeOrder(body: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { + return this.placeOrderWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -243,12 +243,12 @@ export class StoreService { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet */ - public placeOrderWithHttpInfo(order: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrderWithHttpInfo(body: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -274,7 +274,7 @@ export class StoreService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: order == null ? '' : JSON.stringify(order), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 diff --git a/samples/client/petstore/typescript-angular-v2/npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v2/npm/api/user.service.ts index 8ad36014c75..a364053e42b 100644 --- a/samples/client/petstore/typescript-angular-v2/npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v2/npm/api/user.service.ts @@ -61,10 +61,10 @@ export class UserService { /** * This can only be done by the logged in user. * @summary Create user - * @param user Created user object + * @param body Created user object */ - public createUser(user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.createUserWithHttpInfo(user, extraHttpRequestParams) + public createUser(body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.createUserWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -77,10 +77,10 @@ export class UserService { /** * * @summary Creates list of users with given input array - * @param user List of user object + * @param body List of user object */ - public createUsersWithArrayInput(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.createUsersWithArrayInputWithHttpInfo(user, extraHttpRequestParams) + public createUsersWithArrayInput(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.createUsersWithArrayInputWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -93,10 +93,10 @@ export class UserService { /** * * @summary Creates list of users with given input array - * @param user List of user object + * @param body List of user object */ - public createUsersWithListInput(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.createUsersWithListInputWithHttpInfo(user, extraHttpRequestParams) + public createUsersWithListInput(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.createUsersWithListInputWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -174,10 +174,10 @@ export class UserService { * This can only be done by the logged in user. * @summary Updated user * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object */ - public updateUser(username: string, user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.updateUserWithHttpInfo(username, user, extraHttpRequestParams) + public updateUser(username: string, body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.updateUserWithHttpInfo(username, body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -191,12 +191,12 @@ export class UserService { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object */ - public createUserWithHttpInfo(user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUserWithHttpInfo(body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -220,7 +220,7 @@ export class UserService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -234,12 +234,12 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object */ - public createUsersWithArrayInputWithHttpInfo(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInputWithHttpInfo(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -263,7 +263,7 @@ export class UserService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -277,12 +277,12 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object */ - public createUsersWithListInputWithHttpInfo(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInputWithHttpInfo(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -306,7 +306,7 @@ export class UserService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -486,15 +486,15 @@ export class UserService { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object */ - public updateUserWithHttpInfo(username: string, user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { + public updateUserWithHttpInfo(username: string, body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -518,7 +518,7 @@ export class UserService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Put, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/api/pet.service.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/api/pet.service.ts index 8b5a9dc9b18..f791b216f4c 100644 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v2/with-interfaces/api/pet.service.ts @@ -63,10 +63,10 @@ export class PetService implements PetServiceInterface { /** * * @summary Add a new pet to the store - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public addPet(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.addPetWithHttpInfo(pet, extraHttpRequestParams) + public addPet(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.addPetWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -144,10 +144,10 @@ export class PetService implements PetServiceInterface { /** * * @summary Update an existing pet - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public updatePet(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.updatePetWithHttpInfo(pet, extraHttpRequestParams) + public updatePet(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.updatePetWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -197,12 +197,12 @@ export class PetService implements PetServiceInterface { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public addPetWithHttpInfo(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPetWithHttpInfo(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -236,7 +236,7 @@ export class PetService implements PetServiceInterface { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: pet == null ? '' : JSON.stringify(pet), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -453,12 +453,12 @@ export class PetService implements PetServiceInterface { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public updatePetWithHttpInfo(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePetWithHttpInfo(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -492,7 +492,7 @@ export class PetService implements PetServiceInterface { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Put, headers: headers, - body: pet == null ? '' : JSON.stringify(pet), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/api/pet.serviceInterface.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/api/pet.serviceInterface.ts index 01aeb018f3d..0c69e2a3d85 100644 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/api/pet.serviceInterface.ts +++ b/samples/client/petstore/typescript-angular-v2/with-interfaces/api/pet.serviceInterface.ts @@ -28,9 +28,9 @@ export interface PetServiceInterface { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - addPet(pet: Pet, extraHttpRequestParams?: any): Observable<{}>; + addPet(body: Pet, extraHttpRequestParams?: any): Observable<{}>; /** * Deletes a pet @@ -64,9 +64,9 @@ export interface PetServiceInterface { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - updatePet(pet: Pet, extraHttpRequestParams?: any): Observable<{}>; + updatePet(body: Pet, extraHttpRequestParams?: any): Observable<{}>; /** * Updates a pet in the store with form data diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/api/store.service.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/api/store.service.ts index 14a080468ec..2feda021150 100644 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v2/with-interfaces/api/store.service.ts @@ -109,10 +109,10 @@ export class StoreService implements StoreServiceInterface { /** * * @summary Place an order for a pet - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet */ - public placeOrder(order: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { - return this.placeOrderWithHttpInfo(order, extraHttpRequestParams) + public placeOrder(body: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { + return this.placeOrderWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -244,12 +244,12 @@ export class StoreService implements StoreServiceInterface { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet */ - public placeOrderWithHttpInfo(order: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrderWithHttpInfo(body: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -275,7 +275,7 @@ export class StoreService implements StoreServiceInterface { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: order == null ? '' : JSON.stringify(order), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/api/store.serviceInterface.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/api/store.serviceInterface.ts index cf4f2d80226..f216a70486b 100644 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/api/store.serviceInterface.ts +++ b/samples/client/petstore/typescript-angular-v2/with-interfaces/api/store.serviceInterface.ts @@ -47,8 +47,8 @@ export interface StoreServiceInterface { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet */ - placeOrder(order: Order, extraHttpRequestParams?: any): Observable; + placeOrder(body: Order, extraHttpRequestParams?: any): Observable; } diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/api/user.service.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/api/user.service.ts index d3b61504f90..f0265004783 100644 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v2/with-interfaces/api/user.service.ts @@ -62,10 +62,10 @@ export class UserService implements UserServiceInterface { /** * This can only be done by the logged in user. * @summary Create user - * @param user Created user object + * @param body Created user object */ - public createUser(user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.createUserWithHttpInfo(user, extraHttpRequestParams) + public createUser(body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.createUserWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -78,10 +78,10 @@ export class UserService implements UserServiceInterface { /** * * @summary Creates list of users with given input array - * @param user List of user object + * @param body List of user object */ - public createUsersWithArrayInput(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.createUsersWithArrayInputWithHttpInfo(user, extraHttpRequestParams) + public createUsersWithArrayInput(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.createUsersWithArrayInputWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -94,10 +94,10 @@ export class UserService implements UserServiceInterface { /** * * @summary Creates list of users with given input array - * @param user List of user object + * @param body List of user object */ - public createUsersWithListInput(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.createUsersWithListInputWithHttpInfo(user, extraHttpRequestParams) + public createUsersWithListInput(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.createUsersWithListInputWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -175,10 +175,10 @@ export class UserService implements UserServiceInterface { * This can only be done by the logged in user. * @summary Updated user * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object */ - public updateUser(username: string, user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.updateUserWithHttpInfo(username, user, extraHttpRequestParams) + public updateUser(username: string, body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.updateUserWithHttpInfo(username, body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -192,12 +192,12 @@ export class UserService implements UserServiceInterface { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object */ - public createUserWithHttpInfo(user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUserWithHttpInfo(body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -221,7 +221,7 @@ export class UserService implements UserServiceInterface { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -235,12 +235,12 @@ export class UserService implements UserServiceInterface { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object */ - public createUsersWithArrayInputWithHttpInfo(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInputWithHttpInfo(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -264,7 +264,7 @@ export class UserService implements UserServiceInterface { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -278,12 +278,12 @@ export class UserService implements UserServiceInterface { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object */ - public createUsersWithListInputWithHttpInfo(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInputWithHttpInfo(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -307,7 +307,7 @@ export class UserService implements UserServiceInterface { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -487,15 +487,15 @@ export class UserService implements UserServiceInterface { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object */ - public updateUserWithHttpInfo(username: string, user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { + public updateUserWithHttpInfo(username: string, body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -519,7 +519,7 @@ export class UserService implements UserServiceInterface { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Put, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/api/user.serviceInterface.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/api/user.serviceInterface.ts index 5d4d62d7b7b..b9a123984a9 100644 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/api/user.serviceInterface.ts +++ b/samples/client/petstore/typescript-angular-v2/with-interfaces/api/user.serviceInterface.ts @@ -27,23 +27,23 @@ export interface UserServiceInterface { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object */ - createUser(user: User, extraHttpRequestParams?: any): Observable<{}>; + createUser(body: User, extraHttpRequestParams?: any): Observable<{}>; /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object */ - createUsersWithArrayInput(user: Array, extraHttpRequestParams?: any): Observable<{}>; + createUsersWithArrayInput(body: Array, extraHttpRequestParams?: any): Observable<{}>; /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object */ - createUsersWithListInput(user: Array, extraHttpRequestParams?: any): Observable<{}>; + createUsersWithListInput(body: Array, extraHttpRequestParams?: any): Observable<{}>; /** * Delete user @@ -77,8 +77,8 @@ export interface UserServiceInterface { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object */ - updateUser(username: string, user: User, extraHttpRequestParams?: any): Observable<{}>; + updateUser(username: string, body: User, extraHttpRequestParams?: any): Observable<{}>; } diff --git a/samples/client/petstore/typescript-angular-v4.3/npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v4.3/npm/api/pet.service.ts index b8859f688a0..8ecfe2c1d23 100644 --- a/samples/client/petstore/typescript-angular-v4.3/npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v4.3/npm/api/pet.service.ts @@ -61,16 +61,16 @@ export class PetService { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public addPet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public addPet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public addPet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } let headers = this.defaultHeaders; @@ -102,7 +102,7 @@ export class PetService { } return this.httpClient.post(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -322,16 +322,16 @@ export class PetService { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updatePet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public updatePet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public updatePet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } let headers = this.defaultHeaders; @@ -363,7 +363,7 @@ export class PetService { } return this.httpClient.put(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v4.3/npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v4.3/npm/api/store.service.ts index 225138a71f5..6e661b16e32 100644 --- a/samples/client/petstore/typescript-angular-v4.3/npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v4.3/npm/api/store.service.ts @@ -181,16 +181,16 @@ export class StoreService { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public placeOrder(order: Order, observe?: 'body', reportProgress?: boolean): Observable; - public placeOrder(order: Order, observe?: 'response', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe?: 'events', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrder(body: Order, observe?: 'body', reportProgress?: boolean): Observable; + public placeOrder(body: Order, observe?: 'response', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe?: 'events', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } let headers = this.defaultHeaders; @@ -214,7 +214,7 @@ export class StoreService { } return this.httpClient.post(`${this.configuration.basePath}/store/order`, - order, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v4.3/npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v4.3/npm/api/user.service.ts index 3c0ff222226..6145e399995 100644 --- a/samples/client/petstore/typescript-angular-v4.3/npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v4.3/npm/api/user.service.ts @@ -60,16 +60,16 @@ export class UserService { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUser(user: User, observe?: 'body', reportProgress?: boolean): Observable; - public createUser(user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public createUser(user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public createUser(user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUser(body: User, observe?: 'body', reportProgress?: boolean): Observable; + public createUser(body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public createUser(body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public createUser(body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } let headers = this.defaultHeaders; @@ -91,7 +91,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -104,16 +104,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithArrayInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithArrayInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithArrayInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } let headers = this.defaultHeaders; @@ -135,7 +135,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -148,16 +148,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithListInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithListInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithListInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } let headers = this.defaultHeaders; @@ -179,7 +179,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -362,19 +362,19 @@ export class UserService { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateUser(username: string, user: User, observe?: 'body', reportProgress?: boolean): Observable; - public updateUser(username: string, user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + public updateUser(username: string, body: User, observe?: 'body', reportProgress?: boolean): Observable; + public updateUser(username: string, body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } let headers = this.defaultHeaders; @@ -396,7 +396,7 @@ export class UserService { } return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v4/npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v4/npm/api/pet.service.ts index f15094ee111..515b400db96 100644 --- a/samples/client/petstore/typescript-angular-v4/npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v4/npm/api/pet.service.ts @@ -62,10 +62,10 @@ export class PetService { /** * * @summary Add a new pet to the store - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public addPet(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.addPetWithHttpInfo(pet, extraHttpRequestParams) + public addPet(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.addPetWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -143,10 +143,10 @@ export class PetService { /** * * @summary Update an existing pet - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public updatePet(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.updatePetWithHttpInfo(pet, extraHttpRequestParams) + public updatePet(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.updatePetWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -196,12 +196,12 @@ export class PetService { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public addPetWithHttpInfo(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPetWithHttpInfo(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -235,7 +235,7 @@ export class PetService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: pet == null ? '' : JSON.stringify(pet), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -452,12 +452,12 @@ export class PetService { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public updatePetWithHttpInfo(pet: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePetWithHttpInfo(body: Pet, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -491,7 +491,7 @@ export class PetService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Put, headers: headers, - body: pet == null ? '' : JSON.stringify(pet), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 diff --git a/samples/client/petstore/typescript-angular-v4/npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v4/npm/api/store.service.ts index 53e52d1accb..f042ed047a7 100644 --- a/samples/client/petstore/typescript-angular-v4/npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v4/npm/api/store.service.ts @@ -108,10 +108,10 @@ export class StoreService { /** * * @summary Place an order for a pet - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet */ - public placeOrder(order: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { - return this.placeOrderWithHttpInfo(order, extraHttpRequestParams) + public placeOrder(body: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { + return this.placeOrderWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -243,12 +243,12 @@ export class StoreService { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet */ - public placeOrderWithHttpInfo(order: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrderWithHttpInfo(body: Order, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -274,7 +274,7 @@ export class StoreService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: order == null ? '' : JSON.stringify(order), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 diff --git a/samples/client/petstore/typescript-angular-v4/npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v4/npm/api/user.service.ts index 8ad36014c75..a364053e42b 100644 --- a/samples/client/petstore/typescript-angular-v4/npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v4/npm/api/user.service.ts @@ -61,10 +61,10 @@ export class UserService { /** * This can only be done by the logged in user. * @summary Create user - * @param user Created user object + * @param body Created user object */ - public createUser(user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.createUserWithHttpInfo(user, extraHttpRequestParams) + public createUser(body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.createUserWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -77,10 +77,10 @@ export class UserService { /** * * @summary Creates list of users with given input array - * @param user List of user object + * @param body List of user object */ - public createUsersWithArrayInput(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.createUsersWithArrayInputWithHttpInfo(user, extraHttpRequestParams) + public createUsersWithArrayInput(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.createUsersWithArrayInputWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -93,10 +93,10 @@ export class UserService { /** * * @summary Creates list of users with given input array - * @param user List of user object + * @param body List of user object */ - public createUsersWithListInput(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.createUsersWithListInputWithHttpInfo(user, extraHttpRequestParams) + public createUsersWithListInput(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.createUsersWithListInputWithHttpInfo(body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -174,10 +174,10 @@ export class UserService { * This can only be done by the logged in user. * @summary Updated user * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object */ - public updateUser(username: string, user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { - return this.updateUserWithHttpInfo(username, user, extraHttpRequestParams) + public updateUser(username: string, body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable<{}> { + return this.updateUserWithHttpInfo(username, body, extraHttpRequestParams) .map((response: Response) => { if (response.status === 204) { return undefined; @@ -191,12 +191,12 @@ export class UserService { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object */ - public createUserWithHttpInfo(user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUserWithHttpInfo(body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -220,7 +220,7 @@ export class UserService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -234,12 +234,12 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object */ - public createUsersWithArrayInputWithHttpInfo(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInputWithHttpInfo(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -263,7 +263,7 @@ export class UserService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -277,12 +277,12 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object */ - public createUsersWithListInputWithHttpInfo(user: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInputWithHttpInfo(body: Array, extraHttpRequestParams?: RequestOptionsArgs): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -306,7 +306,7 @@ export class UserService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Post, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 @@ -486,15 +486,15 @@ export class UserService { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object */ - public updateUserWithHttpInfo(username: string, user: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { + public updateUserWithHttpInfo(username: string, body: User, extraHttpRequestParams?: RequestOptionsArgs): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } let headers = new Headers(this.defaultHeaders.toJSON()); // https://github.com/angular/angular/issues/6845 @@ -518,7 +518,7 @@ export class UserService { let requestOptions: RequestOptionsArgs = new RequestOptions({ method: RequestMethod.Put, headers: headers, - body: user == null ? '' : JSON.stringify(user), // https://github.com/angular/angular/issues/10612 + body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612 withCredentials:this.configuration.withCredentials }); // issues#4037 diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts index b434fd2cd19..9872199fd98 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/pet.service.ts @@ -61,16 +61,16 @@ export class PetService { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public addPet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public addPet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public addPet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } let headers = this.defaultHeaders; @@ -102,7 +102,7 @@ export class PetService { } return this.httpClient.post(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -322,16 +322,16 @@ export class PetService { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updatePet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public updatePet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public updatePet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } let headers = this.defaultHeaders; @@ -363,7 +363,7 @@ export class PetService { } return this.httpClient.put(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts index b1e7651cc80..5ad014c1ef4 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/store.service.ts @@ -181,16 +181,16 @@ export class StoreService { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public placeOrder(order: Order, observe?: 'body', reportProgress?: boolean): Observable; - public placeOrder(order: Order, observe?: 'response', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe?: 'events', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrder(body: Order, observe?: 'body', reportProgress?: boolean): Observable; + public placeOrder(body: Order, observe?: 'response', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe?: 'events', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } let headers = this.defaultHeaders; @@ -214,7 +214,7 @@ export class StoreService { } return this.httpClient.post(`${this.configuration.basePath}/store/order`, - order, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts index 8e50209a4ab..5f3c886aa2c 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/api/user.service.ts @@ -60,16 +60,16 @@ export class UserService { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUser(user: User, observe?: 'body', reportProgress?: boolean): Observable; - public createUser(user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public createUser(user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public createUser(user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUser(body: User, observe?: 'body', reportProgress?: boolean): Observable; + public createUser(body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public createUser(body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public createUser(body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } let headers = this.defaultHeaders; @@ -91,7 +91,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -104,16 +104,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithArrayInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithArrayInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithArrayInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } let headers = this.defaultHeaders; @@ -135,7 +135,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -148,16 +148,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithListInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithListInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithListInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } let headers = this.defaultHeaders; @@ -179,7 +179,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -362,19 +362,19 @@ export class UserService { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateUser(username: string, user: User, observe?: 'body', reportProgress?: boolean): Observable; - public updateUser(username: string, user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + public updateUser(username: string, body: User, observe?: 'body', reportProgress?: boolean): Observable; + public updateUser(username: string, body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } let headers = this.defaultHeaders; @@ -396,7 +396,7 @@ export class UserService { } return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts index b434fd2cd19..9872199fd98 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/pet.service.ts @@ -61,16 +61,16 @@ export class PetService { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public addPet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public addPet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public addPet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } let headers = this.defaultHeaders; @@ -102,7 +102,7 @@ export class PetService { } return this.httpClient.post(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -322,16 +322,16 @@ export class PetService { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updatePet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public updatePet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public updatePet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } let headers = this.defaultHeaders; @@ -363,7 +363,7 @@ export class PetService { } return this.httpClient.put(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts index b1e7651cc80..5ad014c1ef4 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/store.service.ts @@ -181,16 +181,16 @@ export class StoreService { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public placeOrder(order: Order, observe?: 'body', reportProgress?: boolean): Observable; - public placeOrder(order: Order, observe?: 'response', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe?: 'events', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrder(body: Order, observe?: 'body', reportProgress?: boolean): Observable; + public placeOrder(body: Order, observe?: 'response', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe?: 'events', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } let headers = this.defaultHeaders; @@ -214,7 +214,7 @@ export class StoreService { } return this.httpClient.post(`${this.configuration.basePath}/store/order`, - order, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts index 8e50209a4ab..5f3c886aa2c 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/api/user.service.ts @@ -60,16 +60,16 @@ export class UserService { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUser(user: User, observe?: 'body', reportProgress?: boolean): Observable; - public createUser(user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public createUser(user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public createUser(user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUser(body: User, observe?: 'body', reportProgress?: boolean): Observable; + public createUser(body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public createUser(body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public createUser(body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } let headers = this.defaultHeaders; @@ -91,7 +91,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -104,16 +104,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithArrayInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithArrayInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithArrayInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } let headers = this.defaultHeaders; @@ -135,7 +135,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -148,16 +148,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithListInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithListInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithListInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } let headers = this.defaultHeaders; @@ -179,7 +179,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -362,19 +362,19 @@ export class UserService { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateUser(username: string, user: User, observe?: 'body', reportProgress?: boolean): Observable; - public updateUser(username: string, user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + public updateUser(username: string, body: User, observe?: 'body', reportProgress?: boolean): Observable; + public updateUser(username: string, body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } let headers = this.defaultHeaders; @@ -396,7 +396,7 @@ export class UserService { } return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts index 3da62e0e5f9..5c27a69e5aa 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/pet.service.ts @@ -63,16 +63,16 @@ export class PetService { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public addPet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public addPet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public addPet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } let headers = this.defaultHeaders; @@ -104,7 +104,7 @@ export class PetService { } return this.httpClient.post(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,16 +324,16 @@ export class PetService { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updatePet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public updatePet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public updatePet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } let headers = this.defaultHeaders; @@ -365,7 +365,7 @@ export class PetService { } return this.httpClient.put(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts index efe62c694a6..593d02b907f 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/store.service.ts @@ -183,16 +183,16 @@ export class StoreService { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public placeOrder(order: Order, observe?: 'body', reportProgress?: boolean): Observable; - public placeOrder(order: Order, observe?: 'response', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe?: 'events', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrder(body: Order, observe?: 'body', reportProgress?: boolean): Observable; + public placeOrder(body: Order, observe?: 'response', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe?: 'events', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } let headers = this.defaultHeaders; @@ -216,7 +216,7 @@ export class StoreService { } return this.httpClient.post(`${this.configuration.basePath}/store/order`, - order, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts index d693da51a15..3d6bc0a54ce 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/api/user.service.ts @@ -62,16 +62,16 @@ export class UserService { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUser(user: User, observe?: 'body', reportProgress?: boolean): Observable; - public createUser(user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public createUser(user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public createUser(user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUser(body: User, observe?: 'body', reportProgress?: boolean): Observable; + public createUser(body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public createUser(body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public createUser(body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } let headers = this.defaultHeaders; @@ -93,7 +93,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -106,16 +106,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithArrayInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithArrayInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithArrayInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } let headers = this.defaultHeaders; @@ -137,7 +137,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -150,16 +150,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithListInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithListInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithListInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } let headers = this.defaultHeaders; @@ -181,7 +181,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -364,19 +364,19 @@ export class UserService { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateUser(username: string, user: User, observe?: 'body', reportProgress?: boolean): Observable; - public updateUser(username: string, user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + public updateUser(username: string, body: User, observe?: 'body', reportProgress?: boolean): Observable; + public updateUser(username: string, body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } let headers = this.defaultHeaders; @@ -398,7 +398,7 @@ export class UserService { } return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts index 3da62e0e5f9..5c27a69e5aa 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/pet.service.ts @@ -63,16 +63,16 @@ export class PetService { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public addPet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public addPet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public addPet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } let headers = this.defaultHeaders; @@ -104,7 +104,7 @@ export class PetService { } return this.httpClient.post(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,16 +324,16 @@ export class PetService { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updatePet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public updatePet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public updatePet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } let headers = this.defaultHeaders; @@ -365,7 +365,7 @@ export class PetService { } return this.httpClient.put(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts index efe62c694a6..593d02b907f 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/store.service.ts @@ -183,16 +183,16 @@ export class StoreService { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public placeOrder(order: Order, observe?: 'body', reportProgress?: boolean): Observable; - public placeOrder(order: Order, observe?: 'response', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe?: 'events', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrder(body: Order, observe?: 'body', reportProgress?: boolean): Observable; + public placeOrder(body: Order, observe?: 'response', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe?: 'events', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } let headers = this.defaultHeaders; @@ -216,7 +216,7 @@ export class StoreService { } return this.httpClient.post(`${this.configuration.basePath}/store/order`, - order, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts index d693da51a15..3d6bc0a54ce 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/api/user.service.ts @@ -62,16 +62,16 @@ export class UserService { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUser(user: User, observe?: 'body', reportProgress?: boolean): Observable; - public createUser(user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public createUser(user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public createUser(user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUser(body: User, observe?: 'body', reportProgress?: boolean): Observable; + public createUser(body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public createUser(body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public createUser(body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } let headers = this.defaultHeaders; @@ -93,7 +93,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -106,16 +106,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithArrayInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithArrayInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithArrayInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } let headers = this.defaultHeaders; @@ -137,7 +137,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -150,16 +150,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithListInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithListInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithListInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } let headers = this.defaultHeaders; @@ -181,7 +181,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -364,19 +364,19 @@ export class UserService { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateUser(username: string, user: User, observe?: 'body', reportProgress?: boolean): Observable; - public updateUser(username: string, user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + public updateUser(username: string, body: User, observe?: 'body', reportProgress?: boolean): Observable; + public updateUser(username: string, body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } let headers = this.defaultHeaders; @@ -398,7 +398,7 @@ export class UserService { } return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts index b434fd2cd19..9872199fd98 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/pet.service.ts @@ -61,16 +61,16 @@ export class PetService { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public addPet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public addPet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public addPet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } let headers = this.defaultHeaders; @@ -102,7 +102,7 @@ export class PetService { } return this.httpClient.post(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -322,16 +322,16 @@ export class PetService { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updatePet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public updatePet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public updatePet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } let headers = this.defaultHeaders; @@ -363,7 +363,7 @@ export class PetService { } return this.httpClient.put(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts index b1e7651cc80..5ad014c1ef4 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/store.service.ts @@ -181,16 +181,16 @@ export class StoreService { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public placeOrder(order: Order, observe?: 'body', reportProgress?: boolean): Observable; - public placeOrder(order: Order, observe?: 'response', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe?: 'events', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrder(body: Order, observe?: 'body', reportProgress?: boolean): Observable; + public placeOrder(body: Order, observe?: 'response', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe?: 'events', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } let headers = this.defaultHeaders; @@ -214,7 +214,7 @@ export class StoreService { } return this.httpClient.post(`${this.configuration.basePath}/store/order`, - order, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts index 8e50209a4ab..5f3c886aa2c 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/api/user.service.ts @@ -60,16 +60,16 @@ export class UserService { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUser(user: User, observe?: 'body', reportProgress?: boolean): Observable; - public createUser(user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public createUser(user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public createUser(user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUser(body: User, observe?: 'body', reportProgress?: boolean): Observable; + public createUser(body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public createUser(body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public createUser(body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } let headers = this.defaultHeaders; @@ -91,7 +91,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -104,16 +104,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithArrayInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithArrayInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithArrayInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } let headers = this.defaultHeaders; @@ -135,7 +135,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -148,16 +148,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithListInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithListInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithListInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } let headers = this.defaultHeaders; @@ -179,7 +179,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -362,19 +362,19 @@ export class UserService { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateUser(username: string, user: User, observe?: 'body', reportProgress?: boolean): Observable; - public updateUser(username: string, user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + public updateUser(username: string, body: User, observe?: 'body', reportProgress?: boolean): Observable; + public updateUser(username: string, body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } let headers = this.defaultHeaders; @@ -396,7 +396,7 @@ export class UserService { } return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts index b434fd2cd19..9872199fd98 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/pet.service.ts @@ -61,16 +61,16 @@ export class PetService { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public addPet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public addPet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public addPet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } let headers = this.defaultHeaders; @@ -102,7 +102,7 @@ export class PetService { } return this.httpClient.post(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -322,16 +322,16 @@ export class PetService { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updatePet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public updatePet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public updatePet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } let headers = this.defaultHeaders; @@ -363,7 +363,7 @@ export class PetService { } return this.httpClient.put(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts index b1e7651cc80..5ad014c1ef4 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/store.service.ts @@ -181,16 +181,16 @@ export class StoreService { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public placeOrder(order: Order, observe?: 'body', reportProgress?: boolean): Observable; - public placeOrder(order: Order, observe?: 'response', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe?: 'events', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrder(body: Order, observe?: 'body', reportProgress?: boolean): Observable; + public placeOrder(body: Order, observe?: 'response', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe?: 'events', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } let headers = this.defaultHeaders; @@ -214,7 +214,7 @@ export class StoreService { } return this.httpClient.post(`${this.configuration.basePath}/store/order`, - order, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts index 8e50209a4ab..5f3c886aa2c 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/api/user.service.ts @@ -60,16 +60,16 @@ export class UserService { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUser(user: User, observe?: 'body', reportProgress?: boolean): Observable; - public createUser(user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public createUser(user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public createUser(user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUser(body: User, observe?: 'body', reportProgress?: boolean): Observable; + public createUser(body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public createUser(body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public createUser(body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } let headers = this.defaultHeaders; @@ -91,7 +91,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -104,16 +104,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithArrayInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithArrayInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithArrayInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } let headers = this.defaultHeaders; @@ -135,7 +135,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -148,16 +148,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithListInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithListInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithListInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } let headers = this.defaultHeaders; @@ -179,7 +179,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -362,19 +362,19 @@ export class UserService { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateUser(username: string, user: User, observe?: 'body', reportProgress?: boolean): Observable; - public updateUser(username: string, user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + public updateUser(username: string, body: User, observe?: 'body', reportProgress?: boolean): Observable; + public updateUser(username: string, body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } let headers = this.defaultHeaders; @@ -396,7 +396,7 @@ export class UserService { } return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts index 3da62e0e5f9..5c27a69e5aa 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/pet.service.ts @@ -63,16 +63,16 @@ export class PetService { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public addPet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public addPet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public addPet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } let headers = this.defaultHeaders; @@ -104,7 +104,7 @@ export class PetService { } return this.httpClient.post(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,16 +324,16 @@ export class PetService { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updatePet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public updatePet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public updatePet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } let headers = this.defaultHeaders; @@ -365,7 +365,7 @@ export class PetService { } return this.httpClient.put(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts index efe62c694a6..593d02b907f 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/store.service.ts @@ -183,16 +183,16 @@ export class StoreService { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public placeOrder(order: Order, observe?: 'body', reportProgress?: boolean): Observable; - public placeOrder(order: Order, observe?: 'response', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe?: 'events', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrder(body: Order, observe?: 'body', reportProgress?: boolean): Observable; + public placeOrder(body: Order, observe?: 'response', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe?: 'events', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } let headers = this.defaultHeaders; @@ -216,7 +216,7 @@ export class StoreService { } return this.httpClient.post(`${this.configuration.basePath}/store/order`, - order, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts index d693da51a15..3d6bc0a54ce 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/api/user.service.ts @@ -62,16 +62,16 @@ export class UserService { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUser(user: User, observe?: 'body', reportProgress?: boolean): Observable; - public createUser(user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public createUser(user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public createUser(user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUser(body: User, observe?: 'body', reportProgress?: boolean): Observable; + public createUser(body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public createUser(body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public createUser(body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } let headers = this.defaultHeaders; @@ -93,7 +93,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -106,16 +106,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithArrayInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithArrayInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithArrayInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } let headers = this.defaultHeaders; @@ -137,7 +137,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -150,16 +150,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithListInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithListInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithListInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } let headers = this.defaultHeaders; @@ -181,7 +181,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -364,19 +364,19 @@ export class UserService { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateUser(username: string, user: User, observe?: 'body', reportProgress?: boolean): Observable; - public updateUser(username: string, user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + public updateUser(username: string, body: User, observe?: 'body', reportProgress?: boolean): Observable; + public updateUser(username: string, body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } let headers = this.defaultHeaders; @@ -398,7 +398,7 @@ export class UserService { } return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts index 3da62e0e5f9..5c27a69e5aa 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/pet.service.ts @@ -63,16 +63,16 @@ export class PetService { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public addPet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public addPet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public addPet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public addPet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public addPet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } let headers = this.defaultHeaders; @@ -104,7 +104,7 @@ export class PetService { } return this.httpClient.post(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -324,16 +324,16 @@ export class PetService { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updatePet(pet: Pet, observe?: 'body', reportProgress?: boolean): Observable; - public updatePet(pet: Pet, observe?: 'response', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe?: 'events', reportProgress?: boolean): Observable>; - public updatePet(pet: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePet(body: Pet, observe?: 'body', reportProgress?: boolean): Observable; + public updatePet(body: Pet, observe?: 'response', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe?: 'events', reportProgress?: boolean): Observable>; + public updatePet(body: Pet, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } let headers = this.defaultHeaders; @@ -365,7 +365,7 @@ export class PetService { } return this.httpClient.put(`${this.configuration.basePath}/pet`, - pet, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts index efe62c694a6..593d02b907f 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/store.service.ts @@ -183,16 +183,16 @@ export class StoreService { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public placeOrder(order: Order, observe?: 'body', reportProgress?: boolean): Observable; - public placeOrder(order: Order, observe?: 'response', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe?: 'events', reportProgress?: boolean): Observable>; - public placeOrder(order: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrder(body: Order, observe?: 'body', reportProgress?: boolean): Observable; + public placeOrder(body: Order, observe?: 'response', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe?: 'events', reportProgress?: boolean): Observable>; + public placeOrder(body: Order, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } let headers = this.defaultHeaders; @@ -216,7 +216,7 @@ export class StoreService { } return this.httpClient.post(`${this.configuration.basePath}/store/order`, - order, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts index d693da51a15..3d6bc0a54ce 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/api/user.service.ts @@ -62,16 +62,16 @@ export class UserService { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUser(user: User, observe?: 'body', reportProgress?: boolean): Observable; - public createUser(user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public createUser(user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public createUser(user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUser(body: User, observe?: 'body', reportProgress?: boolean): Observable; + public createUser(body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public createUser(body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public createUser(body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } let headers = this.defaultHeaders; @@ -93,7 +93,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -106,16 +106,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithArrayInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithArrayInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithArrayInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithArrayInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithArrayInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } let headers = this.defaultHeaders; @@ -137,7 +137,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithArray`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -150,16 +150,16 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUsersWithListInput(user: Array, observe?: 'body', reportProgress?: boolean): Observable; - public createUsersWithListInput(user: Array, observe?: 'response', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe?: 'events', reportProgress?: boolean): Observable>; - public createUsersWithListInput(user: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInput(body: Array, observe?: 'body', reportProgress?: boolean): Observable; + public createUsersWithListInput(body: Array, observe?: 'response', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe?: 'events', reportProgress?: boolean): Observable>; + public createUsersWithListInput(body: Array, observe: any = 'body', reportProgress: boolean = false ): Observable { + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } let headers = this.defaultHeaders; @@ -181,7 +181,7 @@ export class UserService { } return this.httpClient.post(`${this.configuration.basePath}/user/createWithList`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -364,19 +364,19 @@ export class UserService { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateUser(username: string, user: User, observe?: 'body', reportProgress?: boolean): Observable; - public updateUser(username: string, user: User, observe?: 'response', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe?: 'events', reportProgress?: boolean): Observable>; - public updateUser(username: string, user: User, observe: any = 'body', reportProgress: boolean = false ): Observable { + public updateUser(username: string, body: User, observe?: 'body', reportProgress?: boolean): Observable; + public updateUser(username: string, body: User, observe?: 'response', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe?: 'events', reportProgress?: boolean): Observable>; + public updateUser(username: string, body: User, observe: any = 'body', reportProgress: boolean = false ): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } let headers = this.defaultHeaders; @@ -398,7 +398,7 @@ export class UserService { } return this.httpClient.put(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`, - user, + body, { withCredentials: this.configuration.withCredentials, headers: headers, diff --git a/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts index 4c759910142..364800af032 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts @@ -23,7 +23,7 @@ import { } from '../models'; export interface AddPetRequest { - pet: Pet; + body: Pet; } export interface DeletePetRequest { @@ -44,7 +44,7 @@ export interface GetPetByIdRequest { } export interface UpdatePetRequest { - pet: Pet; + body: Pet; } export interface UpdatePetWithFormRequest { @@ -68,8 +68,8 @@ export class PetApi extends runtime.BaseAPI { * Add a new pet to the store */ async addPetRaw(requestParameters: AddPetRequest): Promise> { - if (requestParameters.pet === null || requestParameters.pet === undefined) { - throw new runtime.RequiredError('pet','Required parameter requestParameters.pet was null or undefined when calling addPet.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling addPet.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -92,7 +92,7 @@ export class PetApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: PetToJSON(requestParameters.pet), + body: PetToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); @@ -277,8 +277,8 @@ export class PetApi extends runtime.BaseAPI { * Update an existing pet */ async updatePetRaw(requestParameters: UpdatePetRequest): Promise> { - if (requestParameters.pet === null || requestParameters.pet === undefined) { - throw new runtime.RequiredError('pet','Required parameter requestParameters.pet was null or undefined when calling updatePet.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling updatePet.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -301,7 +301,7 @@ export class PetApi extends runtime.BaseAPI { method: 'PUT', headers: headerParameters, query: queryParameters, - body: PetToJSON(requestParameters.pet), + body: PetToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); diff --git a/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts index e11c35947a6..d9f9a0465f4 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts @@ -28,7 +28,7 @@ export interface GetOrderByIdRequest { } export interface PlaceOrderRequest { - order: Order; + body: Order; } /** @@ -135,8 +135,8 @@ export class StoreApi extends runtime.BaseAPI { * Place an order for a pet */ async placeOrderRaw(requestParameters: PlaceOrderRequest): Promise> { - if (requestParameters.order === null || requestParameters.order === undefined) { - throw new runtime.RequiredError('order','Required parameter requestParameters.order was null or undefined when calling placeOrder.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling placeOrder.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -150,7 +150,7 @@ export class StoreApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: OrderToJSON(requestParameters.order), + body: OrderToJSON(requestParameters.body), }); return new runtime.JSONApiResponse(response, (jsonValue) => OrderFromJSON(jsonValue)); diff --git a/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts index e1a58762591..a54a53211d3 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts @@ -20,15 +20,15 @@ import { } from '../models'; export interface CreateUserRequest { - user: User; + body: User; } export interface CreateUsersWithArrayInputRequest { - user: Array; + body: Array; } export interface CreateUsersWithListInputRequest { - user: Array; + body: Array; } export interface DeleteUserRequest { @@ -46,7 +46,7 @@ export interface LoginUserRequest { export interface UpdateUserRequest { username: string; - user: User; + body: User; } /** @@ -59,8 +59,8 @@ export class UserApi extends runtime.BaseAPI { * Create user */ async createUserRaw(requestParameters: CreateUserRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUser.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUser.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -74,7 +74,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: UserToJSON(requestParameters.user), + body: UserToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); @@ -92,8 +92,8 @@ export class UserApi extends runtime.BaseAPI { * Creates list of users with given input array */ async createUsersWithArrayInputRaw(requestParameters: CreateUsersWithArrayInputRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUsersWithArrayInput.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUsersWithArrayInput.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -107,7 +107,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters.user.map(UserToJSON), + body: requestParameters.body.map(UserToJSON), }); return new runtime.VoidApiResponse(response); @@ -124,8 +124,8 @@ export class UserApi extends runtime.BaseAPI { * Creates list of users with given input array */ async createUsersWithListInputRaw(requestParameters: CreateUsersWithListInputRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUsersWithListInput.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUsersWithListInput.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -139,7 +139,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters.user.map(UserToJSON), + body: requestParameters.body.map(UserToJSON), }); return new runtime.VoidApiResponse(response); @@ -289,8 +289,8 @@ export class UserApi extends runtime.BaseAPI { throw new runtime.RequiredError('username','Required parameter requestParameters.username was null or undefined when calling updateUser.'); } - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling updateUser.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling updateUser.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -304,7 +304,7 @@ export class UserApi extends runtime.BaseAPI { method: 'PUT', headers: headerParameters, query: queryParameters, - body: UserToJSON(requestParameters.user), + body: UserToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/apis/PetApi.ts index 4c759910142..364800af032 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/apis/PetApi.ts @@ -23,7 +23,7 @@ import { } from '../models'; export interface AddPetRequest { - pet: Pet; + body: Pet; } export interface DeletePetRequest { @@ -44,7 +44,7 @@ export interface GetPetByIdRequest { } export interface UpdatePetRequest { - pet: Pet; + body: Pet; } export interface UpdatePetWithFormRequest { @@ -68,8 +68,8 @@ export class PetApi extends runtime.BaseAPI { * Add a new pet to the store */ async addPetRaw(requestParameters: AddPetRequest): Promise> { - if (requestParameters.pet === null || requestParameters.pet === undefined) { - throw new runtime.RequiredError('pet','Required parameter requestParameters.pet was null or undefined when calling addPet.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling addPet.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -92,7 +92,7 @@ export class PetApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: PetToJSON(requestParameters.pet), + body: PetToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); @@ -277,8 +277,8 @@ export class PetApi extends runtime.BaseAPI { * Update an existing pet */ async updatePetRaw(requestParameters: UpdatePetRequest): Promise> { - if (requestParameters.pet === null || requestParameters.pet === undefined) { - throw new runtime.RequiredError('pet','Required parameter requestParameters.pet was null or undefined when calling updatePet.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling updatePet.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -301,7 +301,7 @@ export class PetApi extends runtime.BaseAPI { method: 'PUT', headers: headerParameters, query: queryParameters, - body: PetToJSON(requestParameters.pet), + body: PetToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/apis/StoreApi.ts index e11c35947a6..d9f9a0465f4 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/apis/StoreApi.ts @@ -28,7 +28,7 @@ export interface GetOrderByIdRequest { } export interface PlaceOrderRequest { - order: Order; + body: Order; } /** @@ -135,8 +135,8 @@ export class StoreApi extends runtime.BaseAPI { * Place an order for a pet */ async placeOrderRaw(requestParameters: PlaceOrderRequest): Promise> { - if (requestParameters.order === null || requestParameters.order === undefined) { - throw new runtime.RequiredError('order','Required parameter requestParameters.order was null or undefined when calling placeOrder.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling placeOrder.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -150,7 +150,7 @@ export class StoreApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: OrderToJSON(requestParameters.order), + body: OrderToJSON(requestParameters.body), }); return new runtime.JSONApiResponse(response, (jsonValue) => OrderFromJSON(jsonValue)); diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/apis/UserApi.ts index e1a58762591..a54a53211d3 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/apis/UserApi.ts @@ -20,15 +20,15 @@ import { } from '../models'; export interface CreateUserRequest { - user: User; + body: User; } export interface CreateUsersWithArrayInputRequest { - user: Array; + body: Array; } export interface CreateUsersWithListInputRequest { - user: Array; + body: Array; } export interface DeleteUserRequest { @@ -46,7 +46,7 @@ export interface LoginUserRequest { export interface UpdateUserRequest { username: string; - user: User; + body: User; } /** @@ -59,8 +59,8 @@ export class UserApi extends runtime.BaseAPI { * Create user */ async createUserRaw(requestParameters: CreateUserRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUser.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUser.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -74,7 +74,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: UserToJSON(requestParameters.user), + body: UserToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); @@ -92,8 +92,8 @@ export class UserApi extends runtime.BaseAPI { * Creates list of users with given input array */ async createUsersWithArrayInputRaw(requestParameters: CreateUsersWithArrayInputRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUsersWithArrayInput.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUsersWithArrayInput.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -107,7 +107,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters.user.map(UserToJSON), + body: requestParameters.body.map(UserToJSON), }); return new runtime.VoidApiResponse(response); @@ -124,8 +124,8 @@ export class UserApi extends runtime.BaseAPI { * Creates list of users with given input array */ async createUsersWithListInputRaw(requestParameters: CreateUsersWithListInputRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUsersWithListInput.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUsersWithListInput.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -139,7 +139,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters.user.map(UserToJSON), + body: requestParameters.body.map(UserToJSON), }); return new runtime.VoidApiResponse(response); @@ -289,8 +289,8 @@ export class UserApi extends runtime.BaseAPI { throw new runtime.RequiredError('username','Required parameter requestParameters.username was null or undefined when calling updateUser.'); } - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling updateUser.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling updateUser.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -304,7 +304,7 @@ export class UserApi extends runtime.BaseAPI { method: 'PUT', headers: headerParameters, query: queryParameters, - body: UserToJSON(requestParameters.user), + body: UserToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts index 4c759910142..364800af032 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts @@ -23,7 +23,7 @@ import { } from '../models'; export interface AddPetRequest { - pet: Pet; + body: Pet; } export interface DeletePetRequest { @@ -44,7 +44,7 @@ export interface GetPetByIdRequest { } export interface UpdatePetRequest { - pet: Pet; + body: Pet; } export interface UpdatePetWithFormRequest { @@ -68,8 +68,8 @@ export class PetApi extends runtime.BaseAPI { * Add a new pet to the store */ async addPetRaw(requestParameters: AddPetRequest): Promise> { - if (requestParameters.pet === null || requestParameters.pet === undefined) { - throw new runtime.RequiredError('pet','Required parameter requestParameters.pet was null or undefined when calling addPet.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling addPet.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -92,7 +92,7 @@ export class PetApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: PetToJSON(requestParameters.pet), + body: PetToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); @@ -277,8 +277,8 @@ export class PetApi extends runtime.BaseAPI { * Update an existing pet */ async updatePetRaw(requestParameters: UpdatePetRequest): Promise> { - if (requestParameters.pet === null || requestParameters.pet === undefined) { - throw new runtime.RequiredError('pet','Required parameter requestParameters.pet was null or undefined when calling updatePet.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling updatePet.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -301,7 +301,7 @@ export class PetApi extends runtime.BaseAPI { method: 'PUT', headers: headerParameters, query: queryParameters, - body: PetToJSON(requestParameters.pet), + body: PetToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts index e11c35947a6..d9f9a0465f4 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts @@ -28,7 +28,7 @@ export interface GetOrderByIdRequest { } export interface PlaceOrderRequest { - order: Order; + body: Order; } /** @@ -135,8 +135,8 @@ export class StoreApi extends runtime.BaseAPI { * Place an order for a pet */ async placeOrderRaw(requestParameters: PlaceOrderRequest): Promise> { - if (requestParameters.order === null || requestParameters.order === undefined) { - throw new runtime.RequiredError('order','Required parameter requestParameters.order was null or undefined when calling placeOrder.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling placeOrder.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -150,7 +150,7 @@ export class StoreApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: OrderToJSON(requestParameters.order), + body: OrderToJSON(requestParameters.body), }); return new runtime.JSONApiResponse(response, (jsonValue) => OrderFromJSON(jsonValue)); diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts index e1a58762591..a54a53211d3 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts @@ -20,15 +20,15 @@ import { } from '../models'; export interface CreateUserRequest { - user: User; + body: User; } export interface CreateUsersWithArrayInputRequest { - user: Array; + body: Array; } export interface CreateUsersWithListInputRequest { - user: Array; + body: Array; } export interface DeleteUserRequest { @@ -46,7 +46,7 @@ export interface LoginUserRequest { export interface UpdateUserRequest { username: string; - user: User; + body: User; } /** @@ -59,8 +59,8 @@ export class UserApi extends runtime.BaseAPI { * Create user */ async createUserRaw(requestParameters: CreateUserRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUser.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUser.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -74,7 +74,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: UserToJSON(requestParameters.user), + body: UserToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); @@ -92,8 +92,8 @@ export class UserApi extends runtime.BaseAPI { * Creates list of users with given input array */ async createUsersWithArrayInputRaw(requestParameters: CreateUsersWithArrayInputRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUsersWithArrayInput.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUsersWithArrayInput.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -107,7 +107,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters.user.map(UserToJSON), + body: requestParameters.body.map(UserToJSON), }); return new runtime.VoidApiResponse(response); @@ -124,8 +124,8 @@ export class UserApi extends runtime.BaseAPI { * Creates list of users with given input array */ async createUsersWithListInputRaw(requestParameters: CreateUsersWithListInputRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUsersWithListInput.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUsersWithListInput.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -139,7 +139,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters.user.map(UserToJSON), + body: requestParameters.body.map(UserToJSON), }); return new runtime.VoidApiResponse(response); @@ -289,8 +289,8 @@ export class UserApi extends runtime.BaseAPI { throw new runtime.RequiredError('username','Required parameter requestParameters.username was null or undefined when calling updateUser.'); } - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling updateUser.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling updateUser.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -304,7 +304,7 @@ export class UserApi extends runtime.BaseAPI { method: 'PUT', headers: headerParameters, query: queryParameters, - body: UserToJSON(requestParameters.user), + body: UserToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/apis/PetApi.ts index 4c759910142..364800af032 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/apis/PetApi.ts @@ -23,7 +23,7 @@ import { } from '../models'; export interface AddPetRequest { - pet: Pet; + body: Pet; } export interface DeletePetRequest { @@ -44,7 +44,7 @@ export interface GetPetByIdRequest { } export interface UpdatePetRequest { - pet: Pet; + body: Pet; } export interface UpdatePetWithFormRequest { @@ -68,8 +68,8 @@ export class PetApi extends runtime.BaseAPI { * Add a new pet to the store */ async addPetRaw(requestParameters: AddPetRequest): Promise> { - if (requestParameters.pet === null || requestParameters.pet === undefined) { - throw new runtime.RequiredError('pet','Required parameter requestParameters.pet was null or undefined when calling addPet.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling addPet.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -92,7 +92,7 @@ export class PetApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: PetToJSON(requestParameters.pet), + body: PetToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); @@ -277,8 +277,8 @@ export class PetApi extends runtime.BaseAPI { * Update an existing pet */ async updatePetRaw(requestParameters: UpdatePetRequest): Promise> { - if (requestParameters.pet === null || requestParameters.pet === undefined) { - throw new runtime.RequiredError('pet','Required parameter requestParameters.pet was null or undefined when calling updatePet.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling updatePet.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -301,7 +301,7 @@ export class PetApi extends runtime.BaseAPI { method: 'PUT', headers: headerParameters, query: queryParameters, - body: PetToJSON(requestParameters.pet), + body: PetToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/apis/StoreApi.ts index e11c35947a6..d9f9a0465f4 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/apis/StoreApi.ts @@ -28,7 +28,7 @@ export interface GetOrderByIdRequest { } export interface PlaceOrderRequest { - order: Order; + body: Order; } /** @@ -135,8 +135,8 @@ export class StoreApi extends runtime.BaseAPI { * Place an order for a pet */ async placeOrderRaw(requestParameters: PlaceOrderRequest): Promise> { - if (requestParameters.order === null || requestParameters.order === undefined) { - throw new runtime.RequiredError('order','Required parameter requestParameters.order was null or undefined when calling placeOrder.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling placeOrder.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -150,7 +150,7 @@ export class StoreApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: OrderToJSON(requestParameters.order), + body: OrderToJSON(requestParameters.body), }); return new runtime.JSONApiResponse(response, (jsonValue) => OrderFromJSON(jsonValue)); diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/apis/UserApi.ts index e1a58762591..a54a53211d3 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/apis/UserApi.ts @@ -20,15 +20,15 @@ import { } from '../models'; export interface CreateUserRequest { - user: User; + body: User; } export interface CreateUsersWithArrayInputRequest { - user: Array; + body: Array; } export interface CreateUsersWithListInputRequest { - user: Array; + body: Array; } export interface DeleteUserRequest { @@ -46,7 +46,7 @@ export interface LoginUserRequest { export interface UpdateUserRequest { username: string; - user: User; + body: User; } /** @@ -59,8 +59,8 @@ export class UserApi extends runtime.BaseAPI { * Create user */ async createUserRaw(requestParameters: CreateUserRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUser.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUser.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -74,7 +74,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: UserToJSON(requestParameters.user), + body: UserToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); @@ -92,8 +92,8 @@ export class UserApi extends runtime.BaseAPI { * Creates list of users with given input array */ async createUsersWithArrayInputRaw(requestParameters: CreateUsersWithArrayInputRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUsersWithArrayInput.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUsersWithArrayInput.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -107,7 +107,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters.user.map(UserToJSON), + body: requestParameters.body.map(UserToJSON), }); return new runtime.VoidApiResponse(response); @@ -124,8 +124,8 @@ export class UserApi extends runtime.BaseAPI { * Creates list of users with given input array */ async createUsersWithListInputRaw(requestParameters: CreateUsersWithListInputRequest): Promise> { - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling createUsersWithListInput.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling createUsersWithListInput.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -139,7 +139,7 @@ export class UserApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters.user.map(UserToJSON), + body: requestParameters.body.map(UserToJSON), }); return new runtime.VoidApiResponse(response); @@ -289,8 +289,8 @@ export class UserApi extends runtime.BaseAPI { throw new runtime.RequiredError('username','Required parameter requestParameters.username was null or undefined when calling updateUser.'); } - if (requestParameters.user === null || requestParameters.user === undefined) { - throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling updateUser.'); + if (requestParameters.body === null || requestParameters.body === undefined) { + throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling updateUser.'); } const queryParameters: runtime.HTTPQuery = {}; @@ -304,7 +304,7 @@ export class UserApi extends runtime.BaseAPI { method: 'PUT', headers: headerParameters, query: queryParameters, - body: UserToJSON(requestParameters.user), + body: UserToJSON(requestParameters.body), }); return new runtime.VoidApiResponse(response); diff --git a/samples/client/petstore/typescript-fetch/tests/default/test/PetApi.ts b/samples/client/petstore/typescript-fetch/tests/default/test/PetApi.ts index d5680c1e1de..827cc99303c 100644 --- a/samples/client/petstore/typescript-fetch/tests/default/test/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/tests/default/test/PetApi.ts @@ -16,7 +16,7 @@ describe('PetApi', () => { }); it('should add and delete Pet', () => { - return api.addPet({ pet: fixture }).then(() => { + return api.addPet({ body: fixture }).then(() => { }); }); @@ -29,7 +29,7 @@ describe('PetApi', () => { it('should update Pet by ID', () => { return api.getPetById({ petId: fixture.id }).then((result: Pet) => { result.name = 'newname'; - return api.updatePet({ pet: result }).then(() => { + return api.updatePet({ body: result }).then(() => { return api.getPetById({ petId: fixture.id }).then((result: Pet) => { return expect(result.name).to.deep.equal('newname'); }); diff --git a/samples/client/petstore/typescript-inversify/api/pet.service.ts b/samples/client/petstore/typescript-inversify/api/pet.service.ts index 28462745307..b0df73b34e0 100644 --- a/samples/client/petstore/typescript-inversify/api/pet.service.ts +++ b/samples/client/petstore/typescript-inversify/api/pet.service.ts @@ -40,14 +40,14 @@ export class PetService { /** * Add a new pet to the store * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public addPet(pet: Pet, observe?: 'body', headers?: Headers): Observable; - public addPet(pet: Pet, observe?: 'response', headers?: Headers): Observable>; - public addPet(pet: Pet, observe: any = 'body', headers: Headers = {}): Observable { - if (!pet){ - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + public addPet(body: Pet, observe?: 'body', headers?: Headers): Observable; + public addPet(body: Pet, observe?: 'response', headers?: Headers): Observable>; + public addPet(body: Pet, observe: any = 'body', headers: Headers = {}): Observable { + if (!body){ + throw new Error('Required parameter body was null or undefined when calling addPet.'); } // authentication (petstore_auth) required @@ -60,7 +60,7 @@ export class PetService { headers['Accept'] = 'application/json'; headers['Content-Type'] = 'application/json'; - const response: Observable> = this.httpClient.post(`${this.basePath}/pet`, pet , headers); + const response: Observable> = this.httpClient.post(`${this.basePath}/pet`, body , headers); if (observe == 'body') { return response.map(httpResponse => (httpResponse.response)); } @@ -203,14 +203,14 @@ export class PetService { /** * Update an existing pet * - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public updatePet(pet: Pet, observe?: 'body', headers?: Headers): Observable; - public updatePet(pet: Pet, observe?: 'response', headers?: Headers): Observable>; - public updatePet(pet: Pet, observe: any = 'body', headers: Headers = {}): Observable { - if (!pet){ - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + public updatePet(body: Pet, observe?: 'body', headers?: Headers): Observable; + public updatePet(body: Pet, observe?: 'response', headers?: Headers): Observable>; + public updatePet(body: Pet, observe: any = 'body', headers: Headers = {}): Observable { + if (!body){ + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } // authentication (petstore_auth) required @@ -223,7 +223,7 @@ export class PetService { headers['Accept'] = 'application/json'; headers['Content-Type'] = 'application/json'; - const response: Observable> = this.httpClient.put(`${this.basePath}/pet`, pet , headers); + const response: Observable> = this.httpClient.put(`${this.basePath}/pet`, body , headers); if (observe == 'body') { return response.map(httpResponse => (httpResponse.response)); } diff --git a/samples/client/petstore/typescript-inversify/api/store.service.ts b/samples/client/petstore/typescript-inversify/api/store.service.ts index f72d5bf1f28..f4c204db479 100644 --- a/samples/client/petstore/typescript-inversify/api/store.service.ts +++ b/samples/client/petstore/typescript-inversify/api/store.service.ts @@ -107,20 +107,20 @@ export class StoreService { /** * Place an order for a pet * - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet */ - public placeOrder(order: Order, observe?: 'body', headers?: Headers): Observable; - public placeOrder(order: Order, observe?: 'response', headers?: Headers): Observable>; - public placeOrder(order: Order, observe: any = 'body', headers: Headers = {}): Observable { - if (!order){ - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + public placeOrder(body: Order, observe?: 'body', headers?: Headers): Observable; + public placeOrder(body: Order, observe?: 'response', headers?: Headers): Observable>; + public placeOrder(body: Order, observe: any = 'body', headers: Headers = {}): Observable { + if (!body){ + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } headers['Accept'] = 'application/xml'; headers['Content-Type'] = 'application/json'; - const response: Observable> = this.httpClient.post(`${this.basePath}/store/order`, order , headers); + const response: Observable> = this.httpClient.post(`${this.basePath}/store/order`, body , headers); if (observe == 'body') { return response.map(httpResponse => (httpResponse.response)); } diff --git a/samples/client/petstore/typescript-inversify/api/user.service.ts b/samples/client/petstore/typescript-inversify/api/user.service.ts index 9593cd8d698..45e10dece9c 100644 --- a/samples/client/petstore/typescript-inversify/api/user.service.ts +++ b/samples/client/petstore/typescript-inversify/api/user.service.ts @@ -39,20 +39,20 @@ export class UserService { /** * Create user * This can only be done by the logged in user. - * @param user Created user object + * @param body Created user object */ - public createUser(user: User, observe?: 'body', headers?: Headers): Observable; - public createUser(user: User, observe?: 'response', headers?: Headers): Observable>; - public createUser(user: User, observe: any = 'body', headers: Headers = {}): Observable { - if (!user){ - throw new Error('Required parameter user was null or undefined when calling createUser.'); + public createUser(body: User, observe?: 'body', headers?: Headers): Observable; + public createUser(body: User, observe?: 'response', headers?: Headers): Observable>; + public createUser(body: User, observe: any = 'body', headers: Headers = {}): Observable { + if (!body){ + throw new Error('Required parameter body was null or undefined when calling createUser.'); } headers['Accept'] = 'application/json'; headers['Content-Type'] = 'application/json'; - const response: Observable> = this.httpClient.post(`${this.basePath}/user`, user , headers); + const response: Observable> = this.httpClient.post(`${this.basePath}/user`, body , headers); if (observe == 'body') { return response.map(httpResponse => (httpResponse.response)); } @@ -63,20 +63,20 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object */ - public createUsersWithArrayInput(user: Array, observe?: 'body', headers?: Headers): Observable; - public createUsersWithArrayInput(user: Array, observe?: 'response', headers?: Headers): Observable>; - public createUsersWithArrayInput(user: Array, observe: any = 'body', headers: Headers = {}): Observable { - if (!user){ - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + public createUsersWithArrayInput(body: Array, observe?: 'body', headers?: Headers): Observable; + public createUsersWithArrayInput(body: Array, observe?: 'response', headers?: Headers): Observable>; + public createUsersWithArrayInput(body: Array, observe: any = 'body', headers: Headers = {}): Observable { + if (!body){ + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } headers['Accept'] = 'application/json'; headers['Content-Type'] = 'application/json'; - const response: Observable> = this.httpClient.post(`${this.basePath}/user/createWithArray`, user , headers); + const response: Observable> = this.httpClient.post(`${this.basePath}/user/createWithArray`, body , headers); if (observe == 'body') { return response.map(httpResponse => (httpResponse.response)); } @@ -87,20 +87,20 @@ export class UserService { /** * Creates list of users with given input array * - * @param user List of user object + * @param body List of user object */ - public createUsersWithListInput(user: Array, observe?: 'body', headers?: Headers): Observable; - public createUsersWithListInput(user: Array, observe?: 'response', headers?: Headers): Observable>; - public createUsersWithListInput(user: Array, observe: any = 'body', headers: Headers = {}): Observable { - if (!user){ - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + public createUsersWithListInput(body: Array, observe?: 'body', headers?: Headers): Observable; + public createUsersWithListInput(body: Array, observe?: 'response', headers?: Headers): Observable>; + public createUsersWithListInput(body: Array, observe: any = 'body', headers: Headers = {}): Observable { + if (!body){ + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } headers['Accept'] = 'application/json'; headers['Content-Type'] = 'application/json'; - const response: Observable> = this.httpClient.post(`${this.basePath}/user/createWithList`, user , headers); + const response: Observable> = this.httpClient.post(`${this.basePath}/user/createWithList`, body , headers); if (observe == 'body') { return response.map(httpResponse => (httpResponse.response)); } @@ -212,24 +212,24 @@ export class UserService { * Updated user * This can only be done by the logged in user. * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object */ - public updateUser(username: string, user: User, observe?: 'body', headers?: Headers): Observable; - public updateUser(username: string, user: User, observe?: 'response', headers?: Headers): Observable>; - public updateUser(username: string, user: User, observe: any = 'body', headers: Headers = {}): Observable { + public updateUser(username: string, body: User, observe?: 'body', headers?: Headers): Observable; + public updateUser(username: string, body: User, observe?: 'response', headers?: Headers): Observable>; + public updateUser(username: string, body: User, observe: any = 'body', headers: Headers = {}): Observable { if (!username){ throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - if (!user){ - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + if (!body){ + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } headers['Accept'] = 'application/json'; headers['Content-Type'] = 'application/json'; - const response: Observable> = this.httpClient.put(`${this.basePath}/user/${encodeURIComponent(String(username))}`, user , headers); + const response: Observable> = this.httpClient.put(`${this.basePath}/user/${encodeURIComponent(String(username))}`, body , headers); if (observe == 'body') { return response.map(httpResponse => (httpResponse.response)); } diff --git a/samples/client/petstore/typescript-node/default/api/petApi.ts b/samples/client/petstore/typescript-node/default/api/petApi.ts index c367b489d22..b5c995c5702 100644 --- a/samples/client/petstore/typescript-node/default/api/petApi.ts +++ b/samples/client/petstore/typescript-node/default/api/petApi.ts @@ -81,17 +81,17 @@ export class PetApi { /** * * @summary Add a new pet to the store - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public addPet (pet: Pet) : Promise<{ response: http.ClientResponse; body?: any; }> { + public addPet (body: Pet) : Promise<{ response: http.ClientResponse; body?: any; }> { const localVarPath = this.basePath + '/pet'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); let localVarFormParams: any = {}; - // verify required parameter 'pet' is not null or undefined - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } @@ -104,7 +104,7 @@ export class PetApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(pet, "Pet") + body: ObjectSerializer.serialize(body, "Pet") }; this.authentications.petstore_auth.applyToRequest(localVarRequestOptions); @@ -362,17 +362,17 @@ export class PetApi { /** * * @summary Update an existing pet - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public updatePet (pet: Pet) : Promise<{ response: http.ClientResponse; body?: any; }> { + public updatePet (body: Pet) : Promise<{ response: http.ClientResponse; body?: any; }> { const localVarPath = this.basePath + '/pet'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); let localVarFormParams: any = {}; - // verify required parameter 'pet' is not null or undefined - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } @@ -385,7 +385,7 @@ export class PetApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(pet, "Pet") + body: ObjectSerializer.serialize(body, "Pet") }; this.authentications.petstore_auth.applyToRequest(localVarRequestOptions); diff --git a/samples/client/petstore/typescript-node/default/api/storeApi.ts b/samples/client/petstore/typescript-node/default/api/storeApi.ts index 39a1b21f238..e491efe0394 100644 --- a/samples/client/petstore/typescript-node/default/api/storeApi.ts +++ b/samples/client/petstore/typescript-node/default/api/storeApi.ts @@ -228,17 +228,17 @@ export class StoreApi { /** * * @summary Place an order for a pet - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet */ - public placeOrder (order: Order) : Promise<{ response: http.ClientResponse; body: Order; }> { + public placeOrder (body: Order) : Promise<{ response: http.ClientResponse; body: Order; }> { const localVarPath = this.basePath + '/store/order'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); let localVarFormParams: any = {}; - // verify required parameter 'order' is not null or undefined - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } @@ -251,7 +251,7 @@ export class StoreApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(order, "Order") + body: ObjectSerializer.serialize(body, "Order") }; this.authentications.default.applyToRequest(localVarRequestOptions); diff --git a/samples/client/petstore/typescript-node/default/api/userApi.ts b/samples/client/petstore/typescript-node/default/api/userApi.ts index fbdb95cb493..a7bae51a45d 100644 --- a/samples/client/petstore/typescript-node/default/api/userApi.ts +++ b/samples/client/petstore/typescript-node/default/api/userApi.ts @@ -73,17 +73,17 @@ export class UserApi { /** * This can only be done by the logged in user. * @summary Create user - * @param user Created user object + * @param body Created user object */ - public createUser (user: User) : Promise<{ response: http.ClientResponse; body?: any; }> { + public createUser (body: User) : Promise<{ response: http.ClientResponse; body?: any; }> { const localVarPath = this.basePath + '/user'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); let localVarFormParams: any = {}; - // verify required parameter 'user' is not null or undefined - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } @@ -96,7 +96,7 @@ export class UserApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(user, "User") + body: ObjectSerializer.serialize(body, "User") }; this.authentications.default.applyToRequest(localVarRequestOptions); @@ -125,17 +125,17 @@ export class UserApi { /** * * @summary Creates list of users with given input array - * @param user List of user object + * @param body List of user object */ - public createUsersWithArrayInput (user: Array) : Promise<{ response: http.ClientResponse; body?: any; }> { + public createUsersWithArrayInput (body: Array) : Promise<{ response: http.ClientResponse; body?: any; }> { const localVarPath = this.basePath + '/user/createWithArray'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); let localVarFormParams: any = {}; - // verify required parameter 'user' is not null or undefined - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } @@ -148,7 +148,7 @@ export class UserApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(user, "Array") + body: ObjectSerializer.serialize(body, "Array") }; this.authentications.default.applyToRequest(localVarRequestOptions); @@ -177,17 +177,17 @@ export class UserApi { /** * * @summary Creates list of users with given input array - * @param user List of user object + * @param body List of user object */ - public createUsersWithListInput (user: Array) : Promise<{ response: http.ClientResponse; body?: any; }> { + public createUsersWithListInput (body: Array) : Promise<{ response: http.ClientResponse; body?: any; }> { const localVarPath = this.basePath + '/user/createWithList'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); let localVarFormParams: any = {}; - // verify required parameter 'user' is not null or undefined - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } @@ -200,7 +200,7 @@ export class UserApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(user, "Array") + body: ObjectSerializer.serialize(body, "Array") }; this.authentications.default.applyToRequest(localVarRequestOptions); @@ -446,9 +446,9 @@ export class UserApi { * This can only be done by the logged in user. * @summary Updated user * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object */ - public updateUser (username: string, user: User) : Promise<{ response: http.ClientResponse; body?: any; }> { + public updateUser (username: string, body: User) : Promise<{ response: http.ClientResponse; body?: any; }> { const localVarPath = this.basePath + '/user/{username}' .replace('{' + 'username' + '}', encodeURIComponent(String(username))); let localVarQueryParameters: any = {}; @@ -460,9 +460,9 @@ export class UserApi { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - // verify required parameter 'user' is not null or undefined - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } @@ -475,7 +475,7 @@ export class UserApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(user, "User") + body: ObjectSerializer.serialize(body, "User") }; this.authentications.default.applyToRequest(localVarRequestOptions); diff --git a/samples/client/petstore/typescript-node/npm/api/petApi.ts b/samples/client/petstore/typescript-node/npm/api/petApi.ts index c367b489d22..b5c995c5702 100644 --- a/samples/client/petstore/typescript-node/npm/api/petApi.ts +++ b/samples/client/petstore/typescript-node/npm/api/petApi.ts @@ -81,17 +81,17 @@ export class PetApi { /** * * @summary Add a new pet to the store - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public addPet (pet: Pet) : Promise<{ response: http.ClientResponse; body?: any; }> { + public addPet (body: Pet) : Promise<{ response: http.ClientResponse; body?: any; }> { const localVarPath = this.basePath + '/pet'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); let localVarFormParams: any = {}; - // verify required parameter 'pet' is not null or undefined - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling addPet.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling addPet.'); } @@ -104,7 +104,7 @@ export class PetApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(pet, "Pet") + body: ObjectSerializer.serialize(body, "Pet") }; this.authentications.petstore_auth.applyToRequest(localVarRequestOptions); @@ -362,17 +362,17 @@ export class PetApi { /** * * @summary Update an existing pet - * @param pet Pet object that needs to be added to the store + * @param body Pet object that needs to be added to the store */ - public updatePet (pet: Pet) : Promise<{ response: http.ClientResponse; body?: any; }> { + public updatePet (body: Pet) : Promise<{ response: http.ClientResponse; body?: any; }> { const localVarPath = this.basePath + '/pet'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); let localVarFormParams: any = {}; - // verify required parameter 'pet' is not null or undefined - if (pet === null || pet === undefined) { - throw new Error('Required parameter pet was null or undefined when calling updatePet.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updatePet.'); } @@ -385,7 +385,7 @@ export class PetApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(pet, "Pet") + body: ObjectSerializer.serialize(body, "Pet") }; this.authentications.petstore_auth.applyToRequest(localVarRequestOptions); diff --git a/samples/client/petstore/typescript-node/npm/api/storeApi.ts b/samples/client/petstore/typescript-node/npm/api/storeApi.ts index 39a1b21f238..e491efe0394 100644 --- a/samples/client/petstore/typescript-node/npm/api/storeApi.ts +++ b/samples/client/petstore/typescript-node/npm/api/storeApi.ts @@ -228,17 +228,17 @@ export class StoreApi { /** * * @summary Place an order for a pet - * @param order order placed for purchasing the pet + * @param body order placed for purchasing the pet */ - public placeOrder (order: Order) : Promise<{ response: http.ClientResponse; body: Order; }> { + public placeOrder (body: Order) : Promise<{ response: http.ClientResponse; body: Order; }> { const localVarPath = this.basePath + '/store/order'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); let localVarFormParams: any = {}; - // verify required parameter 'order' is not null or undefined - if (order === null || order === undefined) { - throw new Error('Required parameter order was null or undefined when calling placeOrder.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling placeOrder.'); } @@ -251,7 +251,7 @@ export class StoreApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(order, "Order") + body: ObjectSerializer.serialize(body, "Order") }; this.authentications.default.applyToRequest(localVarRequestOptions); diff --git a/samples/client/petstore/typescript-node/npm/api/userApi.ts b/samples/client/petstore/typescript-node/npm/api/userApi.ts index fbdb95cb493..a7bae51a45d 100644 --- a/samples/client/petstore/typescript-node/npm/api/userApi.ts +++ b/samples/client/petstore/typescript-node/npm/api/userApi.ts @@ -73,17 +73,17 @@ export class UserApi { /** * This can only be done by the logged in user. * @summary Create user - * @param user Created user object + * @param body Created user object */ - public createUser (user: User) : Promise<{ response: http.ClientResponse; body?: any; }> { + public createUser (body: User) : Promise<{ response: http.ClientResponse; body?: any; }> { const localVarPath = this.basePath + '/user'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); let localVarFormParams: any = {}; - // verify required parameter 'user' is not null or undefined - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUser.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUser.'); } @@ -96,7 +96,7 @@ export class UserApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(user, "User") + body: ObjectSerializer.serialize(body, "User") }; this.authentications.default.applyToRequest(localVarRequestOptions); @@ -125,17 +125,17 @@ export class UserApi { /** * * @summary Creates list of users with given input array - * @param user List of user object + * @param body List of user object */ - public createUsersWithArrayInput (user: Array) : Promise<{ response: http.ClientResponse; body?: any; }> { + public createUsersWithArrayInput (body: Array) : Promise<{ response: http.ClientResponse; body?: any; }> { const localVarPath = this.basePath + '/user/createWithArray'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); let localVarFormParams: any = {}; - // verify required parameter 'user' is not null or undefined - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithArrayInput.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithArrayInput.'); } @@ -148,7 +148,7 @@ export class UserApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(user, "Array") + body: ObjectSerializer.serialize(body, "Array") }; this.authentications.default.applyToRequest(localVarRequestOptions); @@ -177,17 +177,17 @@ export class UserApi { /** * * @summary Creates list of users with given input array - * @param user List of user object + * @param body List of user object */ - public createUsersWithListInput (user: Array) : Promise<{ response: http.ClientResponse; body?: any; }> { + public createUsersWithListInput (body: Array) : Promise<{ response: http.ClientResponse; body?: any; }> { const localVarPath = this.basePath + '/user/createWithList'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); let localVarFormParams: any = {}; - // verify required parameter 'user' is not null or undefined - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling createUsersWithListInput.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling createUsersWithListInput.'); } @@ -200,7 +200,7 @@ export class UserApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(user, "Array") + body: ObjectSerializer.serialize(body, "Array") }; this.authentications.default.applyToRequest(localVarRequestOptions); @@ -446,9 +446,9 @@ export class UserApi { * This can only be done by the logged in user. * @summary Updated user * @param username name that need to be deleted - * @param user Updated user object + * @param body Updated user object */ - public updateUser (username: string, user: User) : Promise<{ response: http.ClientResponse; body?: any; }> { + public updateUser (username: string, body: User) : Promise<{ response: http.ClientResponse; body?: any; }> { const localVarPath = this.basePath + '/user/{username}' .replace('{' + 'username' + '}', encodeURIComponent(String(username))); let localVarQueryParameters: any = {}; @@ -460,9 +460,9 @@ export class UserApi { throw new Error('Required parameter username was null or undefined when calling updateUser.'); } - // verify required parameter 'user' is not null or undefined - if (user === null || user === undefined) { - throw new Error('Required parameter user was null or undefined when calling updateUser.'); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling updateUser.'); } @@ -475,7 +475,7 @@ export class UserApi { uri: localVarPath, useQuerystring: this._useQuerystring, json: true, - body: ObjectSerializer.serialize(user, "User") + body: ObjectSerializer.serialize(body, "User") }; this.authentications.default.applyToRequest(localVarRequestOptions); diff --git a/samples/meta-codegen/usage/src/org/openapitools/api/PetApi.sample b/samples/meta-codegen/usage/src/org/openapitools/api/PetApi.sample index 7b8b9c754d9..e75a6149341 100644 --- a/samples/meta-codegen/usage/src/org/openapitools/api/PetApi.sample +++ b/samples/meta-codegen/usage/src/org/openapitools/api/PetApi.sample @@ -16,7 +16,7 @@ classname: PetApi operationId: addPet # and parameters: -pet: Pet +body: Pet # each operation has an `operationId`: @@ -52,7 +52,7 @@ petId: Long operationId: updatePet # and parameters: -pet: Pet +body: Pet # each operation has an `operationId`: diff --git a/samples/meta-codegen/usage/src/org/openapitools/api/StoreApi.sample b/samples/meta-codegen/usage/src/org/openapitools/api/StoreApi.sample index d66c28e8576..298e7edbb0f 100644 --- a/samples/meta-codegen/usage/src/org/openapitools/api/StoreApi.sample +++ b/samples/meta-codegen/usage/src/org/openapitools/api/StoreApi.sample @@ -36,7 +36,7 @@ orderId: String operationId: placeOrder # and parameters: -order: Order +body: Order # end of operations block diff --git a/samples/meta-codegen/usage/src/org/openapitools/api/UserApi.sample b/samples/meta-codegen/usage/src/org/openapitools/api/UserApi.sample index b3b05217530..ebc744ed975 100644 --- a/samples/meta-codegen/usage/src/org/openapitools/api/UserApi.sample +++ b/samples/meta-codegen/usage/src/org/openapitools/api/UserApi.sample @@ -16,21 +16,21 @@ classname: UserApi operationId: createUser # and parameters: -user: User +body: User # each operation has an `operationId`: operationId: createUsersWithArrayInput # and parameters: -user: List +body: List # each operation has an `operationId`: operationId: createUsersWithListInput # and parameters: -user: List +body: List # each operation has an `operationId`: @@ -66,7 +66,7 @@ operationId: updateUser # and parameters: username: String -user: User +body: User # end of operations block diff --git a/samples/server/petstore/erlang-server/priv/openapi.json b/samples/server/petstore/erlang-server/priv/openapi.json index 82d674b5575..a0a4803cd07 100644 --- a/samples/server/petstore/erlang-server/priv/openapi.json +++ b/samples/server/petstore/erlang-server/priv/openapi.json @@ -60,7 +60,8 @@ }, "security" : [ { "petstore_auth" : [ "write:pets", "read:pets" ] - } ] + } ], + "x-codegen-request-body-name" : "body" }, "post" : { "tags" : [ "pet" ], @@ -90,7 +91,8 @@ }, "security" : [ { "petstore_auth" : [ "write:pets", "read:pets" ] - } ] + } ], + "x-codegen-request-body-name" : "body" } }, "/pet/findByStatus" : { @@ -432,7 +434,8 @@ "description" : "Invalid Order", "content" : { } } - } + }, + "x-codegen-request-body-name" : "body" } }, "/store/order/{orderId}" : { @@ -527,7 +530,8 @@ "description" : "successful operation", "content" : { } } - } + }, + "x-codegen-request-body-name" : "body" } }, "/user/createWithArray" : { @@ -554,7 +558,8 @@ "description" : "successful operation", "content" : { } } - } + }, + "x-codegen-request-body-name" : "body" } }, "/user/createWithList" : { @@ -581,7 +586,8 @@ "description" : "successful operation", "content" : { } } - } + }, + "x-codegen-request-body-name" : "body" } }, "/user/login" : { @@ -732,7 +738,8 @@ "description" : "User not found", "content" : { } } - } + }, + "x-codegen-request-body-name" : "body" }, "delete" : { "tags" : [ "user" ], diff --git a/samples/server/petstore/go-gin-api-server/api/openapi.yaml b/samples/server/petstore/go-gin-api-server/api/openapi.yaml index c0b60f85dde..ac82672eb88 100644 --- a/samples/server/petstore/go-gin-api-server/api/openapi.yaml +++ b/samples/server/petstore/go-gin-api-server/api/openapi.yaml @@ -40,6 +40,7 @@ paths: summary: Add a new pet to the store tags: - pet + x-codegen-request-body-name: body put: operationId: updatePet requestBody: @@ -69,6 +70,7 @@ paths: summary: Update an existing pet tags: - pet + x-codegen-request-body-name: body /pet/findByStatus: get: description: Multiple status values can be provided with comma separated strings @@ -325,6 +327,7 @@ paths: summary: Place an order for a pet tags: - store + x-codegen-request-body-name: body /store/order/{orderId}: delete: description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -396,6 +399,7 @@ paths: summary: Create user tags: - user + x-codegen-request-body-name: body /user/createWithArray: post: operationId: createUsersWithArrayInput @@ -415,6 +419,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body /user/createWithList: post: operationId: createUsersWithListInput @@ -434,6 +439,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body /user/login: get: operationId: loginUser @@ -563,6 +569,7 @@ paths: summary: Updated user tags: - user + x-codegen-request-body-name: body components: schemas: Order: diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/PetApi.java index b66c9f77944..c7b7d71de6e 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/PetApi.java @@ -41,7 +41,7 @@ public interface PetApi { @ApiOperation(value = "Add a new pet to the store", tags={ "pet", }) @ApiResponses(value = { @ApiResponse(code = 405, message = "Invalid input") }) - public void addPet(@Valid Pet pet); + public void addPet(@Valid Pet body); /** * Deletes a pet @@ -112,7 +112,7 @@ public interface PetApi { @ApiResponse(code = 400, message = "Invalid ID supplied"), @ApiResponse(code = 404, message = "Pet not found"), @ApiResponse(code = 405, message = "Validation exception") }) - public void updatePet(@Valid Pet pet); + public void updatePet(@Valid Pet body); /** * Updates a pet in the store with form data diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/StoreApi.java index 06fde559887..9e7a74b714d 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/StoreApi.java @@ -85,6 +85,6 @@ public interface StoreApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @ApiResponse(code = 400, message = "Invalid Order") }) - public Order placeOrder(@Valid Order order); + public Order placeOrder(@Valid Order body); } diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/UserApi.java index 1dcc9112cbe..141a17ec72c 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/api/UserApi.java @@ -41,7 +41,7 @@ public interface UserApi { @ApiOperation(value = "Create user", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) - public void createUser(@Valid User user); + public void createUser(@Valid User body); /** * Creates list of users with given input array @@ -52,7 +52,7 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) - public void createUsersWithArrayInput(@Valid List user); + public void createUsersWithArrayInput(@Valid List body); /** * Creates list of users with given input array @@ -63,7 +63,7 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) - public void createUsersWithListInput(@Valid List user); + public void createUsersWithListInput(@Valid List body); /** * Delete user @@ -129,6 +129,6 @@ public interface UserApi { @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @ApiResponse(code = 404, message = "User not found") }) - public void updateUser(@PathParam("username") String username, @Valid User user); + public void updateUser(@PathParam("username") String username, @Valid User body); } diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/PetApi.java index 4b2beee6824..3a605217d42 100644 --- a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/PetApi.java @@ -48,8 +48,8 @@ public class PetApi { }, tags={ "pet", }) @ApiResponses(value = { @ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) Pet pet) { - return delegate.addPet(pet, securityContext); + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) Pet body) { + return delegate.addPet(body, securityContext); } @DELETE @@ -131,8 +131,8 @@ public class PetApi { @ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @ApiResponse(code = 404, message = "Pet not found", response = Void.class), @ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) Pet pet) { - return delegate.updatePet(pet, securityContext); + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) Pet body) { + return delegate.updatePet(body, securityContext); } @POST diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/PetApiService.java b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/PetApiService.java index 67f42c330c7..3c55b472b68 100644 --- a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/PetApiService.java +++ b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/PetApiService.java @@ -19,12 +19,12 @@ import javax.ws.rs.core.SecurityContext; public interface PetApiService { - public Response addPet(Pet pet, SecurityContext securityContext); + public Response addPet(Pet body, SecurityContext securityContext); public Response deletePet(Long petId, String apiKey, SecurityContext securityContext); public Response findPetsByStatus(List status, SecurityContext securityContext); public Response findPetsByTags(List tags, SecurityContext securityContext); public Response getPetById(Long petId, SecurityContext securityContext); - public Response updatePet(Pet pet, SecurityContext securityContext); + public Response updatePet(Pet body, SecurityContext securityContext); public Response updatePetWithForm(Long petId, String name, String status, SecurityContext securityContext); public Response uploadFile(Long petId, String additionalMetadata, InputStream fileInputStream, Attachment fileDetail, SecurityContext securityContext); } diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/StoreApi.java index acb50cfb9ad..0fec1dff8c1 100644 --- a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/StoreApi.java @@ -81,7 +81,7 @@ public class StoreApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) Order order) { - return delegate.placeOrder(order, securityContext); + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) Order body) { + return delegate.placeOrder(body, securityContext); } } diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/StoreApiService.java b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/StoreApiService.java index 871f7620b58..bdda2b3f838 100644 --- a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/StoreApiService.java @@ -21,5 +21,5 @@ public interface StoreApiService { public Response deleteOrder(String orderId, SecurityContext securityContext); public Response getInventory(SecurityContext securityContext); public Response getOrderById(Long orderId, SecurityContext securityContext); - public Response placeOrder(Order order, SecurityContext securityContext); + public Response placeOrder(Order body, SecurityContext securityContext); } diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/UserApi.java index 796b774a3f2..c514ba4ffdf 100644 --- a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/UserApi.java @@ -42,8 +42,8 @@ public class UserApi { @ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object" ,required=true) User user) { - return delegate.createUser(user, securityContext); + public Response createUser(@ApiParam(value = "Created user object" ,required=true) User body) { + return delegate.createUser(body, securityContext); } @POST @@ -53,8 +53,8 @@ public class UserApi { @ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) List user) { - return delegate.createUsersWithArrayInput(user, securityContext); + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) List body) { + return delegate.createUsersWithArrayInput(body, securityContext); } @POST @@ -64,8 +64,8 @@ public class UserApi { @ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) List user) { - return delegate.createUsersWithListInput(user, securityContext); + public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) List body) { + return delegate.createUsersWithListInput(body, securityContext); } @DELETE @@ -124,7 +124,7 @@ public class UserApi { @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathParam("username") String username, @ApiParam(value = "Updated user object" ,required=true) User user) { - return delegate.updateUser(username, user, securityContext); + public Response updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathParam("username") String username, @ApiParam(value = "Updated user object" ,required=true) User body) { + return delegate.updateUser(username, body, securityContext); } } diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/UserApiService.java b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/UserApiService.java index d47a3611508..c70add9c2ee 100644 --- a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/UserApiService.java +++ b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/api/UserApiService.java @@ -18,12 +18,12 @@ import javax.ws.rs.core.SecurityContext; public interface UserApiService { - public Response createUser(User user, SecurityContext securityContext); - public Response createUsersWithArrayInput(List user, SecurityContext securityContext); - public Response createUsersWithListInput(List user, SecurityContext securityContext); + public Response createUser(User body, SecurityContext securityContext); + public Response createUsersWithArrayInput(List body, SecurityContext securityContext); + public Response createUsersWithListInput(List body, SecurityContext securityContext); public Response deleteUser(String username, SecurityContext securityContext); public Response getUserByName(String username, SecurityContext securityContext); public Response loginUser(String username, String password, SecurityContext securityContext); public Response logoutUser(SecurityContext securityContext); - public Response updateUser(String username, User user, SecurityContext securityContext); + public Response updateUser(String username, User body, SecurityContext securityContext); } diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index f884117d3be..58103eec764 100644 --- a/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -21,7 +21,7 @@ import javax.ws.rs.core.SecurityContext; public class PetApiServiceImpl implements PetApiService { @Override - public Response addPet(Pet pet, SecurityContext securityContext) { + public Response addPet(Pet body, SecurityContext securityContext) { // do some magic! return Response.ok().entity("magic!").build(); } @@ -46,7 +46,7 @@ public class PetApiServiceImpl implements PetApiService { return Response.ok().entity("magic!").build(); } @Override - public Response updatePet(Pet pet, SecurityContext securityContext) { + public Response updatePet(Pet body, SecurityContext securityContext) { // do some magic! return Response.ok().entity("magic!").build(); } diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 38683bdbac2..a883431a0da 100644 --- a/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -35,7 +35,7 @@ public class StoreApiServiceImpl implements StoreApiService { return Response.ok().entity("magic!").build(); } @Override - public Response placeOrder(Order order, SecurityContext securityContext) { + public Response placeOrder(Order body, SecurityContext securityContext) { // do some magic! return Response.ok().entity("magic!").build(); } diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index e2c4b9bc8d5..a161c7c463e 100644 --- a/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf-cdi/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -20,17 +20,17 @@ import javax.ws.rs.core.SecurityContext; public class UserApiServiceImpl implements UserApiService { @Override - public Response createUser(User user, SecurityContext securityContext) { + public Response createUser(User body, SecurityContext securityContext) { // do some magic! return Response.ok().entity("magic!").build(); } @Override - public Response createUsersWithArrayInput(List user, SecurityContext securityContext) { + public Response createUsersWithArrayInput(List body, SecurityContext securityContext) { // do some magic! return Response.ok().entity("magic!").build(); } @Override - public Response createUsersWithListInput(List user, SecurityContext securityContext) { + public Response createUsersWithListInput(List body, SecurityContext securityContext) { // do some magic! return Response.ok().entity("magic!").build(); } @@ -55,7 +55,7 @@ public class UserApiServiceImpl implements UserApiService { return Response.ok().entity("magic!").build(); } @Override - public Response updateUser(String username, User user, SecurityContext securityContext) { + public Response updateUser(String username, User body, SecurityContext securityContext) { // do some magic! return Response.ok().entity("magic!").build(); } diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/PetApi.java index 1b9e350b9fc..8bad72910f4 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/PetApi.java @@ -41,7 +41,7 @@ public interface PetApi { @ApiOperation(value = "Add a new pet to the store", tags={ "pet", }) @ApiResponses(value = { @ApiResponse(code = 405, message = "Invalid input") }) - public void addPet(@Valid Pet pet); + public void addPet(@Valid Pet body); /** * Deletes a pet @@ -112,7 +112,7 @@ public interface PetApi { @ApiResponse(code = 400, message = "Invalid ID supplied"), @ApiResponse(code = 404, message = "Pet not found"), @ApiResponse(code = 405, message = "Validation exception") }) - public void updatePet(@Valid Pet pet); + public void updatePet(@Valid Pet body); /** * Updates a pet in the store with form data diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/StoreApi.java index b18280121da..0fe7ed001bc 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/StoreApi.java @@ -85,6 +85,6 @@ public interface StoreApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @ApiResponse(code = 400, message = "Invalid Order") }) - public Order placeOrder(@Valid Order order); + public Order placeOrder(@Valid Order body); } diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/UserApi.java index 392379213b9..3df1ecfbfa0 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/api/UserApi.java @@ -41,7 +41,7 @@ public interface UserApi { @ApiOperation(value = "Create user", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) - public void createUser(@Valid User user); + public void createUser(@Valid User body); /** * Creates list of users with given input array @@ -52,7 +52,7 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) - public void createUsersWithArrayInput(@Valid List user); + public void createUsersWithArrayInput(@Valid List body); /** * Creates list of users with given input array @@ -63,7 +63,7 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) - public void createUsersWithListInput(@Valid List user); + public void createUsersWithListInput(@Valid List body); /** * Delete user @@ -129,6 +129,6 @@ public interface UserApi { @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @ApiResponse(code = 404, message = "User not found") }) - public void updateUser(@PathParam("username") String username, @Valid User user); + public void updateUser(@PathParam("username") String username, @Valid User body); } diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 07c44ba7680..ece3f1cd39d 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -42,6 +42,6 @@ public interface AnotherFakeApi { @ApiOperation(value = "To test special tags", tags={ "$another-fake?" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Client call123testSpecialTags(@Valid Client client); + public Client call123testSpecialTags(@Valid Client body); } diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java index 7f1f9175921..50ff002289a 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java @@ -51,7 +51,7 @@ public interface FakeApi { @ApiOperation(value = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public OuterComposite fakeOuterCompositeSerialize(@Valid OuterComposite outerComposite); + public OuterComposite fakeOuterCompositeSerialize(@Valid OuterComposite body); @POST @Path("/fake/outer/number") @@ -75,7 +75,7 @@ public interface FakeApi { @ApiOperation(value = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) - public void testBodyWithFileSchema(@Valid FileSchemaTestClass fileSchemaTestClass); + public void testBodyWithFileSchema(@Valid FileSchemaTestClass body); @PUT @Path("/fake/body-with-query-params") @@ -83,7 +83,7 @@ public interface FakeApi { @ApiOperation(value = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) - public void testBodyWithQueryParams(@QueryParam("query") @NotNull String query, @Valid User user); + public void testBodyWithQueryParams(@QueryParam("query") @NotNull String query, @Valid User body); /** * To test \"client\" model @@ -98,7 +98,7 @@ public interface FakeApi { @ApiOperation(value = "To test \"client\" model", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Client testClientModel(@Valid Client client); + public Client testClientModel(@Valid Client body); /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -153,7 +153,7 @@ public interface FakeApi { @ApiOperation(value = "test inline additionalProperties", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) - public void testInlineAdditionalProperties(@Valid Map requestBody); + public void testInlineAdditionalProperties(@Valid Map param); /** * test json serialization of form data diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java index 31086ec740e..b0204cb92b7 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -42,6 +42,6 @@ public interface FakeClassnameTags123Api { @ApiOperation(value = "To test class name in snake case", tags={ "fake_classname_tags 123#$%^" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Client testClassname(@Valid Client client); + public Client testClassname(@Valid Client body); } diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/PetApi.java index 6cc723daf4b..a1dc27a9c5a 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/PetApi.java @@ -41,7 +41,7 @@ public interface PetApi { @ApiOperation(value = "Add a new pet to the store", tags={ "pet", }) @ApiResponses(value = { @ApiResponse(code = 405, message = "Invalid input") }) - public void addPet(@Valid Pet pet); + public void addPet(@Valid Pet body); /** * Deletes a pet @@ -112,7 +112,7 @@ public interface PetApi { @ApiResponse(code = 400, message = "Invalid ID supplied"), @ApiResponse(code = 404, message = "Pet not found"), @ApiResponse(code = 405, message = "Validation exception") }) - public void updatePet(@Valid Pet pet); + public void updatePet(@Valid Pet body); /** * Updates a pet in the store with form data diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/StoreApi.java index c1c90f1293d..6cbc7482449 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/StoreApi.java @@ -85,6 +85,6 @@ public interface StoreApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @ApiResponse(code = 400, message = "Invalid Order") }) - public Order placeOrder(@Valid Order order); + public Order placeOrder(@Valid Order body); } diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/UserApi.java index a1c117cdc44..66b2d493886 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/UserApi.java @@ -41,7 +41,7 @@ public interface UserApi { @ApiOperation(value = "Create user", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) - public void createUser(@Valid User user); + public void createUser(@Valid User body); /** * Creates list of users with given input array @@ -52,7 +52,7 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) - public void createUsersWithArrayInput(@Valid List user); + public void createUsersWithArrayInput(@Valid List body); /** * Creates list of users with given input array @@ -63,7 +63,7 @@ public interface UserApi { @ApiOperation(value = "Creates list of users with given input array", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation") }) - public void createUsersWithListInput(@Valid List user); + public void createUsersWithListInput(@Valid List body); /** * Delete user @@ -129,6 +129,6 @@ public interface UserApi { @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied"), @ApiResponse(code = 404, message = "User not found") }) - public void updateUser(@PathParam("username") String username, @Valid User user); + public void updateUser(@PathParam("username") String username, @Valid User body); } diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java index 3718c124513..43c7e8d6115 100644 --- a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java @@ -29,7 +29,7 @@ public class AnotherFakeApiServiceImpl implements AnotherFakeApi { * To test special tags and operation ID starting with number * */ - public Client call123testSpecialTags(Client client) { + public Client call123testSpecialTags(Client body) { // TODO: Implement... return null; diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index 061e7112d55..582300cf3f1 100644 --- a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -37,7 +37,7 @@ public class FakeApiServiceImpl implements FakeApi { return null; } - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) { + public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) { // TODO: Implement... return null; @@ -55,13 +55,13 @@ public class FakeApiServiceImpl implements FakeApi { return null; } - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) { + public void testBodyWithFileSchema(FileSchemaTestClass body) { // TODO: Implement... } - public void testBodyWithQueryParams(String query, User user) { + public void testBodyWithQueryParams(String query, User body) { // TODO: Implement... @@ -73,7 +73,7 @@ public class FakeApiServiceImpl implements FakeApi { * To test \"client\" model * */ - public Client testClientModel(Client client) { + public Client testClientModel(Client body) { // TODO: Implement... return null; @@ -119,7 +119,7 @@ public class FakeApiServiceImpl implements FakeApi { * test inline additionalProperties * */ - public void testInlineAdditionalProperties(Map requestBody) { + public void testInlineAdditionalProperties(Map param) { // TODO: Implement... diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java index dae1e840223..3803ecd3927 100644 --- a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java @@ -29,7 +29,7 @@ public class FakeClassnameTags123ApiServiceImpl implements FakeClassnameTags123A * To test class name in snake case * */ - public Client testClassname(Client client) { + public Client testClassname(Client body) { // TODO: Implement... return null; diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index 32e51d860ca..f58a97994e1 100644 --- a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -29,7 +29,7 @@ public class PetApiServiceImpl implements PetApi { * Add a new pet to the store * */ - public void addPet(Pet pet) { + public void addPet(Pet body) { // TODO: Implement... @@ -85,7 +85,7 @@ public class PetApiServiceImpl implements PetApi { * Update an existing pet * */ - public void updatePet(Pet pet) { + public void updatePet(Pet body) { // TODO: Implement... diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index cd28d9cf6eb..33b5142f537 100644 --- a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -64,7 +64,7 @@ public class StoreApiServiceImpl implements StoreApi { * Place an order for a pet * */ - public Order placeOrder(Order order) { + public Order placeOrder(Order body) { // TODO: Implement... return null; diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index d5449c82dc7..f867dfc43bb 100644 --- a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -30,7 +30,7 @@ public class UserApiServiceImpl implements UserApi { * This can only be done by the logged in user. * */ - public void createUser(User user) { + public void createUser(User body) { // TODO: Implement... @@ -40,7 +40,7 @@ public class UserApiServiceImpl implements UserApi { * Creates list of users with given input array * */ - public void createUsersWithArrayInput(List user) { + public void createUsersWithArrayInput(List body) { // TODO: Implement... @@ -50,7 +50,7 @@ public class UserApiServiceImpl implements UserApi { * Creates list of users with given input array * */ - public void createUsersWithListInput(List user) { + public void createUsersWithListInput(List body) { // TODO: Implement... @@ -104,7 +104,7 @@ public class UserApiServiceImpl implements UserApi { * This can only be done by the logged in user. * */ - public void updateUser(String username, User user) { + public void updateUser(String username, User body) { // TODO: Implement... diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java index 631c28ba048..c12e1460ddf 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java @@ -81,8 +81,8 @@ public class AnotherFakeApiTest { */ @Test public void call123testSpecialTagsTest() { - Client client = null; - //Client response = api.call123testSpecialTags(client); + Client body = null; + //Client response = api.call123testSpecialTags(body); //assertNotNull(response); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeApiTest.java index 5816222f1e7..83a561cd657 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeApiTest.java @@ -99,8 +99,8 @@ public class FakeApiTest { */ @Test public void fakeOuterCompositeSerializeTest() { - OuterComposite outerComposite = null; - //OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite); + OuterComposite body = null; + //OuterComposite response = api.fakeOuterCompositeSerialize(body); //assertNotNull(response); // TODO: test validations @@ -141,8 +141,8 @@ public class FakeApiTest { */ @Test public void testBodyWithFileSchemaTest() { - FileSchemaTestClass fileSchemaTestClass = null; - //api.testBodyWithFileSchema(fileSchemaTestClass); + FileSchemaTestClass body = null; + //api.testBodyWithFileSchema(body); // TODO: test validations @@ -156,8 +156,8 @@ public class FakeApiTest { @Test public void testBodyWithQueryParamsTest() { String query = null; - User user = null; - //api.testBodyWithQueryParams(query, user); + User body = null; + //api.testBodyWithQueryParams(query, body); // TODO: test validations @@ -174,8 +174,8 @@ public class FakeApiTest { */ @Test public void testClientModelTest() { - Client client = null; - //Client response = api.testClientModel(client); + Client body = null; + //Client response = api.testClientModel(body); //assertNotNull(response); // TODO: test validations @@ -269,8 +269,8 @@ public class FakeApiTest { */ @Test public void testInlineAdditionalPropertiesTest() { - Map requestBody = null; - //api.testInlineAdditionalProperties(requestBody); + Map param = null; + //api.testInlineAdditionalProperties(param); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeClassnameTags123ApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeClassnameTags123ApiTest.java index 63a8e61733a..1676315e0cf 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeClassnameTags123ApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/FakeClassnameTags123ApiTest.java @@ -81,8 +81,8 @@ public class FakeClassnameTags123ApiTest { */ @Test public void testClassnameTest() { - Client client = null; - //Client response = api.testClassname(client); + Client body = null; + //Client response = api.testClassname(body); //assertNotNull(response); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/PetApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/PetApiTest.java index aaa3b2dfc5d..beb5dccdfd3 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/PetApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/PetApiTest.java @@ -81,8 +81,8 @@ public class PetApiTest { */ @Test public void addPetTest() { - Pet pet = null; - //api.addPet(pet); + Pet body = null; + //api.addPet(body); // TODO: test validations @@ -168,8 +168,8 @@ public class PetApiTest { */ @Test public void updatePetTest() { - Pet pet = null; - //api.updatePet(pet); + Pet body = null; + //api.updatePet(body); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/StoreApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/StoreApiTest.java index c2d3a578368..4f8bdfb1e4e 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/StoreApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/StoreApiTest.java @@ -133,8 +133,8 @@ public class StoreApiTest { */ @Test public void placeOrderTest() { - Order order = null; - //Order response = api.placeOrder(order); + Order body = null; + //Order response = api.placeOrder(body); //assertNotNull(response); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/UserApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/UserApiTest.java index 147227059ea..311df6fcbdb 100644 --- a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/UserApiTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/UserApiTest.java @@ -82,8 +82,8 @@ public class UserApiTest { */ @Test public void createUserTest() { - User user = null; - //api.createUser(user); + User body = null; + //api.createUser(body); // TODO: test validations @@ -98,8 +98,8 @@ public class UserApiTest { */ @Test public void createUsersWithArrayInputTest() { - List user = null; - //api.createUsersWithArrayInput(user); + List body = null; + //api.createUsersWithArrayInput(body); // TODO: test validations @@ -114,8 +114,8 @@ public class UserApiTest { */ @Test public void createUsersWithListInputTest() { - List user = null; - //api.createUsersWithListInput(user); + List body = null; + //api.createUsersWithListInput(body); // TODO: test validations @@ -199,8 +199,8 @@ public class UserApiTest { @Test public void updateUserTest() { String username = null; - User user = null; - //api.updateUser(username, user); + User body = null; + //api.updateUser(username, body); // TODO: test validations diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 09cd0e9c47c..813ee8d7e6c 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -62,9 +62,9 @@ public class AnotherFakeApi { @io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) @Valid Client client + public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.call123testSpecialTags(client,securityContext); + return delegate.call123testSpecialTags(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApiService.java index fa614bab5a1..1731e691c49 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApiService.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApiService.java @@ -17,5 +17,5 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class AnotherFakeApiService { - public abstract Response call123testSpecialTags(Client client,SecurityContext securityContext) throws NotFoundException; + public abstract Response call123testSpecialTags(Client body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java index a872ff17f4e..b80b93d0ec7 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java @@ -83,10 +83,10 @@ public class FakeApi { @io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid OuterComposite outerComposite + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid OuterComposite body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterCompositeSerialize(outerComposite,securityContext); + return delegate.fakeOuterCompositeSerialize(body,securityContext); } @POST @Path("/outer/number") @@ -119,10 +119,10 @@ public class FakeApi { @io.swagger.annotations.ApiOperation(value = "", notes = "For this test, the body for this request much reference a schema named `File`.", response = Void.class, tags={ "fake", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "" ,required=true) @Valid FileSchemaTestClass fileSchemaTestClass + public Response testBodyWithFileSchema(@ApiParam(value = "" ,required=true) @Valid FileSchemaTestClass body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithFileSchema(fileSchemaTestClass,securityContext); + return delegate.testBodyWithFileSchema(body,securityContext); } @PUT @Path("/body-with-query-params") @@ -132,10 +132,10 @@ public class FakeApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) public Response testBodyWithQueryParams(@ApiParam(value = "",required=true) @QueryParam("query") String query -,@ApiParam(value = "" ,required=true) @Valid User user +,@ApiParam(value = "" ,required=true) @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithQueryParams(query,user,securityContext); + return delegate.testBodyWithQueryParams(query,body,securityContext); } @PATCH @@ -144,10 +144,10 @@ public class FakeApi { @io.swagger.annotations.ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model" ,required=true) @Valid Client client + public Response testClientModel(@ApiParam(value = "client model" ,required=true) @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClientModel(client,securityContext); + return delegate.testClientModel(body,securityContext); } @POST @@ -225,10 +225,10 @@ public class FakeApi { @io.swagger.annotations.ApiOperation(value = "test inline additionalProperties", notes = "", response = Void.class, tags={ "fake", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true) @Valid Map requestBody + public Response testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true) @Valid Map param ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testInlineAdditionalProperties(requestBody,securityContext); + return delegate.testInlineAdditionalProperties(param,securityContext); } @GET @Path("/jsonFormData") diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApiService.java index 23048aade69..9b393ce6508 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApiService.java @@ -27,16 +27,16 @@ import javax.validation.constraints.*; public abstract class FakeApiService { public abstract Response fakeOuterBooleanSerialize(Boolean body,SecurityContext securityContext) throws NotFoundException; - public abstract Response fakeOuterCompositeSerialize(OuterComposite outerComposite,SecurityContext securityContext) throws NotFoundException; + public abstract Response fakeOuterCompositeSerialize(OuterComposite body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterNumberSerialize(BigDecimal body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterStringSerialize(String body,SecurityContext securityContext) throws NotFoundException; - public abstract Response testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass,SecurityContext securityContext) throws NotFoundException; - public abstract Response testBodyWithQueryParams( @NotNull String query,User user,SecurityContext securityContext) throws NotFoundException; - public abstract Response testClientModel(Client client,SecurityContext securityContext) throws NotFoundException; + public abstract Response testBodyWithFileSchema(FileSchemaTestClass body,SecurityContext securityContext) throws NotFoundException; + public abstract Response testBodyWithQueryParams( @NotNull String query,User body,SecurityContext securityContext) throws NotFoundException; + public abstract Response testClientModel(Client body,SecurityContext securityContext) throws NotFoundException; public abstract Response testEndpointParameters(BigDecimal number,Double _double,String patternWithoutDelimiter,byte[] _byte,Integer integer,Integer int32,Long int64,Float _float,String string,InputStream binaryInputStream, FormDataContentDisposition binaryDetail,LocalDate date,OffsetDateTime dateTime,String password,String paramCallback,SecurityContext securityContext) throws NotFoundException; public abstract Response testEnumParameters(List enumHeaderStringArray,String enumHeaderString,List enumQueryStringArray,String enumQueryString,Integer enumQueryInteger,Double enumQueryDouble,List enumFormStringArray,String enumFormString,SecurityContext securityContext) throws NotFoundException; public abstract Response testGroupParameters( @NotNull Integer requiredStringGroup, @NotNull Boolean requiredBooleanGroup, @NotNull Long requiredInt64Group,Integer stringGroup,Boolean booleanGroup,Long int64Group,SecurityContext securityContext) throws NotFoundException; - public abstract Response testInlineAdditionalProperties(Map requestBody,SecurityContext securityContext) throws NotFoundException; + public abstract Response testInlineAdditionalProperties(Map param,SecurityContext securityContext) throws NotFoundException; public abstract Response testJsonFormData(String param,String param2,SecurityContext securityContext) throws NotFoundException; public abstract Response uploadFileWithRequiredFile(Long petId,InputStream requiredFileInputStream, FormDataContentDisposition requiredFileDetail,String additionalMetadata,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index f2552f7d08c..c8b60b4c75b 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -64,9 +64,9 @@ public class FakeClassnameTestApi { }, tags={ "fake_classname_tags 123#$%^", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model" ,required=true) @Valid Client client + public Response testClassname(@ApiParam(value = "client model" ,required=true) @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClassname(client,securityContext); + return delegate.testClassname(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java index d5c2d43a43d..cb998c5ff9d 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java @@ -17,5 +17,5 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class FakeClassnameTestApiService { - public abstract Response testClassname(Client client,SecurityContext securityContext) throws NotFoundException; + public abstract Response testClassname(Client body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java index 16a168541a5..66d2a66035e 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java @@ -69,10 +69,10 @@ public class PetApi { }, tags={ "pet", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet pet + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.addPet(pet,securityContext); + return delegate.addPet(body,securityContext); } @DELETE @Path("/{petId}") @@ -164,10 +164,10 @@ public class PetApi { @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet pet + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updatePet(pet,securityContext); + return delegate.updatePet(body,securityContext); } @POST @Path("/{petId}") diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApiService.java index ebd89ee5c3a..a51e840bba5 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApiService.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApiService.java @@ -19,12 +19,12 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class PetApiService { - public abstract Response addPet(Pet pet,SecurityContext securityContext) throws NotFoundException; + public abstract Response addPet(Pet body,SecurityContext securityContext) throws NotFoundException; public abstract Response deletePet(Long petId,String apiKey,SecurityContext securityContext) throws NotFoundException; public abstract Response findPetsByStatus( @NotNull List status,SecurityContext securityContext) throws NotFoundException; public abstract Response findPetsByTags( @NotNull List tags,SecurityContext securityContext) throws NotFoundException; public abstract Response getPetById(Long petId,SecurityContext securityContext) throws NotFoundException; - public abstract Response updatePet(Pet pet,SecurityContext securityContext) throws NotFoundException; + public abstract Response updatePet(Pet body,SecurityContext securityContext) throws NotFoundException; public abstract Response updatePetWithForm(Long petId,String name,String status,SecurityContext securityContext) throws NotFoundException; public abstract Response uploadFile(Long petId,String additionalMetadata,InputStream fileInputStream, FormDataContentDisposition fileDetail,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java index 953b54fdc1f..3cc23fcacff 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java @@ -108,9 +108,9 @@ public class StoreApi { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @Valid Order order + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @Valid Order body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.placeOrder(order,securityContext); + return delegate.placeOrder(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApiService.java index 47440abc132..06b1f031d1d 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApiService.java @@ -21,5 +21,5 @@ public abstract class StoreApiService { public abstract Response deleteOrder(String orderId,SecurityContext securityContext) throws NotFoundException; public abstract Response getInventory(SecurityContext securityContext) throws NotFoundException; public abstract Response getOrderById( @Min(1L) @Max(5L)Long orderId,SecurityContext securityContext) throws NotFoundException; - public abstract Response placeOrder(Order order,SecurityContext securityContext) throws NotFoundException; + public abstract Response placeOrder(Order body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java index 92191994db5..518bb2b09cc 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java @@ -63,10 +63,10 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object" ,required=true) @Valid User user + public Response createUser(@ApiParam(value = "Created user object" ,required=true) @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUser(user,securityContext); + return delegate.createUser(body,securityContext); } @POST @Path("/createWithArray") @@ -75,10 +75,10 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @Valid List user + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @Valid List body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithArrayInput(user,securityContext); + return delegate.createUsersWithArrayInput(body,securityContext); } @POST @Path("/createWithList") @@ -87,10 +87,10 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @Valid List user + public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @Valid List body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithListInput(user,securityContext); + return delegate.createUsersWithListInput(body,securityContext); } @DELETE @Path("/{username}") @@ -158,9 +158,9 @@ public class UserApi { @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) public Response updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathParam("username") String username -,@ApiParam(value = "Updated user object" ,required=true) @Valid User user +,@ApiParam(value = "Updated user object" ,required=true) @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updateUser(username,user,securityContext); + return delegate.updateUser(username,body,securityContext); } } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApiService.java index ce18fdbf88c..9b4fe40612c 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApiService.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApiService.java @@ -18,12 +18,12 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class UserApiService { - public abstract Response createUser(User user,SecurityContext securityContext) throws NotFoundException; - public abstract Response createUsersWithArrayInput(List user,SecurityContext securityContext) throws NotFoundException; - public abstract Response createUsersWithListInput(List user,SecurityContext securityContext) throws NotFoundException; + public abstract Response createUser(User body,SecurityContext securityContext) throws NotFoundException; + public abstract Response createUsersWithArrayInput(List body,SecurityContext securityContext) throws NotFoundException; + public abstract Response createUsersWithListInput(List body,SecurityContext securityContext) throws NotFoundException; public abstract Response deleteUser(String username,SecurityContext securityContext) throws NotFoundException; public abstract Response getUserByName(String username,SecurityContext securityContext) throws NotFoundException; public abstract Response loginUser( @NotNull String username, @NotNull String password,SecurityContext securityContext) throws NotFoundException; public abstract Response logoutUser(SecurityContext securityContext) throws NotFoundException; - public abstract Response updateUser(String username,User user,SecurityContext securityContext) throws NotFoundException; + public abstract Response updateUser(String username,User body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java index 05e89018227..a8dc69d4ed9 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java @@ -18,7 +18,7 @@ import javax.validation.constraints.*; public class AnotherFakeApiServiceImpl extends AnotherFakeApiService { @Override - public Response call123testSpecialTags(Client client, SecurityContext securityContext) throws NotFoundException { + public Response call123testSpecialTags(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index 0016d6efeb1..10af6942a98 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -32,7 +32,7 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response fakeOuterCompositeSerialize(OuterComposite outerComposite, SecurityContext securityContext) throws NotFoundException { + public Response fakeOuterCompositeSerialize(OuterComposite body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @@ -47,17 +47,17 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, SecurityContext securityContext) throws NotFoundException { + public Response testBodyWithFileSchema(FileSchemaTestClass body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testBodyWithQueryParams( @NotNull String query, User user, SecurityContext securityContext) throws NotFoundException { + public Response testBodyWithQueryParams( @NotNull String query, User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testClientModel(Client client, SecurityContext securityContext) throws NotFoundException { + public Response testClientModel(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @@ -77,7 +77,7 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testInlineAdditionalProperties(Map requestBody, SecurityContext securityContext) throws NotFoundException { + public Response testInlineAdditionalProperties(Map param, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java index 8e5ee58fd96..6cc403a8b40 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java @@ -18,7 +18,7 @@ import javax.validation.constraints.*; public class FakeClassnameTestApiServiceImpl extends FakeClassnameTestApiService { @Override - public Response testClassname(Client client, SecurityContext securityContext) throws NotFoundException { + public Response testClassname(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index 366b2e4e133..4fe468d6787 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -20,7 +20,7 @@ import javax.validation.constraints.*; public class PetApiServiceImpl extends PetApiService { @Override - public Response addPet(Pet pet, SecurityContext securityContext) throws NotFoundException { + public Response addPet(Pet body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @@ -45,7 +45,7 @@ public class PetApiServiceImpl extends PetApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response updatePet(Pet pet, SecurityContext securityContext) throws NotFoundException { + public Response updatePet(Pet body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 18c2ec5ecdd..e0746cb4f93 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -34,7 +34,7 @@ public class StoreApiServiceImpl extends StoreApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response placeOrder(Order order, SecurityContext securityContext) throws NotFoundException { + public Response placeOrder(Order body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index ef7366a6626..3149b83c007 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -19,17 +19,17 @@ import javax.validation.constraints.*; public class UserApiServiceImpl extends UserApiService { @Override - public Response createUser(User user, SecurityContext securityContext) throws NotFoundException { + public Response createUser(User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response createUsersWithArrayInput(List user, SecurityContext securityContext) throws NotFoundException { + public Response createUsersWithArrayInput(List body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response createUsersWithListInput(List user, SecurityContext securityContext) throws NotFoundException { + public Response createUsersWithListInput(List body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @@ -54,7 +54,7 @@ public class UserApiServiceImpl extends UserApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response updateUser(String username, User user, SecurityContext securityContext) throws NotFoundException { + public Response updateUser(String username, User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApi.java index de660a1d424..4773b5b135b 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApi.java @@ -47,9 +47,9 @@ public class PetApi { }, tags={ "pet", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) throws NotFoundException { - return service.addPet(pet,securityContext); + return service.addPet(body,securityContext); } @DELETE @Path("/{petId}") @@ -136,9 +136,9 @@ public class PetApi { @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) throws NotFoundException { - return service.updatePet(pet,securityContext); + return service.updatePet(body,securityContext); } @POST @Path("/{petId}") diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApiService.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApiService.java index d2202af6d8a..9bfaae424d9 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/PetApiService.java @@ -19,7 +19,7 @@ import javax.ws.rs.core.SecurityContext; public interface PetApiService { - Response addPet(Pet pet,SecurityContext securityContext) + Response addPet(Pet body,SecurityContext securityContext) throws NotFoundException; Response deletePet(Long petId,String apiKey,SecurityContext securityContext) throws NotFoundException; @@ -29,7 +29,7 @@ public interface PetApiService { throws NotFoundException; Response getPetById(Long petId,SecurityContext securityContext) throws NotFoundException; - Response updatePet(Pet pet,SecurityContext securityContext) + Response updatePet(Pet body,SecurityContext securityContext) throws NotFoundException; Response updatePetWithForm(Long petId,String name,String status,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApi.java index 606baea1be9..0bdccffb2c7 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApi.java @@ -83,8 +83,8 @@ public class StoreApi { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order order,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order body,@Context SecurityContext securityContext) throws NotFoundException { - return service.placeOrder(order,securityContext); + return service.placeOrder(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApiService.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApiService.java index 2dd93106dc5..86ca76cdbea 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/StoreApiService.java @@ -23,6 +23,6 @@ public interface StoreApiService { throws NotFoundException; Response getOrderById(Long orderId,SecurityContext securityContext) throws NotFoundException; - Response placeOrder(Order order,SecurityContext securityContext) + Response placeOrder(Order body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApi.java index 0d5fcb1d89f..7347f487864 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApi.java @@ -40,9 +40,9 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User body,@Context SecurityContext securityContext) throws NotFoundException { - return service.createUser(user,securityContext); + return service.createUser(body,securityContext); } @POST @Path("/createWithArray") @@ -51,9 +51,9 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List user,@Context SecurityContext securityContext) + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body,@Context SecurityContext securityContext) throws NotFoundException { - return service.createUsersWithArrayInput(user,securityContext); + return service.createUsersWithArrayInput(body,securityContext); } @POST @Path("/createWithList") @@ -62,9 +62,9 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List user,@Context SecurityContext securityContext) + public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body,@Context SecurityContext securityContext) throws NotFoundException { - return service.createUsersWithListInput(user,securityContext); + return service.createUsersWithListInput(body,securityContext); } @DELETE @Path("/{username}") @@ -127,8 +127,8 @@ public class UserApi { @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser( @PathParam("username") String username,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response updateUser( @PathParam("username") String username,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User body,@Context SecurityContext securityContext) throws NotFoundException { - return service.updateUser(username,user,securityContext); + return service.updateUser(username,body,securityContext); } } diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApiService.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApiService.java index d10882c5764..308becc2c3a 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/api/UserApiService.java @@ -17,11 +17,11 @@ import javax.ws.rs.core.SecurityContext; public interface UserApiService { - Response createUser(User user,SecurityContext securityContext) + Response createUser(User body,SecurityContext securityContext) throws NotFoundException; - Response createUsersWithArrayInput(List user,SecurityContext securityContext) + Response createUsersWithArrayInput(List body,SecurityContext securityContext) throws NotFoundException; - Response createUsersWithListInput(List user,SecurityContext securityContext) + Response createUsersWithListInput(List body,SecurityContext securityContext) throws NotFoundException; Response deleteUser(String username,SecurityContext securityContext) throws NotFoundException; @@ -31,6 +31,6 @@ public interface UserApiService { throws NotFoundException; Response logoutUser(SecurityContext securityContext) throws NotFoundException; - Response updateUser(String username,User user,SecurityContext securityContext) + Response updateUser(String username,User body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index f3640de4112..2f2b64d8ba7 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -21,7 +21,7 @@ import javax.ws.rs.core.SecurityContext; @RequestScoped public class PetApiServiceImpl implements PetApiService { - public Response addPet(Pet pet,SecurityContext securityContext) + public Response addPet(Pet body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); @@ -46,7 +46,7 @@ public class PetApiServiceImpl implements PetApiService { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } - public Response updatePet(Pet pet,SecurityContext securityContext) + public Response updatePet(Pet body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 1bbd0041952..fb56f1feceb 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -34,7 +34,7 @@ public class StoreApiServiceImpl implements StoreApiService { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } - public Response placeOrder(Order order,SecurityContext securityContext) + public Response placeOrder(Order body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index e03dc8eddde..eacf8b7e400 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -19,17 +19,17 @@ import javax.ws.rs.core.SecurityContext; @RequestScoped public class UserApiServiceImpl implements UserApiService { - public Response createUser(User user,SecurityContext securityContext) + public Response createUser(User body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } - public Response createUsersWithArrayInput(List user,SecurityContext securityContext) + public Response createUsersWithArrayInput(List body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } - public Response createUsersWithListInput(List user,SecurityContext securityContext) + public Response createUsersWithListInput(List body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); @@ -54,7 +54,7 @@ public class UserApiServiceImpl implements UserApiService { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } - public Response updateUser(String username,User user,SecurityContext securityContext) + public Response updateUser(String username,User body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/PetApi.java index 94cddaaa811..c41778a3622 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/PetApi.java @@ -41,7 +41,7 @@ public interface PetApi { }, tags={ "pet", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext); + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body,@Context SecurityContext securityContext); @DELETE @Path("/{petId}") @@ -115,7 +115,7 @@ public interface PetApi { @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext); + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body,@Context SecurityContext securityContext); @POST @Path("/{petId}") @Consumes({ "application/x-www-form-urlencoded" }) diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/StoreApi.java index 8d0d86d9345..73f3a693d5e 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/StoreApi.java @@ -68,5 +68,5 @@ public interface StoreApi { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order order,@Context SecurityContext securityContext); + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order body,@Context SecurityContext securityContext); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/UserApi.java index a88ad032f04..4ca54bbd29e 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/api/UserApi.java @@ -34,7 +34,7 @@ public interface UserApi { @io.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User user,@Context SecurityContext securityContext); + public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User body,@Context SecurityContext securityContext); @POST @Path("/createWithArray") @@ -42,7 +42,7 @@ public interface UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List user,@Context SecurityContext securityContext); + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body,@Context SecurityContext securityContext); @POST @Path("/createWithList") @@ -50,7 +50,7 @@ public interface UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List user,@Context SecurityContext securityContext); + public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body,@Context SecurityContext securityContext); @DELETE @Path("/{username}") @@ -100,5 +100,5 @@ public interface UserApi { @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser( @PathParam("username") String username,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User user,@Context SecurityContext securityContext); + public Response updateUser( @PathParam("username") String username,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User body,@Context SecurityContext securityContext); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index 7f91026af3e..3f339c113b1 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -18,7 +18,7 @@ import javax.ws.rs.core.SecurityContext; public class PetApiServiceImpl implements PetApi { - public Response addPet(Pet pet,SecurityContext securityContext) { + public Response addPet(Pet body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } @@ -38,7 +38,7 @@ public class PetApiServiceImpl implements PetApi { // do some magic! return Response.ok().build(); } - public Response updatePet(Pet pet,SecurityContext securityContext) { + public Response updatePet(Pet body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index ed2962e0256..1185626ed04 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -28,7 +28,7 @@ public class StoreApiServiceImpl implements StoreApi { // do some magic! return Response.ok().build(); } - public Response placeOrder(Order order,SecurityContext securityContext) { + public Response placeOrder(Order body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index cea09d4a0fc..951a063491a 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -16,15 +16,15 @@ import javax.ws.rs.core.SecurityContext; public class UserApiServiceImpl implements UserApi { - public Response createUser(User user,SecurityContext securityContext) { + public Response createUser(User body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } - public Response createUsersWithArrayInput(List user,SecurityContext securityContext) { + public Response createUsersWithArrayInput(List body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } - public Response createUsersWithListInput(List user,SecurityContext securityContext) { + public Response createUsersWithListInput(List body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } @@ -44,7 +44,7 @@ public class UserApiServiceImpl implements UserApi { // do some magic! return Response.ok().build(); } - public Response updateUser(String username,User user,SecurityContext securityContext) { + public Response updateUser(String username,User body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/PetApi.java index 94cddaaa811..c41778a3622 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/PetApi.java @@ -41,7 +41,7 @@ public interface PetApi { }, tags={ "pet", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext); + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body,@Context SecurityContext securityContext); @DELETE @Path("/{petId}") @@ -115,7 +115,7 @@ public interface PetApi { @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext); + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body,@Context SecurityContext securityContext); @POST @Path("/{petId}") @Consumes({ "application/x-www-form-urlencoded" }) diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/StoreApi.java index 8d0d86d9345..73f3a693d5e 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/StoreApi.java @@ -68,5 +68,5 @@ public interface StoreApi { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order order,@Context SecurityContext securityContext); + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order body,@Context SecurityContext securityContext); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/UserApi.java index a88ad032f04..4ca54bbd29e 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/api/UserApi.java @@ -34,7 +34,7 @@ public interface UserApi { @io.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User user,@Context SecurityContext securityContext); + public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User body,@Context SecurityContext securityContext); @POST @Path("/createWithArray") @@ -42,7 +42,7 @@ public interface UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List user,@Context SecurityContext securityContext); + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body,@Context SecurityContext securityContext); @POST @Path("/createWithList") @@ -50,7 +50,7 @@ public interface UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List user,@Context SecurityContext securityContext); + public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body,@Context SecurityContext securityContext); @DELETE @Path("/{username}") @@ -100,5 +100,5 @@ public interface UserApi { @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser( @PathParam("username") String username,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User user,@Context SecurityContext securityContext); + public Response updateUser( @PathParam("username") String username,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User body,@Context SecurityContext securityContext); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index 7f91026af3e..3f339c113b1 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -18,7 +18,7 @@ import javax.ws.rs.core.SecurityContext; public class PetApiServiceImpl implements PetApi { - public Response addPet(Pet pet,SecurityContext securityContext) { + public Response addPet(Pet body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } @@ -38,7 +38,7 @@ public class PetApiServiceImpl implements PetApi { // do some magic! return Response.ok().build(); } - public Response updatePet(Pet pet,SecurityContext securityContext) { + public Response updatePet(Pet body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index ed2962e0256..1185626ed04 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -28,7 +28,7 @@ public class StoreApiServiceImpl implements StoreApi { // do some magic! return Response.ok().build(); } - public Response placeOrder(Order order,SecurityContext securityContext) { + public Response placeOrder(Order body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index cea09d4a0fc..951a063491a 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -16,15 +16,15 @@ import javax.ws.rs.core.SecurityContext; public class UserApiServiceImpl implements UserApi { - public Response createUser(User user,SecurityContext securityContext) { + public Response createUser(User body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } - public Response createUsersWithArrayInput(List user,SecurityContext securityContext) { + public Response createUsersWithArrayInput(List body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } - public Response createUsersWithListInput(List user,SecurityContext securityContext) { + public Response createUsersWithListInput(List body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } @@ -44,7 +44,7 @@ public class UserApiServiceImpl implements UserApi { // do some magic! return Response.ok().build(); } - public Response updateUser(String username,User user,SecurityContext securityContext) { + public Response updateUser(String username,User body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/PetApi.java index 94cddaaa811..c41778a3622 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/PetApi.java @@ -41,7 +41,7 @@ public interface PetApi { }, tags={ "pet", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext); + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body,@Context SecurityContext securityContext); @DELETE @Path("/{petId}") @@ -115,7 +115,7 @@ public interface PetApi { @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext); + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body,@Context SecurityContext securityContext); @POST @Path("/{petId}") @Consumes({ "application/x-www-form-urlencoded" }) diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/StoreApi.java index 8d0d86d9345..73f3a693d5e 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/StoreApi.java @@ -68,5 +68,5 @@ public interface StoreApi { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order order,@Context SecurityContext securityContext); + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order body,@Context SecurityContext securityContext); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/UserApi.java index a88ad032f04..4ca54bbd29e 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/api/UserApi.java @@ -34,7 +34,7 @@ public interface UserApi { @io.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User user,@Context SecurityContext securityContext); + public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User body,@Context SecurityContext securityContext); @POST @Path("/createWithArray") @@ -42,7 +42,7 @@ public interface UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List user,@Context SecurityContext securityContext); + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body,@Context SecurityContext securityContext); @POST @Path("/createWithList") @@ -50,7 +50,7 @@ public interface UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List user,@Context SecurityContext securityContext); + public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body,@Context SecurityContext securityContext); @DELETE @Path("/{username}") @@ -100,5 +100,5 @@ public interface UserApi { @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser( @PathParam("username") String username,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User user,@Context SecurityContext securityContext); + public Response updateUser( @PathParam("username") String username,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User body,@Context SecurityContext securityContext); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index 7f91026af3e..3f339c113b1 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -18,7 +18,7 @@ import javax.ws.rs.core.SecurityContext; public class PetApiServiceImpl implements PetApi { - public Response addPet(Pet pet,SecurityContext securityContext) { + public Response addPet(Pet body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } @@ -38,7 +38,7 @@ public class PetApiServiceImpl implements PetApi { // do some magic! return Response.ok().build(); } - public Response updatePet(Pet pet,SecurityContext securityContext) { + public Response updatePet(Pet body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index ed2962e0256..1185626ed04 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -28,7 +28,7 @@ public class StoreApiServiceImpl implements StoreApi { // do some magic! return Response.ok().build(); } - public Response placeOrder(Order order,SecurityContext securityContext) { + public Response placeOrder(Order body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index cea09d4a0fc..951a063491a 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -16,15 +16,15 @@ import javax.ws.rs.core.SecurityContext; public class UserApiServiceImpl implements UserApi { - public Response createUser(User user,SecurityContext securityContext) { + public Response createUser(User body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } - public Response createUsersWithArrayInput(List user,SecurityContext securityContext) { + public Response createUsersWithArrayInput(List body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } - public Response createUsersWithListInput(List user,SecurityContext securityContext) { + public Response createUsersWithListInput(List body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } @@ -44,7 +44,7 @@ public class UserApiServiceImpl implements UserApi { // do some magic! return Response.ok().build(); } - public Response updateUser(String username,User user,SecurityContext securityContext) { + public Response updateUser(String username,User body,SecurityContext securityContext) { // do some magic! return Response.ok().build(); } diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApi.java index de660a1d424..4773b5b135b 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApi.java @@ -47,9 +47,9 @@ public class PetApi { }, tags={ "pet", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) throws NotFoundException { - return service.addPet(pet,securityContext); + return service.addPet(body,securityContext); } @DELETE @Path("/{petId}") @@ -136,9 +136,9 @@ public class PetApi { @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) throws NotFoundException { - return service.updatePet(pet,securityContext); + return service.updatePet(body,securityContext); } @POST @Path("/{petId}") diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApiService.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApiService.java index d2202af6d8a..9bfaae424d9 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/PetApiService.java @@ -19,7 +19,7 @@ import javax.ws.rs.core.SecurityContext; public interface PetApiService { - Response addPet(Pet pet,SecurityContext securityContext) + Response addPet(Pet body,SecurityContext securityContext) throws NotFoundException; Response deletePet(Long petId,String apiKey,SecurityContext securityContext) throws NotFoundException; @@ -29,7 +29,7 @@ public interface PetApiService { throws NotFoundException; Response getPetById(Long petId,SecurityContext securityContext) throws NotFoundException; - Response updatePet(Pet pet,SecurityContext securityContext) + Response updatePet(Pet body,SecurityContext securityContext) throws NotFoundException; Response updatePetWithForm(Long petId,String name,String status,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApi.java index 606baea1be9..0bdccffb2c7 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApi.java @@ -83,8 +83,8 @@ public class StoreApi { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order order,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @NotNull @Valid Order body,@Context SecurityContext securityContext) throws NotFoundException { - return service.placeOrder(order,securityContext); + return service.placeOrder(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApiService.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApiService.java index 2dd93106dc5..86ca76cdbea 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/StoreApiService.java @@ -23,6 +23,6 @@ public interface StoreApiService { throws NotFoundException; Response getOrderById(Long orderId,SecurityContext securityContext) throws NotFoundException; - Response placeOrder(Order order,SecurityContext securityContext) + Response placeOrder(Order body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApi.java index 0d5fcb1d89f..7347f487864 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApi.java @@ -40,9 +40,9 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object" ,required=true) @NotNull @Valid User body,@Context SecurityContext securityContext) throws NotFoundException { - return service.createUser(user,securityContext); + return service.createUser(body,securityContext); } @POST @Path("/createWithArray") @@ -51,9 +51,9 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List user,@Context SecurityContext securityContext) + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body,@Context SecurityContext securityContext) throws NotFoundException { - return service.createUsersWithArrayInput(user,securityContext); + return service.createUsersWithArrayInput(body,securityContext); } @POST @Path("/createWithList") @@ -62,9 +62,9 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List user,@Context SecurityContext securityContext) + public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @NotNull @Valid List body,@Context SecurityContext securityContext) throws NotFoundException { - return service.createUsersWithListInput(user,securityContext); + return service.createUsersWithListInput(body,securityContext); } @DELETE @Path("/{username}") @@ -127,8 +127,8 @@ public class UserApi { @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser( @PathParam("username") String username,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response updateUser( @PathParam("username") String username,@ApiParam(value = "Updated user object" ,required=true) @NotNull @Valid User body,@Context SecurityContext securityContext) throws NotFoundException { - return service.updateUser(username,user,securityContext); + return service.updateUser(username,body,securityContext); } } diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApiService.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApiService.java index d10882c5764..308becc2c3a 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApiService.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/api/UserApiService.java @@ -17,11 +17,11 @@ import javax.ws.rs.core.SecurityContext; public interface UserApiService { - Response createUser(User user,SecurityContext securityContext) + Response createUser(User body,SecurityContext securityContext) throws NotFoundException; - Response createUsersWithArrayInput(List user,SecurityContext securityContext) + Response createUsersWithArrayInput(List body,SecurityContext securityContext) throws NotFoundException; - Response createUsersWithListInput(List user,SecurityContext securityContext) + Response createUsersWithListInput(List body,SecurityContext securityContext) throws NotFoundException; Response deleteUser(String username,SecurityContext securityContext) throws NotFoundException; @@ -31,6 +31,6 @@ public interface UserApiService { throws NotFoundException; Response logoutUser(SecurityContext securityContext) throws NotFoundException; - Response updateUser(String username,User user,SecurityContext securityContext) + Response updateUser(String username,User body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index f3640de4112..2f2b64d8ba7 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -21,7 +21,7 @@ import javax.ws.rs.core.SecurityContext; @RequestScoped public class PetApiServiceImpl implements PetApiService { - public Response addPet(Pet pet,SecurityContext securityContext) + public Response addPet(Pet body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); @@ -46,7 +46,7 @@ public class PetApiServiceImpl implements PetApiService { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } - public Response updatePet(Pet pet,SecurityContext securityContext) + public Response updatePet(Pet body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 1bbd0041952..fb56f1feceb 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -34,7 +34,7 @@ public class StoreApiServiceImpl implements StoreApiService { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } - public Response placeOrder(Order order,SecurityContext securityContext) + public Response placeOrder(Order body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index e03dc8eddde..eacf8b7e400 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -19,17 +19,17 @@ import javax.ws.rs.core.SecurityContext; @RequestScoped public class UserApiServiceImpl implements UserApiService { - public Response createUser(User user,SecurityContext securityContext) + public Response createUser(User body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } - public Response createUsersWithArrayInput(List user,SecurityContext securityContext) + public Response createUsersWithArrayInput(List body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } - public Response createUsersWithListInput(List user,SecurityContext securityContext) + public Response createUsersWithListInput(List body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); @@ -54,7 +54,7 @@ public class UserApiServiceImpl implements UserApiService { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } - public Response updateUser(String username,User user,SecurityContext securityContext) + public Response updateUser(String username,User body,SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 8c119364762..ab8f42ee708 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -24,5 +24,5 @@ public interface AnotherFakeApi { @ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", tags={ "$another-fake?" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - Client call123testSpecialTags(@Valid Client client); + Client call123testSpecialTags(@Valid Client body); } diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java index 16f22640029..5d8780f2ee7 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java @@ -40,7 +40,7 @@ public interface FakeApi { @ApiOperation(value = "", notes = "Test serialization of object with outer number type", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - OuterComposite fakeOuterCompositeSerialize(@Valid OuterComposite outerComposite); + OuterComposite fakeOuterCompositeSerialize(@Valid OuterComposite body); @POST @Path("/outer/number") @@ -64,7 +64,7 @@ public interface FakeApi { @ApiOperation(value = "", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success", response = Void.class) }) - void testBodyWithFileSchema(@Valid FileSchemaTestClass fileSchemaTestClass); + void testBodyWithFileSchema(@Valid FileSchemaTestClass body); @PUT @Path("/body-with-query-params") @@ -72,7 +72,7 @@ public interface FakeApi { @ApiOperation(value = "", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success", response = Void.class) }) - void testBodyWithQueryParams(@QueryParam("query") @NotNull String query,@Valid User user); + void testBodyWithQueryParams(@QueryParam("query") @NotNull String query,@Valid User body); @PATCH @Consumes({ "application/json" }) @@ -80,7 +80,7 @@ public interface FakeApi { @ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - Client testClientModel(@Valid Client client); + Client testClientModel(@Valid Client body); @POST @Consumes({ "application/x-www-form-urlencoded" }) @@ -112,7 +112,7 @@ public interface FakeApi { @ApiOperation(value = "test inline additionalProperties", notes = "", tags={ "fake", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - void testInlineAdditionalProperties(@Valid Map requestBody); + void testInlineAdditionalProperties(@Valid Map param); @GET @Path("/jsonFormData") diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 39782c30cba..15ebbfb9f60 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -25,5 +25,5 @@ public interface FakeClassnameTestApi { }, tags={ "fake_classname_tags 123#$%^" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - Client testClassname(@Valid Client client); + Client testClassname(@Valid Client body); } diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/PetApi.java index 671386400ce..8f1d606ae11 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/PetApi.java @@ -29,7 +29,7 @@ public interface PetApi { }, tags={ "pet", }) @ApiResponses(value = { @ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - void addPet(@Valid Pet pet); + void addPet(@Valid Pet body); @DELETE @Path("/{petId}") @@ -95,7 +95,7 @@ public interface PetApi { @ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @ApiResponse(code = 404, message = "Pet not found", response = Void.class), @ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - void updatePet(@Valid Pet pet); + void updatePet(@Valid Pet body); @POST @Path("/{petId}") diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/StoreApi.java index 102b70a5f08..9021462fad7 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/StoreApi.java @@ -53,5 +53,5 @@ public interface StoreApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - Order placeOrder(@Valid Order order); + Order placeOrder(@Valid Order body); } diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/UserApi.java index e5d325d371a..33ed2f6aaeb 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/UserApi.java @@ -22,21 +22,21 @@ public interface UserApi { @ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - void createUser(@Valid User user); + void createUser(@Valid User body); @POST @Path("/createWithArray") @ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - void createUsersWithArrayInput(@Valid List user); + void createUsersWithArrayInput(@Valid List body); @POST @Path("/createWithList") @ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ "user", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - void createUsersWithListInput(@Valid List user); + void createUsersWithListInput(@Valid List body); @DELETE @Path("/{username}") @@ -78,5 +78,5 @@ public interface UserApi { @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @ApiResponse(code = 404, message = "User not found", response = Void.class) }) - void updateUser(@PathParam("username") @ApiParam("name that need to be deleted") String username,@Valid User user); + void updateUser(@PathParam("username") @ApiParam("name that need to be deleted") String username,@Valid User body); } diff --git a/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml index f05bb168cf7..fc79104a6cb 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml +++ b/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml @@ -42,6 +42,7 @@ paths: summary: Add a new pet to the store tags: - pet + x-codegen-request-body-name: body x-tags: - tag: pet put: @@ -73,6 +74,7 @@ paths: summary: Update an existing pet tags: - pet + x-codegen-request-body-name: body x-tags: - tag: pet /pet/findByStatus: @@ -345,6 +347,7 @@ paths: summary: Place an order for a pet tags: - store + x-codegen-request-body-name: body x-tags: - tag: store /store/order/{order_id}: @@ -422,6 +425,7 @@ paths: summary: Create user tags: - user + x-codegen-request-body-name: body x-tags: - tag: user /user/createWithArray: @@ -443,6 +447,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body x-tags: - tag: user /user/createWithList: @@ -464,6 +469,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body x-tags: - tag: user /user/login: @@ -603,6 +609,7 @@ paths: summary: Updated user tags: - user + x-codegen-request-body-name: body x-tags: - tag: user /fake_classname_test: @@ -628,6 +635,7 @@ paths: summary: To test class name in snake case tags: - fake_classname_tags 123#$%^ + x-codegen-request-body-name: body x-tags: - tag: fake_classname_tags 123#$%^ /fake: @@ -802,6 +810,7 @@ paths: summary: To test "client" model tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake post: @@ -924,6 +933,7 @@ paths: description: Output number tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake /fake/outer/string: @@ -946,6 +956,7 @@ paths: description: Output string tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake /fake/outer/boolean: @@ -968,6 +979,7 @@ paths: description: Output boolean tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake /fake/outer/composite: @@ -990,6 +1002,7 @@ paths: description: Output composite tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake /fake/jsonFormData: @@ -1038,6 +1051,7 @@ paths: summary: test inline additionalProperties tags: - fake + x-codegen-request-body-name: param x-tags: - tag: fake /fake/body-with-query-params: @@ -1061,6 +1075,7 @@ paths: description: Success tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake /another-fake/dummy: @@ -1084,6 +1099,7 @@ paths: summary: To test special tags tags: - $another-fake? + x-codegen-request-body-name: body x-tags: - tag: $another-fake? /fake/body-with-file-schema: @@ -1102,6 +1118,7 @@ paths: description: Success tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake /fake/{petId}/uploadImageWithRequiredFile: diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 15cf4917d0d..5902d473948 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -25,7 +25,7 @@ public class AnotherFakeApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@Valid Client client) { + public Response call123testSpecialTags(@Valid Client body) { return Response.ok().entity("magic!").build(); } } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeApi.java index 507a20b2dc7..a927f667599 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeApi.java @@ -44,7 +44,7 @@ public class FakeApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@Valid OuterComposite outerComposite) { + public Response fakeOuterCompositeSerialize(@Valid OuterComposite body) { return Response.ok().entity("magic!").build(); } @@ -77,7 +77,7 @@ public class FakeApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@Valid FileSchemaTestClass fileSchemaTestClass) { + public Response testBodyWithFileSchema(@Valid FileSchemaTestClass body) { return Response.ok().entity("magic!").build(); } @@ -88,7 +88,7 @@ public class FakeApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithQueryParams(@QueryParam("query") @NotNull String query,@Valid User user) { + public Response testBodyWithQueryParams(@QueryParam("query") @NotNull String query,@Valid User body) { return Response.ok().entity("magic!").build(); } @@ -99,7 +99,7 @@ public class FakeApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@Valid Client client) { + public Response testClientModel(@Valid Client body) { return Response.ok().entity("magic!").build(); } @@ -143,7 +143,7 @@ public class FakeApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineAdditionalProperties(@Valid Map requestBody) { + public Response testInlineAdditionalProperties(@Valid Map param) { return Response.ok().entity("magic!").build(); } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index c41753002a7..70341d836a6 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -26,7 +26,7 @@ public class FakeClassnameTestApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@Valid Client client) { + public Response testClassname(@Valid Client body) { return Response.ok().entity("magic!").build(); } } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/PetApi.java index de83050e336..76d567dba8b 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/PetApi.java @@ -30,7 +30,7 @@ public class PetApi { @ApiResponses(value = { @ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@Valid Pet pet) { + public Response addPet(@Valid Pet body) { return Response.ok().entity("magic!").build(); } @@ -111,7 +111,7 @@ public class PetApi { @ApiResponse(code = 404, message = "Pet not found", response = Void.class), @ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@Valid Pet pet) { + public Response updatePet(@Valid Pet body) { return Response.ok().entity("magic!").build(); } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/StoreApi.java index 82e6a101d12..de2df3c4c66 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/StoreApi.java @@ -63,7 +63,7 @@ public class StoreApi { @ApiResponse(code = 200, message = "successful operation", response = Order.class), @ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@Valid Order order) { + public Response placeOrder(@Valid Order body) { return Response.ok().entity("magic!").build(); } } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/UserApi.java index f7983da6246..e6e6d5e9a21 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/UserApi.java @@ -23,7 +23,7 @@ public class UserApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@Valid User user) { + public Response createUser(@Valid User body) { return Response.ok().entity("magic!").build(); } @@ -33,7 +33,7 @@ public class UserApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@Valid List user) { + public Response createUsersWithArrayInput(@Valid List body) { return Response.ok().entity("magic!").build(); } @@ -43,7 +43,7 @@ public class UserApi { @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@Valid List user) { + public Response createUsersWithListInput(@Valid List body) { return Response.ok().entity("magic!").build(); } @@ -100,7 +100,7 @@ public class UserApi { @ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@PathParam("username") @ApiParam("name that need to be deleted") String username,@Valid User user) { + public Response updateUser(@PathParam("username") @ApiParam("name that need to be deleted") String username,@Valid User body) { return Response.ok().entity("magic!").build(); } } diff --git a/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml index f05bb168cf7..fc79104a6cb 100644 --- a/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml +++ b/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml @@ -42,6 +42,7 @@ paths: summary: Add a new pet to the store tags: - pet + x-codegen-request-body-name: body x-tags: - tag: pet put: @@ -73,6 +74,7 @@ paths: summary: Update an existing pet tags: - pet + x-codegen-request-body-name: body x-tags: - tag: pet /pet/findByStatus: @@ -345,6 +347,7 @@ paths: summary: Place an order for a pet tags: - store + x-codegen-request-body-name: body x-tags: - tag: store /store/order/{order_id}: @@ -422,6 +425,7 @@ paths: summary: Create user tags: - user + x-codegen-request-body-name: body x-tags: - tag: user /user/createWithArray: @@ -443,6 +447,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body x-tags: - tag: user /user/createWithList: @@ -464,6 +469,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body x-tags: - tag: user /user/login: @@ -603,6 +609,7 @@ paths: summary: Updated user tags: - user + x-codegen-request-body-name: body x-tags: - tag: user /fake_classname_test: @@ -628,6 +635,7 @@ paths: summary: To test class name in snake case tags: - fake_classname_tags 123#$%^ + x-codegen-request-body-name: body x-tags: - tag: fake_classname_tags 123#$%^ /fake: @@ -802,6 +810,7 @@ paths: summary: To test "client" model tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake post: @@ -924,6 +933,7 @@ paths: description: Output number tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake /fake/outer/string: @@ -946,6 +956,7 @@ paths: description: Output string tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake /fake/outer/boolean: @@ -968,6 +979,7 @@ paths: description: Output boolean tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake /fake/outer/composite: @@ -990,6 +1002,7 @@ paths: description: Output composite tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake /fake/jsonFormData: @@ -1038,6 +1051,7 @@ paths: summary: test inline additionalProperties tags: - fake + x-codegen-request-body-name: param x-tags: - tag: fake /fake/body-with-query-params: @@ -1061,6 +1075,7 @@ paths: description: Success tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake /another-fake/dummy: @@ -1084,6 +1099,7 @@ paths: summary: To test special tags tags: - $another-fake? + x-codegen-request-body-name: body x-tags: - tag: $another-fake? /fake/body-with-file-schema: @@ -1102,6 +1118,7 @@ paths: description: Success tags: - fake + x-codegen-request-body-name: body x-tags: - tag: fake /fake/{petId}/uploadImageWithRequiredFile: diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 23dd3301380..5bd15bff071 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -41,9 +41,9 @@ public class AnotherFakeApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) public Response call123testSpecialTags( - @ApiParam(value = "client model" ,required=true) @Valid Client client, + @ApiParam(value = "client model" ,required=true) @Valid Client body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.call123testSpecialTags(client,securityContext); + return delegate.call123testSpecialTags(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java index 62343b93c34..85a462b46c8 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java @@ -20,6 +20,6 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class AnotherFakeApiService { - public abstract Response call123testSpecialTags(Client client,SecurityContext securityContext) + public abstract Response call123testSpecialTags(Client body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApi.java index a7d6b517654..4da0f8bd8b5 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApi.java @@ -61,10 +61,10 @@ public class FakeApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) public Response fakeOuterCompositeSerialize( - @ApiParam(value = "Input composite as post body" ) @Valid OuterComposite outerComposite, + @ApiParam(value = "Input composite as post body" ) @Valid OuterComposite body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterCompositeSerialize(outerComposite,securityContext); + return delegate.fakeOuterCompositeSerialize(body,securityContext); } @POST @Path("/outer/number") @@ -100,10 +100,10 @@ public class FakeApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) public Response testBodyWithFileSchema( - @ApiParam(value = "" ,required=true) @Valid FileSchemaTestClass fileSchemaTestClass, + @ApiParam(value = "" ,required=true) @Valid FileSchemaTestClass body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithFileSchema(fileSchemaTestClass,securityContext); + return delegate.testBodyWithFileSchema(body,securityContext); } @PUT @Path("/body-with-query-params") @@ -114,10 +114,10 @@ public class FakeApi { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) public Response testBodyWithQueryParams( @ApiParam(value = "",required=true) @QueryParam("query") String query, - @ApiParam(value = "" ,required=true) @Valid User user, + @ApiParam(value = "" ,required=true) @Valid User body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithQueryParams(query,user,securityContext); + return delegate.testBodyWithQueryParams(query,body,securityContext); } @PATCH @@ -127,10 +127,10 @@ public class FakeApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) public Response testClientModel( - @ApiParam(value = "client model" ,required=true) @Valid Client client, + @ApiParam(value = "client model" ,required=true) @Valid Client body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClientModel(client,securityContext); + return delegate.testClientModel(body,securityContext); } @POST @@ -209,10 +209,10 @@ public class FakeApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) public Response testInlineAdditionalProperties( - @ApiParam(value = "request body" ,required=true) @Valid Map requestBody, + @ApiParam(value = "request body" ,required=true) @Valid Map param, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.testInlineAdditionalProperties(requestBody,securityContext); + return delegate.testInlineAdditionalProperties(param,securityContext); } @GET @Path("/jsonFormData") diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApiService.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApiService.java index 4c801295be0..e6aefcb7e4a 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApiService.java @@ -29,17 +29,17 @@ import javax.validation.constraints.*; public abstract class FakeApiService { public abstract Response fakeOuterBooleanSerialize(Boolean body,SecurityContext securityContext) throws NotFoundException; - public abstract Response fakeOuterCompositeSerialize(OuterComposite outerComposite,SecurityContext securityContext) + public abstract Response fakeOuterCompositeSerialize(OuterComposite body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterNumberSerialize(BigDecimal body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterStringSerialize(String body,SecurityContext securityContext) throws NotFoundException; - public abstract Response testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass,SecurityContext securityContext) + public abstract Response testBodyWithFileSchema(FileSchemaTestClass body,SecurityContext securityContext) throws NotFoundException; - public abstract Response testBodyWithQueryParams( @NotNull String query,User user,SecurityContext securityContext) + public abstract Response testBodyWithQueryParams( @NotNull String query,User body,SecurityContext securityContext) throws NotFoundException; - public abstract Response testClientModel(Client client,SecurityContext securityContext) + public abstract Response testClientModel(Client body,SecurityContext securityContext) throws NotFoundException; public abstract Response testEndpointParameters(BigDecimal number,Double _double,String patternWithoutDelimiter,byte[] _byte,Integer integer,Integer int32,Long int64,Float _float,String string,InputStream binaryInputStream, FormDataContentDisposition binaryDetail,Date date,Date dateTime,String password,String paramCallback,SecurityContext securityContext) throws NotFoundException; @@ -47,7 +47,7 @@ public abstract class FakeApiService { throws NotFoundException; public abstract Response testGroupParameters( @NotNull Integer requiredStringGroup, @NotNull Boolean requiredBooleanGroup, @NotNull Long requiredInt64Group,Integer stringGroup,Boolean booleanGroup,Long int64Group,SecurityContext securityContext) throws NotFoundException; - public abstract Response testInlineAdditionalProperties(Map requestBody,SecurityContext securityContext) + public abstract Response testInlineAdditionalProperties(Map param,SecurityContext securityContext) throws NotFoundException; public abstract Response testJsonFormData(String param,String param2,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java index 882c66080db..87de86f81f1 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -43,9 +43,9 @@ public class FakeClassnameTags123Api { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) public Response testClassname( - @ApiParam(value = "client model" ,required=true) @Valid Client client, + @ApiParam(value = "client model" ,required=true) @Valid Client body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClassname(client,securityContext); + return delegate.testClassname(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java index fcb64164e2f..3b3d7a7367d 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java @@ -20,6 +20,6 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class FakeClassnameTags123ApiService { - public abstract Response testClassname(Client client,SecurityContext securityContext) + public abstract Response testClassname(Client body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApi.java index c33194224fc..aabdb44c71b 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApi.java @@ -48,10 +48,10 @@ public class PetApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) public Response addPet( - @ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet pet, + @ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.addPet(pet,securityContext); + return delegate.addPet(body,securityContext); } @DELETE @Path("/pet/{petId}") @@ -142,10 +142,10 @@ public class PetApi { @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) public Response updatePet( - @ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet pet, + @ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.updatePet(pet,securityContext); + return delegate.updatePet(body,securityContext); } @POST @Path("/pet/{petId}") diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApiService.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApiService.java index 989a929d2fa..e230cb93194 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApiService.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/PetApiService.java @@ -22,7 +22,7 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class PetApiService { - public abstract Response addPet(Pet pet,SecurityContext securityContext) + public abstract Response addPet(Pet body,SecurityContext securityContext) throws NotFoundException; public abstract Response deletePet(Long petId,String apiKey,SecurityContext securityContext) throws NotFoundException; @@ -32,7 +32,7 @@ public abstract class PetApiService { throws NotFoundException; public abstract Response getPetById(Long petId,SecurityContext securityContext) throws NotFoundException; - public abstract Response updatePet(Pet pet,SecurityContext securityContext) + public abstract Response updatePet(Pet body,SecurityContext securityContext) throws NotFoundException; public abstract Response updatePetWithForm(Long petId,String name,String status,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApi.java index bed3aee90bb..d68850cf881 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApi.java @@ -86,9 +86,9 @@ public class StoreApi { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) public Response placeOrder( - @ApiParam(value = "order placed for purchasing the pet" ,required=true) @Valid Order order, + @ApiParam(value = "order placed for purchasing the pet" ,required=true) @Valid Order body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.placeOrder(order,securityContext); + return delegate.placeOrder(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApiService.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApiService.java index 3de7ce28752..5df2ddbbe30 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/StoreApiService.java @@ -27,6 +27,6 @@ public abstract class StoreApiService { throws NotFoundException; public abstract Response getOrderById( @Min(1L) @Max(5L)Long orderId,SecurityContext securityContext) throws NotFoundException; - public abstract Response placeOrder(Order order,SecurityContext securityContext) + public abstract Response placeOrder(Order body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApi.java index 5993cd8a0b6..081af5cc875 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApi.java @@ -42,10 +42,10 @@ public class UserApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) public Response createUser( - @ApiParam(value = "Created user object" ,required=true) @Valid User user, + @ApiParam(value = "Created user object" ,required=true) @Valid User body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUser(user,securityContext); + return delegate.createUser(body,securityContext); } @POST @Path("/createWithArray") @@ -55,10 +55,10 @@ public class UserApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) public Response createUsersWithArrayInput( - @ApiParam(value = "List of user object" ,required=true) @Valid List user, + @ApiParam(value = "List of user object" ,required=true) @Valid List body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithArrayInput(user,securityContext); + return delegate.createUsersWithArrayInput(body,securityContext); } @POST @Path("/createWithList") @@ -68,10 +68,10 @@ public class UserApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) public Response createUsersWithListInput( - @ApiParam(value = "List of user object" ,required=true) @Valid List user, + @ApiParam(value = "List of user object" ,required=true) @Valid List body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithListInput(user,securityContext); + return delegate.createUsersWithListInput(body,securityContext); } @DELETE @Path("/{username}") @@ -139,9 +139,9 @@ public class UserApi { @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) public Response updateUser( @ApiParam(value = "name that need to be deleted",required=true) @PathParam("username") String username, - @ApiParam(value = "Updated user object" ,required=true) @Valid User user, + @ApiParam(value = "Updated user object" ,required=true) @Valid User body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.updateUser(username,user,securityContext); + return delegate.updateUser(username,body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApiService.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApiService.java index 490550e9268..74e6c801526 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApiService.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/UserApiService.java @@ -21,11 +21,11 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class UserApiService { - public abstract Response createUser(User user,SecurityContext securityContext) + public abstract Response createUser(User body,SecurityContext securityContext) throws NotFoundException; - public abstract Response createUsersWithArrayInput(List user,SecurityContext securityContext) + public abstract Response createUsersWithArrayInput(List body,SecurityContext securityContext) throws NotFoundException; - public abstract Response createUsersWithListInput(List user,SecurityContext securityContext) + public abstract Response createUsersWithListInput(List body,SecurityContext securityContext) throws NotFoundException; public abstract Response deleteUser(String username,SecurityContext securityContext) throws NotFoundException; @@ -35,6 +35,6 @@ public abstract class UserApiService { throws NotFoundException; public abstract Response logoutUser(SecurityContext securityContext) throws NotFoundException; - public abstract Response updateUser(String username,User user,SecurityContext securityContext) + public abstract Response updateUser(String username,User body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java index e6b4fb1079b..bb6e507d214 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java @@ -21,7 +21,7 @@ import javax.validation.constraints.*; public class AnotherFakeApiServiceImpl extends AnotherFakeApiService { @Override - public Response call123testSpecialTags(Client client, SecurityContext securityContext) + public Response call123testSpecialTags(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index 040f569e000..480fe403e38 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -34,7 +34,7 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response fakeOuterCompositeSerialize(OuterComposite outerComposite, SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(OuterComposite body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); @@ -52,19 +52,19 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, SecurityContext securityContext) + public Response testBodyWithFileSchema(FileSchemaTestClass body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testBodyWithQueryParams( @NotNull String query, User user, SecurityContext securityContext) + public Response testBodyWithQueryParams( @NotNull String query, User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testClientModel(Client client, SecurityContext securityContext) + public Response testClientModel(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); @@ -88,7 +88,7 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testInlineAdditionalProperties(Map requestBody, SecurityContext securityContext) + public Response testInlineAdditionalProperties(Map param, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java index c76466fae96..1595565688e 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java @@ -21,7 +21,7 @@ import javax.validation.constraints.*; public class FakeClassnameTags123ApiServiceImpl extends FakeClassnameTags123ApiService { @Override - public Response testClassname(Client client, SecurityContext securityContext) + public Response testClassname(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index 83f5058c7dd..0961ee570af 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -23,7 +23,7 @@ import javax.validation.constraints.*; public class PetApiServiceImpl extends PetApiService { @Override - public Response addPet(Pet pet, SecurityContext securityContext) + public Response addPet(Pet body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); @@ -53,7 +53,7 @@ public class PetApiServiceImpl extends PetApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response updatePet(Pet pet, SecurityContext securityContext) + public Response updatePet(Pet body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 0f7995f6699..79e17d33fb7 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -40,7 +40,7 @@ public class StoreApiServiceImpl extends StoreApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response placeOrder(Order order, SecurityContext securityContext) + public Response placeOrder(Order body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index 0b00d2b627b..c48b136424a 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -22,19 +22,19 @@ import javax.validation.constraints.*; public class UserApiServiceImpl extends UserApiService { @Override - public Response createUser(User user, SecurityContext securityContext) + public Response createUser(User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response createUsersWithArrayInput(List user, SecurityContext securityContext) + public Response createUsersWithArrayInput(List body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response createUsersWithListInput(List user, SecurityContext securityContext) + public Response createUsersWithListInput(List body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); @@ -64,7 +64,7 @@ public class UserApiServiceImpl extends UserApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response updateUser(String username, User user, SecurityContext securityContext) + public Response updateUser(String username, User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 6d6063569e6..661dee36409 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -41,9 +41,9 @@ public class AnotherFakeApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) public Response call123testSpecialTags( - @ApiParam(value = "client model" ,required=true) @Valid Client client, + @ApiParam(value = "client model" ,required=true) @Valid Client body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.call123testSpecialTags(client,securityContext); + return delegate.call123testSpecialTags(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApiService.java index 62343b93c34..85a462b46c8 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApiService.java @@ -20,6 +20,6 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class AnotherFakeApiService { - public abstract Response call123testSpecialTags(Client client,SecurityContext securityContext) + public abstract Response call123testSpecialTags(Client body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApi.java index 192e2fdc1c8..c1278998bac 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApi.java @@ -62,10 +62,10 @@ public class FakeApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) public Response fakeOuterCompositeSerialize( - @ApiParam(value = "Input composite as post body" ) @Valid OuterComposite outerComposite, + @ApiParam(value = "Input composite as post body" ) @Valid OuterComposite body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterCompositeSerialize(outerComposite,securityContext); + return delegate.fakeOuterCompositeSerialize(body,securityContext); } @POST @Path("/outer/number") @@ -101,10 +101,10 @@ public class FakeApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) public Response testBodyWithFileSchema( - @ApiParam(value = "" ,required=true) @Valid FileSchemaTestClass fileSchemaTestClass, + @ApiParam(value = "" ,required=true) @Valid FileSchemaTestClass body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithFileSchema(fileSchemaTestClass,securityContext); + return delegate.testBodyWithFileSchema(body,securityContext); } @PUT @Path("/body-with-query-params") @@ -115,10 +115,10 @@ public class FakeApi { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) public Response testBodyWithQueryParams( @ApiParam(value = "",required=true) @QueryParam("query") String query, - @ApiParam(value = "" ,required=true) @Valid User user, + @ApiParam(value = "" ,required=true) @Valid User body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithQueryParams(query,user,securityContext); + return delegate.testBodyWithQueryParams(query,body,securityContext); } @PATCH @@ -128,10 +128,10 @@ public class FakeApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) public Response testClientModel( - @ApiParam(value = "client model" ,required=true) @Valid Client client, + @ApiParam(value = "client model" ,required=true) @Valid Client body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClientModel(client,securityContext); + return delegate.testClientModel(body,securityContext); } @POST @@ -210,10 +210,10 @@ public class FakeApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) public Response testInlineAdditionalProperties( - @ApiParam(value = "request body" ,required=true) @Valid Map requestBody, + @ApiParam(value = "request body" ,required=true) @Valid Map param, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.testInlineAdditionalProperties(requestBody,securityContext); + return delegate.testInlineAdditionalProperties(param,securityContext); } @GET @Path("/jsonFormData") diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApiService.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApiService.java index 778036feca8..7c247f6e72b 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApiService.java @@ -30,17 +30,17 @@ import javax.validation.constraints.*; public abstract class FakeApiService { public abstract Response fakeOuterBooleanSerialize(Boolean body,SecurityContext securityContext) throws NotFoundException; - public abstract Response fakeOuterCompositeSerialize(OuterComposite outerComposite,SecurityContext securityContext) + public abstract Response fakeOuterCompositeSerialize(OuterComposite body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterNumberSerialize(BigDecimal body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterStringSerialize(String body,SecurityContext securityContext) throws NotFoundException; - public abstract Response testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass,SecurityContext securityContext) + public abstract Response testBodyWithFileSchema(FileSchemaTestClass body,SecurityContext securityContext) throws NotFoundException; - public abstract Response testBodyWithQueryParams( @NotNull String query,User user,SecurityContext securityContext) + public abstract Response testBodyWithQueryParams( @NotNull String query,User body,SecurityContext securityContext) throws NotFoundException; - public abstract Response testClientModel(Client client,SecurityContext securityContext) + public abstract Response testClientModel(Client body,SecurityContext securityContext) throws NotFoundException; public abstract Response testEndpointParameters(BigDecimal number,Double _double,String patternWithoutDelimiter,byte[] _byte,Integer integer,Integer int32,Long int64,Float _float,String string,InputStream binaryInputStream, FormDataContentDisposition binaryDetail,Date date,Date dateTime,String password,String paramCallback,SecurityContext securityContext) throws NotFoundException; @@ -48,7 +48,7 @@ public abstract class FakeApiService { throws NotFoundException; public abstract Response testGroupParameters( @NotNull Integer requiredStringGroup, @NotNull Boolean requiredBooleanGroup, @NotNull Long requiredInt64Group,Integer stringGroup,Boolean booleanGroup,Long int64Group,SecurityContext securityContext) throws NotFoundException; - public abstract Response testInlineAdditionalProperties(Map requestBody,SecurityContext securityContext) + public abstract Response testInlineAdditionalProperties(Map param,SecurityContext securityContext) throws NotFoundException; public abstract Response testJsonFormData(String param,String param2,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 362df233829..d4c309bf99f 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,9 +43,9 @@ public class FakeClassnameTestApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) public Response testClassname( - @ApiParam(value = "client model" ,required=true) @Valid Client client, + @ApiParam(value = "client model" ,required=true) @Valid Client body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClassname(client,securityContext); + return delegate.testClassname(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java index 3c6b2c5df3f..f88db59559a 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java @@ -20,6 +20,6 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class FakeClassnameTestApiService { - public abstract Response testClassname(Client client,SecurityContext securityContext) + public abstract Response testClassname(Client body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApi.java index 69d72ed7661..3a37d17a2e0 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApi.java @@ -48,10 +48,10 @@ public class PetApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) public Response addPet( - @ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet pet, + @ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.addPet(pet,securityContext); + return delegate.addPet(body,securityContext); } @DELETE @Path("/{petId}") @@ -142,10 +142,10 @@ public class PetApi { @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) public Response updatePet( - @ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet pet, + @ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.updatePet(pet,securityContext); + return delegate.updatePet(body,securityContext); } @POST @Path("/{petId}") diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApiService.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApiService.java index 9af313fd74a..93a3c1c79dd 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApiService.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/PetApiService.java @@ -22,7 +22,7 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class PetApiService { - public abstract Response addPet(Pet pet,SecurityContext securityContext) + public abstract Response addPet(Pet body,SecurityContext securityContext) throws NotFoundException; public abstract Response deletePet(Long petId,String apiKey,SecurityContext securityContext) throws NotFoundException; @@ -32,7 +32,7 @@ public abstract class PetApiService { throws NotFoundException; public abstract Response getPetById(Long petId,SecurityContext securityContext) throws NotFoundException; - public abstract Response updatePet(Pet pet,SecurityContext securityContext) + public abstract Response updatePet(Pet body,SecurityContext securityContext) throws NotFoundException; public abstract Response updatePetWithForm(Long petId,String name,String status,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApi.java index 9247b5b870b..51bf3f70d1c 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApi.java @@ -86,9 +86,9 @@ public class StoreApi { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) public Response placeOrder( - @ApiParam(value = "order placed for purchasing the pet" ,required=true) @Valid Order order, + @ApiParam(value = "order placed for purchasing the pet" ,required=true) @Valid Order body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.placeOrder(order,securityContext); + return delegate.placeOrder(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApiService.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApiService.java index 3de7ce28752..5df2ddbbe30 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/StoreApiService.java @@ -27,6 +27,6 @@ public abstract class StoreApiService { throws NotFoundException; public abstract Response getOrderById( @Min(1L) @Max(5L)Long orderId,SecurityContext securityContext) throws NotFoundException; - public abstract Response placeOrder(Order order,SecurityContext securityContext) + public abstract Response placeOrder(Order body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApi.java index b006f802547..8c4ab6de3bf 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApi.java @@ -42,10 +42,10 @@ public class UserApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) public Response createUser( - @ApiParam(value = "Created user object" ,required=true) @Valid User user, + @ApiParam(value = "Created user object" ,required=true) @Valid User body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUser(user,securityContext); + return delegate.createUser(body,securityContext); } @POST @Path("/createWithArray") @@ -55,10 +55,10 @@ public class UserApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) public Response createUsersWithArrayInput( - @ApiParam(value = "List of user object" ,required=true) @Valid List user, + @ApiParam(value = "List of user object" ,required=true) @Valid List body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithArrayInput(user,securityContext); + return delegate.createUsersWithArrayInput(body,securityContext); } @POST @Path("/createWithList") @@ -68,10 +68,10 @@ public class UserApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) public Response createUsersWithListInput( - @ApiParam(value = "List of user object" ,required=true) @Valid List user, + @ApiParam(value = "List of user object" ,required=true) @Valid List body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithListInput(user,securityContext); + return delegate.createUsersWithListInput(body,securityContext); } @DELETE @Path("/{username}") @@ -139,9 +139,9 @@ public class UserApi { @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) public Response updateUser( @ApiParam(value = "name that need to be deleted",required=true) @PathParam("username") String username, - @ApiParam(value = "Updated user object" ,required=true) @Valid User user, + @ApiParam(value = "Updated user object" ,required=true) @Valid User body, @Context SecurityContext securityContext) throws NotFoundException { - return delegate.updateUser(username,user,securityContext); + return delegate.updateUser(username,body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApiService.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApiService.java index 490550e9268..74e6c801526 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApiService.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/UserApiService.java @@ -21,11 +21,11 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class UserApiService { - public abstract Response createUser(User user,SecurityContext securityContext) + public abstract Response createUser(User body,SecurityContext securityContext) throws NotFoundException; - public abstract Response createUsersWithArrayInput(List user,SecurityContext securityContext) + public abstract Response createUsersWithArrayInput(List body,SecurityContext securityContext) throws NotFoundException; - public abstract Response createUsersWithListInput(List user,SecurityContext securityContext) + public abstract Response createUsersWithListInput(List body,SecurityContext securityContext) throws NotFoundException; public abstract Response deleteUser(String username,SecurityContext securityContext) throws NotFoundException; @@ -35,6 +35,6 @@ public abstract class UserApiService { throws NotFoundException; public abstract Response logoutUser(SecurityContext securityContext) throws NotFoundException; - public abstract Response updateUser(String username,User user,SecurityContext securityContext) + public abstract Response updateUser(String username,User body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java index e6b4fb1079b..bb6e507d214 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java @@ -21,7 +21,7 @@ import javax.validation.constraints.*; public class AnotherFakeApiServiceImpl extends AnotherFakeApiService { @Override - public Response call123testSpecialTags(Client client, SecurityContext securityContext) + public Response call123testSpecialTags(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index 6abbaa10d2d..1b8233ce2d3 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -35,7 +35,7 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response fakeOuterCompositeSerialize(OuterComposite outerComposite, SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(OuterComposite body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); @@ -53,19 +53,19 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, SecurityContext securityContext) + public Response testBodyWithFileSchema(FileSchemaTestClass body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testBodyWithQueryParams( @NotNull String query, User user, SecurityContext securityContext) + public Response testBodyWithQueryParams( @NotNull String query, User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testClientModel(Client client, SecurityContext securityContext) + public Response testClientModel(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); @@ -89,7 +89,7 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testInlineAdditionalProperties(Map requestBody, SecurityContext securityContext) + public Response testInlineAdditionalProperties(Map param, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java index ffd9bb28674..97e16eac7ac 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java @@ -21,7 +21,7 @@ import javax.validation.constraints.*; public class FakeClassnameTestApiServiceImpl extends FakeClassnameTestApiService { @Override - public Response testClassname(Client client, SecurityContext securityContext) + public Response testClassname(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index 4531f4b4b69..fa3ece8bce5 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -23,7 +23,7 @@ import javax.validation.constraints.*; public class PetApiServiceImpl extends PetApiService { @Override - public Response addPet(Pet pet, SecurityContext securityContext) + public Response addPet(Pet body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); @@ -53,7 +53,7 @@ public class PetApiServiceImpl extends PetApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response updatePet(Pet pet, SecurityContext securityContext) + public Response updatePet(Pet body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 0f7995f6699..79e17d33fb7 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -40,7 +40,7 @@ public class StoreApiServiceImpl extends StoreApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response placeOrder(Order order, SecurityContext securityContext) + public Response placeOrder(Order body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index 0b00d2b627b..c48b136424a 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -22,19 +22,19 @@ import javax.validation.constraints.*; public class UserApiServiceImpl extends UserApiService { @Override - public Response createUser(User user, SecurityContext securityContext) + public Response createUser(User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response createUsersWithArrayInput(List user, SecurityContext securityContext) + public Response createUsersWithArrayInput(List body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response createUsersWithListInput(List user, SecurityContext securityContext) + public Response createUsersWithListInput(List body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); @@ -64,7 +64,7 @@ public class UserApiServiceImpl extends UserApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response updateUser(String username, User user, SecurityContext securityContext) + public Response updateUser(String username, User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 27f7918eae9..c98ac769932 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -62,9 +62,9 @@ public class AnotherFakeApi { @io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) @Valid Client client + public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.call123testSpecialTags(client,securityContext); + return delegate.call123testSpecialTags(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java index fa614bab5a1..1731e691c49 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java @@ -17,5 +17,5 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class AnotherFakeApiService { - public abstract Response call123testSpecialTags(Client client,SecurityContext securityContext) throws NotFoundException; + public abstract Response call123testSpecialTags(Client body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java index 0dc93668755..2953f280ce8 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java @@ -81,10 +81,10 @@ public class FakeApi { @io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid OuterComposite outerComposite + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid OuterComposite body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterCompositeSerialize(outerComposite,securityContext); + return delegate.fakeOuterCompositeSerialize(body,securityContext); } @POST @Path("/outer/number") @@ -117,10 +117,10 @@ public class FakeApi { @io.swagger.annotations.ApiOperation(value = "", notes = "For this test, the body for this request much reference a schema named `File`.", response = Void.class, tags={ "fake", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "" ,required=true) @Valid FileSchemaTestClass fileSchemaTestClass + public Response testBodyWithFileSchema(@ApiParam(value = "" ,required=true) @Valid FileSchemaTestClass body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithFileSchema(fileSchemaTestClass,securityContext); + return delegate.testBodyWithFileSchema(body,securityContext); } @PUT @Path("/body-with-query-params") @@ -130,10 +130,10 @@ public class FakeApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) public Response testBodyWithQueryParams(@ApiParam(value = "",required=true) @QueryParam("query") String query -,@ApiParam(value = "" ,required=true) @Valid User user +,@ApiParam(value = "" ,required=true) @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithQueryParams(query,user,securityContext); + return delegate.testBodyWithQueryParams(query,body,securityContext); } @PATCH @@ -142,10 +142,10 @@ public class FakeApi { @io.swagger.annotations.ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model" ,required=true) @Valid Client client + public Response testClientModel(@ApiParam(value = "client model" ,required=true) @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClientModel(client,securityContext); + return delegate.testClientModel(body,securityContext); } @POST @@ -223,10 +223,10 @@ public class FakeApi { @io.swagger.annotations.ApiOperation(value = "test inline additionalProperties", notes = "", response = Void.class, tags={ "fake", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true) @Valid Map requestBody + public Response testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true) @Valid Map param ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testInlineAdditionalProperties(requestBody,securityContext); + return delegate.testInlineAdditionalProperties(param,securityContext); } @GET @Path("/jsonFormData") diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApiService.java index 5e27c3cb2b3..ef2ef8913ea 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApiService.java @@ -25,15 +25,15 @@ import javax.validation.constraints.*; public abstract class FakeApiService { public abstract Response fakeOuterBooleanSerialize(Boolean body,SecurityContext securityContext) throws NotFoundException; - public abstract Response fakeOuterCompositeSerialize(OuterComposite outerComposite,SecurityContext securityContext) throws NotFoundException; + public abstract Response fakeOuterCompositeSerialize(OuterComposite body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterNumberSerialize(BigDecimal body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterStringSerialize(String body,SecurityContext securityContext) throws NotFoundException; - public abstract Response testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass,SecurityContext securityContext) throws NotFoundException; - public abstract Response testBodyWithQueryParams( @NotNull String query,User user,SecurityContext securityContext) throws NotFoundException; - public abstract Response testClientModel(Client client,SecurityContext securityContext) throws NotFoundException; + public abstract Response testBodyWithFileSchema(FileSchemaTestClass body,SecurityContext securityContext) throws NotFoundException; + public abstract Response testBodyWithQueryParams( @NotNull String query,User body,SecurityContext securityContext) throws NotFoundException; + public abstract Response testClientModel(Client body,SecurityContext securityContext) throws NotFoundException; public abstract Response testEndpointParameters(BigDecimal number,Double _double,String patternWithoutDelimiter,byte[] _byte,Integer integer,Integer int32,Long int64,Float _float,String string,InputStream binaryInputStream, FormDataContentDisposition binaryDetail,Date date,Date dateTime,String password,String paramCallback,SecurityContext securityContext) throws NotFoundException; public abstract Response testEnumParameters(List enumHeaderStringArray,String enumHeaderString,List enumQueryStringArray,String enumQueryString,Integer enumQueryInteger,Double enumQueryDouble,List enumFormStringArray,String enumFormString,SecurityContext securityContext) throws NotFoundException; public abstract Response testGroupParameters( @NotNull Integer requiredStringGroup, @NotNull Boolean requiredBooleanGroup, @NotNull Long requiredInt64Group,Integer stringGroup,Boolean booleanGroup,Long int64Group,SecurityContext securityContext) throws NotFoundException; - public abstract Response testInlineAdditionalProperties(Map requestBody,SecurityContext securityContext) throws NotFoundException; + public abstract Response testInlineAdditionalProperties(Map param,SecurityContext securityContext) throws NotFoundException; public abstract Response testJsonFormData(String param,String param2,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java index a385d98a834..0b102a219ec 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -64,9 +64,9 @@ public class FakeClassnameTags123Api { }, tags={ "fake_classname_tags 123#$%^", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model" ,required=true) @Valid Client client + public Response testClassname(@ApiParam(value = "client model" ,required=true) @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClassname(client,securityContext); + return delegate.testClassname(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java index f76193efd18..c5a227f106e 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123ApiService.java @@ -17,5 +17,5 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class FakeClassnameTags123ApiService { - public abstract Response testClassname(Client client,SecurityContext securityContext) throws NotFoundException; + public abstract Response testClassname(Client body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java index b45eeb3c672..f2dd168ccb5 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java @@ -69,10 +69,10 @@ public class PetApi { }, tags={ "pet", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet pet + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.addPet(pet,securityContext); + return delegate.addPet(body,securityContext); } @DELETE @Path("/pet/{petId}") @@ -164,10 +164,10 @@ public class PetApi { @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet pet + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updatePet(pet,securityContext); + return delegate.updatePet(body,securityContext); } @POST @Path("/pet/{petId}") diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApiService.java index 2f468ca0225..54ad9f5c9a4 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApiService.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApiService.java @@ -19,12 +19,12 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class PetApiService { - public abstract Response addPet(Pet pet,SecurityContext securityContext) throws NotFoundException; + public abstract Response addPet(Pet body,SecurityContext securityContext) throws NotFoundException; public abstract Response deletePet(Long petId,String apiKey,SecurityContext securityContext) throws NotFoundException; public abstract Response findPetsByStatus( @NotNull List status,SecurityContext securityContext) throws NotFoundException; public abstract Response findPetsByTags( @NotNull List tags,SecurityContext securityContext) throws NotFoundException; public abstract Response getPetById(Long petId,SecurityContext securityContext) throws NotFoundException; - public abstract Response updatePet(Pet pet,SecurityContext securityContext) throws NotFoundException; + public abstract Response updatePet(Pet body,SecurityContext securityContext) throws NotFoundException; public abstract Response updatePetWithForm(Long petId,String name,String status,SecurityContext securityContext) throws NotFoundException; public abstract Response uploadFile(Long petId,String additionalMetadata,InputStream fileInputStream, FormDataContentDisposition fileDetail,SecurityContext securityContext) throws NotFoundException; public abstract Response uploadFileWithRequiredFile(Long petId,InputStream requiredFileInputStream, FormDataContentDisposition requiredFileDetail,String additionalMetadata,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java index 558726ede5e..8f964ca9c5c 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java @@ -108,9 +108,9 @@ public class StoreApi { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @Valid Order order + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @Valid Order body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.placeOrder(order,securityContext); + return delegate.placeOrder(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApiService.java index 47440abc132..06b1f031d1d 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApiService.java @@ -21,5 +21,5 @@ public abstract class StoreApiService { public abstract Response deleteOrder(String orderId,SecurityContext securityContext) throws NotFoundException; public abstract Response getInventory(SecurityContext securityContext) throws NotFoundException; public abstract Response getOrderById( @Min(1L) @Max(5L)Long orderId,SecurityContext securityContext) throws NotFoundException; - public abstract Response placeOrder(Order order,SecurityContext securityContext) throws NotFoundException; + public abstract Response placeOrder(Order body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java index 8c1a9384805..9b9ea382431 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java @@ -63,10 +63,10 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object" ,required=true) @Valid User user + public Response createUser(@ApiParam(value = "Created user object" ,required=true) @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUser(user,securityContext); + return delegate.createUser(body,securityContext); } @POST @Path("/createWithArray") @@ -75,10 +75,10 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @Valid List user + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @Valid List body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithArrayInput(user,securityContext); + return delegate.createUsersWithArrayInput(body,securityContext); } @POST @Path("/createWithList") @@ -87,10 +87,10 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @Valid List user + public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @Valid List body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithListInput(user,securityContext); + return delegate.createUsersWithListInput(body,securityContext); } @DELETE @Path("/{username}") @@ -158,9 +158,9 @@ public class UserApi { @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) public Response updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathParam("username") String username -,@ApiParam(value = "Updated user object" ,required=true) @Valid User user +,@ApiParam(value = "Updated user object" ,required=true) @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updateUser(username,user,securityContext); + return delegate.updateUser(username,body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApiService.java index ce18fdbf88c..9b4fe40612c 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApiService.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApiService.java @@ -18,12 +18,12 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class UserApiService { - public abstract Response createUser(User user,SecurityContext securityContext) throws NotFoundException; - public abstract Response createUsersWithArrayInput(List user,SecurityContext securityContext) throws NotFoundException; - public abstract Response createUsersWithListInput(List user,SecurityContext securityContext) throws NotFoundException; + public abstract Response createUser(User body,SecurityContext securityContext) throws NotFoundException; + public abstract Response createUsersWithArrayInput(List body,SecurityContext securityContext) throws NotFoundException; + public abstract Response createUsersWithListInput(List body,SecurityContext securityContext) throws NotFoundException; public abstract Response deleteUser(String username,SecurityContext securityContext) throws NotFoundException; public abstract Response getUserByName(String username,SecurityContext securityContext) throws NotFoundException; public abstract Response loginUser( @NotNull String username, @NotNull String password,SecurityContext securityContext) throws NotFoundException; public abstract Response logoutUser(SecurityContext securityContext) throws NotFoundException; - public abstract Response updateUser(String username,User user,SecurityContext securityContext) throws NotFoundException; + public abstract Response updateUser(String username,User body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java index 05e89018227..a8dc69d4ed9 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java @@ -18,7 +18,7 @@ import javax.validation.constraints.*; public class AnotherFakeApiServiceImpl extends AnotherFakeApiService { @Override - public Response call123testSpecialTags(Client client, SecurityContext securityContext) throws NotFoundException { + public Response call123testSpecialTags(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index 05feddb7545..b56b14848c2 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -30,7 +30,7 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response fakeOuterCompositeSerialize(OuterComposite outerComposite, SecurityContext securityContext) throws NotFoundException { + public Response fakeOuterCompositeSerialize(OuterComposite body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @@ -45,17 +45,17 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, SecurityContext securityContext) throws NotFoundException { + public Response testBodyWithFileSchema(FileSchemaTestClass body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testBodyWithQueryParams( @NotNull String query, User user, SecurityContext securityContext) throws NotFoundException { + public Response testBodyWithQueryParams( @NotNull String query, User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testClientModel(Client client, SecurityContext securityContext) throws NotFoundException { + public Response testClientModel(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @@ -75,7 +75,7 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testInlineAdditionalProperties(Map requestBody, SecurityContext securityContext) throws NotFoundException { + public Response testInlineAdditionalProperties(Map param, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java index 781cbf08c6b..f4171037e14 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeClassnameTags123ApiServiceImpl.java @@ -18,7 +18,7 @@ import javax.validation.constraints.*; public class FakeClassnameTags123ApiServiceImpl extends FakeClassnameTags123ApiService { @Override - public Response testClassname(Client client, SecurityContext securityContext) throws NotFoundException { + public Response testClassname(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index 396eb0e24cd..fdd548f79e5 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -20,7 +20,7 @@ import javax.validation.constraints.*; public class PetApiServiceImpl extends PetApiService { @Override - public Response addPet(Pet pet, SecurityContext securityContext) throws NotFoundException { + public Response addPet(Pet body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @@ -45,7 +45,7 @@ public class PetApiServiceImpl extends PetApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response updatePet(Pet pet, SecurityContext securityContext) throws NotFoundException { + public Response updatePet(Pet body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 18c2ec5ecdd..e0746cb4f93 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -34,7 +34,7 @@ public class StoreApiServiceImpl extends StoreApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response placeOrder(Order order, SecurityContext securityContext) throws NotFoundException { + public Response placeOrder(Order body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index ef7366a6626..3149b83c007 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -19,17 +19,17 @@ import javax.validation.constraints.*; public class UserApiServiceImpl extends UserApiService { @Override - public Response createUser(User user, SecurityContext securityContext) throws NotFoundException { + public Response createUser(User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response createUsersWithArrayInput(List user, SecurityContext securityContext) throws NotFoundException { + public Response createUsersWithArrayInput(List body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response createUsersWithListInput(List user, SecurityContext securityContext) throws NotFoundException { + public Response createUsersWithListInput(List body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @@ -54,7 +54,7 @@ public class UserApiServiceImpl extends UserApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response updateUser(String username, User user, SecurityContext securityContext) throws NotFoundException { + public Response updateUser(String username, User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 09cd0e9c47c..813ee8d7e6c 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -62,9 +62,9 @@ public class AnotherFakeApi { @io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) @Valid Client client + public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.call123testSpecialTags(client,securityContext); + return delegate.call123testSpecialTags(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApiService.java index fa614bab5a1..1731e691c49 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApiService.java @@ -17,5 +17,5 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class AnotherFakeApiService { - public abstract Response call123testSpecialTags(Client client,SecurityContext securityContext) throws NotFoundException; + public abstract Response call123testSpecialTags(Client body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java index 986a66be5a2..7c7a80b287d 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java @@ -82,10 +82,10 @@ public class FakeApi { @io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid OuterComposite outerComposite + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid OuterComposite body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterCompositeSerialize(outerComposite,securityContext); + return delegate.fakeOuterCompositeSerialize(body,securityContext); } @POST @Path("/outer/number") @@ -118,10 +118,10 @@ public class FakeApi { @io.swagger.annotations.ApiOperation(value = "", notes = "For this test, the body for this request much reference a schema named `File`.", response = Void.class, tags={ "fake", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "" ,required=true) @Valid FileSchemaTestClass fileSchemaTestClass + public Response testBodyWithFileSchema(@ApiParam(value = "" ,required=true) @Valid FileSchemaTestClass body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithFileSchema(fileSchemaTestClass,securityContext); + return delegate.testBodyWithFileSchema(body,securityContext); } @PUT @Path("/body-with-query-params") @@ -131,10 +131,10 @@ public class FakeApi { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) public Response testBodyWithQueryParams(@ApiParam(value = "",required=true) @QueryParam("query") String query -,@ApiParam(value = "" ,required=true) @Valid User user +,@ApiParam(value = "" ,required=true) @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testBodyWithQueryParams(query,user,securityContext); + return delegate.testBodyWithQueryParams(query,body,securityContext); } @PATCH @@ -143,10 +143,10 @@ public class FakeApi { @io.swagger.annotations.ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model" ,required=true) @Valid Client client + public Response testClientModel(@ApiParam(value = "client model" ,required=true) @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClientModel(client,securityContext); + return delegate.testClientModel(body,securityContext); } @POST @@ -224,10 +224,10 @@ public class FakeApi { @io.swagger.annotations.ApiOperation(value = "test inline additionalProperties", notes = "", response = Void.class, tags={ "fake", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true) @Valid Map requestBody + public Response testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true) @Valid Map param ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testInlineAdditionalProperties(requestBody,securityContext); + return delegate.testInlineAdditionalProperties(param,securityContext); } @GET @Path("/jsonFormData") diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApiService.java index ba32f715d78..201c55128ce 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApiService.java @@ -26,16 +26,16 @@ import javax.validation.constraints.*; public abstract class FakeApiService { public abstract Response fakeOuterBooleanSerialize(Boolean body,SecurityContext securityContext) throws NotFoundException; - public abstract Response fakeOuterCompositeSerialize(OuterComposite outerComposite,SecurityContext securityContext) throws NotFoundException; + public abstract Response fakeOuterCompositeSerialize(OuterComposite body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterNumberSerialize(BigDecimal body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterStringSerialize(String body,SecurityContext securityContext) throws NotFoundException; - public abstract Response testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass,SecurityContext securityContext) throws NotFoundException; - public abstract Response testBodyWithQueryParams( @NotNull String query,User user,SecurityContext securityContext) throws NotFoundException; - public abstract Response testClientModel(Client client,SecurityContext securityContext) throws NotFoundException; + public abstract Response testBodyWithFileSchema(FileSchemaTestClass body,SecurityContext securityContext) throws NotFoundException; + public abstract Response testBodyWithQueryParams( @NotNull String query,User body,SecurityContext securityContext) throws NotFoundException; + public abstract Response testClientModel(Client body,SecurityContext securityContext) throws NotFoundException; public abstract Response testEndpointParameters(BigDecimal number,Double _double,String patternWithoutDelimiter,byte[] _byte,Integer integer,Integer int32,Long int64,Float _float,String string,InputStream binaryInputStream, FormDataContentDisposition binaryDetail,Date date,Date dateTime,String password,String paramCallback,SecurityContext securityContext) throws NotFoundException; public abstract Response testEnumParameters(List enumHeaderStringArray,String enumHeaderString,List enumQueryStringArray,String enumQueryString,Integer enumQueryInteger,Double enumQueryDouble,List enumFormStringArray,String enumFormString,SecurityContext securityContext) throws NotFoundException; public abstract Response testGroupParameters( @NotNull Integer requiredStringGroup, @NotNull Boolean requiredBooleanGroup, @NotNull Long requiredInt64Group,Integer stringGroup,Boolean booleanGroup,Long int64Group,SecurityContext securityContext) throws NotFoundException; - public abstract Response testInlineAdditionalProperties(Map requestBody,SecurityContext securityContext) throws NotFoundException; + public abstract Response testInlineAdditionalProperties(Map param,SecurityContext securityContext) throws NotFoundException; public abstract Response testJsonFormData(String param,String param2,SecurityContext securityContext) throws NotFoundException; public abstract Response uploadFileWithRequiredFile(Long petId,InputStream requiredFileInputStream, FormDataContentDisposition requiredFileDetail,String additionalMetadata,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index f2552f7d08c..c8b60b4c75b 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -64,9 +64,9 @@ public class FakeClassnameTestApi { }, tags={ "fake_classname_tags 123#$%^", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model" ,required=true) @Valid Client client + public Response testClassname(@ApiParam(value = "client model" ,required=true) @Valid Client body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.testClassname(client,securityContext); + return delegate.testClassname(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java index d5c2d43a43d..cb998c5ff9d 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApiService.java @@ -17,5 +17,5 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class FakeClassnameTestApiService { - public abstract Response testClassname(Client client,SecurityContext securityContext) throws NotFoundException; + public abstract Response testClassname(Client body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java index 6bfaebc7da2..2f6c1736900 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java @@ -69,10 +69,10 @@ public class PetApi { }, tags={ "pet", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet pet + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.addPet(pet,securityContext); + return delegate.addPet(body,securityContext); } @DELETE @Path("/{petId}") @@ -164,10 +164,10 @@ public class PetApi { @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet pet + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) @Valid Pet body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updatePet(pet,securityContext); + return delegate.updatePet(body,securityContext); } @POST @Path("/{petId}") diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApiService.java index ebd89ee5c3a..a51e840bba5 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApiService.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApiService.java @@ -19,12 +19,12 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class PetApiService { - public abstract Response addPet(Pet pet,SecurityContext securityContext) throws NotFoundException; + public abstract Response addPet(Pet body,SecurityContext securityContext) throws NotFoundException; public abstract Response deletePet(Long petId,String apiKey,SecurityContext securityContext) throws NotFoundException; public abstract Response findPetsByStatus( @NotNull List status,SecurityContext securityContext) throws NotFoundException; public abstract Response findPetsByTags( @NotNull List tags,SecurityContext securityContext) throws NotFoundException; public abstract Response getPetById(Long petId,SecurityContext securityContext) throws NotFoundException; - public abstract Response updatePet(Pet pet,SecurityContext securityContext) throws NotFoundException; + public abstract Response updatePet(Pet body,SecurityContext securityContext) throws NotFoundException; public abstract Response updatePetWithForm(Long petId,String name,String status,SecurityContext securityContext) throws NotFoundException; public abstract Response uploadFile(Long petId,String additionalMetadata,InputStream fileInputStream, FormDataContentDisposition fileDetail,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java index 953b54fdc1f..3cc23fcacff 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java @@ -108,9 +108,9 @@ public class StoreApi { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @Valid Order order + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true) @Valid Order body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.placeOrder(order,securityContext); + return delegate.placeOrder(body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApiService.java index 47440abc132..06b1f031d1d 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApiService.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApiService.java @@ -21,5 +21,5 @@ public abstract class StoreApiService { public abstract Response deleteOrder(String orderId,SecurityContext securityContext) throws NotFoundException; public abstract Response getInventory(SecurityContext securityContext) throws NotFoundException; public abstract Response getOrderById( @Min(1L) @Max(5L)Long orderId,SecurityContext securityContext) throws NotFoundException; - public abstract Response placeOrder(Order order,SecurityContext securityContext) throws NotFoundException; + public abstract Response placeOrder(Order body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java index 92191994db5..518bb2b09cc 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java @@ -63,10 +63,10 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object" ,required=true) @Valid User user + public Response createUser(@ApiParam(value = "Created user object" ,required=true) @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUser(user,securityContext); + return delegate.createUser(body,securityContext); } @POST @Path("/createWithArray") @@ -75,10 +75,10 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @Valid List user + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true) @Valid List body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithArrayInput(user,securityContext); + return delegate.createUsersWithArrayInput(body,securityContext); } @POST @Path("/createWithList") @@ -87,10 +87,10 @@ public class UserApi { @io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class, tags={ "user", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @Valid List user + public Response createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true) @Valid List body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.createUsersWithListInput(user,securityContext); + return delegate.createUsersWithListInput(body,securityContext); } @DELETE @Path("/{username}") @@ -158,9 +158,9 @@ public class UserApi { @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) public Response updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathParam("username") String username -,@ApiParam(value = "Updated user object" ,required=true) @Valid User user +,@ApiParam(value = "Updated user object" ,required=true) @Valid User body ,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.updateUser(username,user,securityContext); + return delegate.updateUser(username,body,securityContext); } } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApiService.java index ce18fdbf88c..9b4fe40612c 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApiService.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApiService.java @@ -18,12 +18,12 @@ import javax.ws.rs.core.SecurityContext; import javax.validation.constraints.*; public abstract class UserApiService { - public abstract Response createUser(User user,SecurityContext securityContext) throws NotFoundException; - public abstract Response createUsersWithArrayInput(List user,SecurityContext securityContext) throws NotFoundException; - public abstract Response createUsersWithListInput(List user,SecurityContext securityContext) throws NotFoundException; + public abstract Response createUser(User body,SecurityContext securityContext) throws NotFoundException; + public abstract Response createUsersWithArrayInput(List body,SecurityContext securityContext) throws NotFoundException; + public abstract Response createUsersWithListInput(List body,SecurityContext securityContext) throws NotFoundException; public abstract Response deleteUser(String username,SecurityContext securityContext) throws NotFoundException; public abstract Response getUserByName(String username,SecurityContext securityContext) throws NotFoundException; public abstract Response loginUser( @NotNull String username, @NotNull String password,SecurityContext securityContext) throws NotFoundException; public abstract Response logoutUser(SecurityContext securityContext) throws NotFoundException; - public abstract Response updateUser(String username,User user,SecurityContext securityContext) throws NotFoundException; + public abstract Response updateUser(String username,User body,SecurityContext securityContext) throws NotFoundException; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java index 05e89018227..a8dc69d4ed9 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java @@ -18,7 +18,7 @@ import javax.validation.constraints.*; public class AnotherFakeApiServiceImpl extends AnotherFakeApiService { @Override - public Response call123testSpecialTags(Client client, SecurityContext securityContext) throws NotFoundException { + public Response call123testSpecialTags(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index a8a381657a7..1ee2fee3e18 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -31,7 +31,7 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response fakeOuterCompositeSerialize(OuterComposite outerComposite, SecurityContext securityContext) throws NotFoundException { + public Response fakeOuterCompositeSerialize(OuterComposite body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @@ -46,17 +46,17 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, SecurityContext securityContext) throws NotFoundException { + public Response testBodyWithFileSchema(FileSchemaTestClass body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testBodyWithQueryParams( @NotNull String query, User user, SecurityContext securityContext) throws NotFoundException { + public Response testBodyWithQueryParams( @NotNull String query, User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testClientModel(Client client, SecurityContext securityContext) throws NotFoundException { + public Response testClientModel(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @@ -76,7 +76,7 @@ public class FakeApiServiceImpl extends FakeApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response testInlineAdditionalProperties(Map requestBody, SecurityContext securityContext) throws NotFoundException { + public Response testInlineAdditionalProperties(Map param, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java index 8e5ee58fd96..6cc403a8b40 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeClassnameTestApiServiceImpl.java @@ -18,7 +18,7 @@ import javax.validation.constraints.*; public class FakeClassnameTestApiServiceImpl extends FakeClassnameTestApiService { @Override - public Response testClassname(Client client, SecurityContext securityContext) throws NotFoundException { + public Response testClassname(Client body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java index 366b2e4e133..4fe468d6787 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/PetApiServiceImpl.java @@ -20,7 +20,7 @@ import javax.validation.constraints.*; public class PetApiServiceImpl extends PetApiService { @Override - public Response addPet(Pet pet, SecurityContext securityContext) throws NotFoundException { + public Response addPet(Pet body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @@ -45,7 +45,7 @@ public class PetApiServiceImpl extends PetApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response updatePet(Pet pet, SecurityContext securityContext) throws NotFoundException { + public Response updatePet(Pet body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java index 18c2ec5ecdd..e0746cb4f93 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/StoreApiServiceImpl.java @@ -34,7 +34,7 @@ public class StoreApiServiceImpl extends StoreApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response placeOrder(Order order, SecurityContext securityContext) throws NotFoundException { + public Response placeOrder(Order body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java index ef7366a6626..3149b83c007 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/UserApiServiceImpl.java @@ -19,17 +19,17 @@ import javax.validation.constraints.*; public class UserApiServiceImpl extends UserApiService { @Override - public Response createUser(User user, SecurityContext securityContext) throws NotFoundException { + public Response createUser(User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response createUsersWithArrayInput(List user, SecurityContext securityContext) throws NotFoundException { + public Response createUsersWithArrayInput(List body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response createUsersWithListInput(List user, SecurityContext securityContext) throws NotFoundException { + public Response createUsersWithListInput(List body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @@ -54,7 +54,7 @@ public class UserApiServiceImpl extends UserApiService { return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response updateUser(String username, User user, SecurityContext securityContext) throws NotFoundException { + public Response updateUser(String username, User body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/AnotherFakeApi.php b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/AnotherFakeApi.php index 3e4e09dcf4a..2cecb7133e9 100644 --- a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/AnotherFakeApi.php +++ b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/AnotherFakeApi.php @@ -42,10 +42,10 @@ class AnotherFakeApi extends Controller //not path params validation - if (!isset($input['client'])) { - throw new \InvalidArgumentException('Missing the required parameter $client when calling call123TestSpecialTags'); + if (!isset($input['body'])) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling call123TestSpecialTags'); } - $client = $input['client']; + $body = $input['body']; return response('How about implementing call123TestSpecialTags as a patch method ?'); diff --git a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/FakeApi.php b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/FakeApi.php index fd3261ab546..61d5c4d8283 100644 --- a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/FakeApi.php +++ b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/FakeApi.php @@ -42,10 +42,10 @@ class FakeApi extends Controller //not path params validation - if (!isset($input['client'])) { - throw new \InvalidArgumentException('Missing the required parameter $client when calling testClientModel'); + if (!isset($input['body'])) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling testClientModel'); } - $client = $input['client']; + $body = $input['body']; return response('How about implementing testClientModel as a patch method ?'); @@ -239,10 +239,10 @@ class FakeApi extends Controller //not path params validation - if (!isset($input['file_schema_test_class'])) { - throw new \InvalidArgumentException('Missing the required parameter $file_schema_test_class when calling testBodyWithFileSchema'); + if (!isset($input['body'])) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling testBodyWithFileSchema'); } - $file_schema_test_class = $input['file_schema_test_class']; + $body = $input['body']; return response('How about implementing testBodyWithFileSchema as a put method ?'); @@ -268,10 +268,10 @@ class FakeApi extends Controller } $query = $input['query']; - if (!isset($input['user'])) { - throw new \InvalidArgumentException('Missing the required parameter $user when calling testBodyWithQueryParams'); + if (!isset($input['body'])) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling testBodyWithQueryParams'); } - $user = $input['user']; + $body = $input['body']; return response('How about implementing testBodyWithQueryParams as a put method ?'); @@ -292,10 +292,10 @@ class FakeApi extends Controller //not path params validation - if (!isset($input['request_body'])) { - throw new \InvalidArgumentException('Missing the required parameter $request_body when calling testInlineAdditionalProperties'); + if (!isset($input['param'])) { + throw new \InvalidArgumentException('Missing the required parameter $param when calling testInlineAdditionalProperties'); } - $request_body = $input['request_body']; + $param = $input['param']; return response('How about implementing testInlineAdditionalProperties as a post method ?'); @@ -366,7 +366,7 @@ class FakeApi extends Controller //not path params validation - $outer_composite = $input['outer_composite']; + $body = $input['body']; return response('How about implementing fakeOuterCompositeSerialize as a post method ?'); diff --git a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/FakeClassnameTags123Api.php b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/FakeClassnameTags123Api.php index 5343e922627..8bd0b353460 100644 --- a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/FakeClassnameTags123Api.php +++ b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/FakeClassnameTags123Api.php @@ -42,10 +42,10 @@ class FakeClassnameTags123Api extends Controller //not path params validation - if (!isset($input['client'])) { - throw new \InvalidArgumentException('Missing the required parameter $client when calling testClassname'); + if (!isset($input['body'])) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling testClassname'); } - $client = $input['client']; + $body = $input['body']; return response('How about implementing testClassname as a patch method ?'); diff --git a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/PetApi.php b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/PetApi.php index 1c519f4ea21..56bdbaa97b0 100644 --- a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/PetApi.php +++ b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/PetApi.php @@ -62,10 +62,10 @@ class PetApi extends Controller //not path params validation - if (!isset($input['pet'])) { - throw new \InvalidArgumentException('Missing the required parameter $pet when calling addPet'); + if (!isset($input['body'])) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling addPet'); } - $pet = $input['pet']; + $body = $input['body']; return response('How about implementing addPet as a post method ?'); @@ -86,10 +86,10 @@ class PetApi extends Controller //not path params validation - if (!isset($input['pet'])) { - throw new \InvalidArgumentException('Missing the required parameter $pet when calling updatePet'); + if (!isset($input['body'])) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling updatePet'); } - $pet = $input['pet']; + $body = $input['body']; return response('How about implementing updatePet as a put method ?'); diff --git a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/StoreApi.php b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/StoreApi.php index ce487d1e432..eaa2c370f51 100644 --- a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/StoreApi.php +++ b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/StoreApi.php @@ -61,10 +61,10 @@ class StoreApi extends Controller //not path params validation - if (!isset($input['order'])) { - throw new \InvalidArgumentException('Missing the required parameter $order when calling placeOrder'); + if (!isset($input['body'])) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling placeOrder'); } - $order = $input['order']; + $body = $input['body']; return response('How about implementing placeOrder as a post method ?'); diff --git a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/UserApi.php b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/UserApi.php index 5ba230c05d1..76fc78c54bb 100644 --- a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/UserApi.php +++ b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/UserApi.php @@ -42,10 +42,10 @@ class UserApi extends Controller //not path params validation - if (!isset($input['user'])) { - throw new \InvalidArgumentException('Missing the required parameter $user when calling createUser'); + if (!isset($input['body'])) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling createUser'); } - $user = $input['user']; + $body = $input['body']; return response('How about implementing createUser as a post method ?'); @@ -66,10 +66,10 @@ class UserApi extends Controller //not path params validation - if (!isset($input['user'])) { - throw new \InvalidArgumentException('Missing the required parameter $user when calling createUsersWithArrayInput'); + if (!isset($input['body'])) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling createUsersWithArrayInput'); } - $user = $input['user']; + $body = $input['body']; return response('How about implementing createUsersWithArrayInput as a post method ?'); @@ -90,10 +90,10 @@ class UserApi extends Controller //not path params validation - if (!isset($input['user'])) { - throw new \InvalidArgumentException('Missing the required parameter $user when calling createUsersWithListInput'); + if (!isset($input['body'])) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling createUsersWithListInput'); } - $user = $input['user']; + $body = $input['body']; return response('How about implementing createUsersWithListInput as a post method ?'); diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/PetApiInterface.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/PetApiInterface.php index afe57d5dc3a..19e967e41ed 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/PetApiInterface.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/PetApiInterface.php @@ -66,14 +66,14 @@ interface PetApiInterface * * Add a new pet to the store * - * @param OpenAPI\Server\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param OpenAPI\Server\Model\Pet $body Pet object that needs to be added to the store (required) * @param integer $responseCode The HTTP response code to return * @param array $responseHeaders Additional HTTP headers to return with the response () * * @return void * */ - public function addPet(Pet $pet, &$responseCode, array &$responseHeaders); + public function addPet(Pet $body, &$responseCode, array &$responseHeaders); /** * Operation deletePet @@ -137,14 +137,14 @@ interface PetApiInterface * * Update an existing pet * - * @param OpenAPI\Server\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param OpenAPI\Server\Model\Pet $body Pet object that needs to be added to the store (required) * @param integer $responseCode The HTTP response code to return * @param array $responseHeaders Additional HTTP headers to return with the response () * * @return void * */ - public function updatePet(Pet $pet, &$responseCode, array &$responseHeaders); + public function updatePet(Pet $body, &$responseCode, array &$responseHeaders); /** * Operation updatePetWithForm diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/StoreApiInterface.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/StoreApiInterface.php index 3bf70055933..b0e10f2aa32 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/StoreApiInterface.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/StoreApiInterface.php @@ -97,12 +97,12 @@ interface StoreApiInterface * * Place an order for a pet * - * @param OpenAPI\Server\Model\Order $order order placed for purchasing the pet (required) + * @param OpenAPI\Server\Model\Order $body order placed for purchasing the pet (required) * @param integer $responseCode The HTTP response code to return * @param array $responseHeaders Additional HTTP headers to return with the response () * * @return OpenAPI\Server\Model\Order[] * */ - public function placeOrder(Order $order, &$responseCode, array &$responseHeaders); + public function placeOrder(Order $body, &$responseCode, array &$responseHeaders); } diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/UserApiInterface.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/UserApiInterface.php index a3656be4c73..af38188babf 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/UserApiInterface.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Api/UserApiInterface.php @@ -47,42 +47,42 @@ interface UserApiInterface * * Create user * - * @param OpenAPI\Server\Model\User $user Created user object (required) + * @param OpenAPI\Server\Model\User $body Created user object (required) * @param integer $responseCode The HTTP response code to return * @param array $responseHeaders Additional HTTP headers to return with the response () * * @return void * */ - public function createUser(User $user, &$responseCode, array &$responseHeaders); + public function createUser(User $body, &$responseCode, array &$responseHeaders); /** * Operation createUsersWithArrayInput * * Creates list of users with given input array * - * @param OpenAPI\Server\Model\User[] $user List of user object (required) + * @param OpenAPI\Server\Model\User[] $body List of user object (required) * @param integer $responseCode The HTTP response code to return * @param array $responseHeaders Additional HTTP headers to return with the response () * * @return void * */ - public function createUsersWithArrayInput(array $user, &$responseCode, array &$responseHeaders); + public function createUsersWithArrayInput(array $body, &$responseCode, array &$responseHeaders); /** * Operation createUsersWithListInput * * Creates list of users with given input array * - * @param OpenAPI\Server\Model\User[] $user List of user object (required) + * @param OpenAPI\Server\Model\User[] $body List of user object (required) * @param integer $responseCode The HTTP response code to return * @param array $responseHeaders Additional HTTP headers to return with the response () * * @return void * */ - public function createUsersWithListInput(array $user, &$responseCode, array &$responseHeaders); + public function createUsersWithListInput(array $body, &$responseCode, array &$responseHeaders); /** * Operation deleteUser @@ -146,12 +146,12 @@ interface UserApiInterface * Updated user * * @param string $username name that need to be deleted (required) - * @param OpenAPI\Server\Model\User $user Updated user object (required) + * @param OpenAPI\Server\Model\User $body Updated user object (required) * @param integer $responseCode The HTTP response code to return * @param array $responseHeaders Additional HTTP headers to return with the response () * * @return void * */ - public function updateUser($username, User $user, &$responseCode, array &$responseHeaders); + public function updateUser($username, User $body, &$responseCode, array &$responseHeaders); } diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Controller/PetController.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Controller/PetController.php index 77f2a8be4e0..b9644ba4178 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Controller/PetController.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Controller/PetController.php @@ -82,18 +82,18 @@ class PetController extends Controller $securitypetstore_auth = $request->headers->get('authorization'); // Read out all input parameter values into variables - $pet = $request->getContent(); + $body = $request->getContent(); // Use the default value if no value was provided // Deserialize the input values that needs it - $pet = $this->deserialize($pet, 'OpenAPI\Server\Model\Pet', $inputFormat); + $body = $this->deserialize($body, 'OpenAPI\Server\Model\Pet', $inputFormat); // Validate the input values $asserts = []; $asserts[] = new Assert\NotNull(); $asserts[] = new Assert\Type("OpenAPI\Server\Model\Pet"); - $response = $this->validate($pet, $asserts); + $response = $this->validate($body, $asserts); if ($response instanceof Response) { return $response; } @@ -108,7 +108,7 @@ class PetController extends Controller // Make the call to the business logic $responseCode = 204; $responseHeaders = []; - $result = $handler->addPet($pet, $responseCode, $responseHeaders); + $result = $handler->addPet($body, $responseCode, $responseHeaders); // Find default response message $message = ''; @@ -510,18 +510,18 @@ class PetController extends Controller $securitypetstore_auth = $request->headers->get('authorization'); // Read out all input parameter values into variables - $pet = $request->getContent(); + $body = $request->getContent(); // Use the default value if no value was provided // Deserialize the input values that needs it - $pet = $this->deserialize($pet, 'OpenAPI\Server\Model\Pet', $inputFormat); + $body = $this->deserialize($body, 'OpenAPI\Server\Model\Pet', $inputFormat); // Validate the input values $asserts = []; $asserts[] = new Assert\NotNull(); $asserts[] = new Assert\Type("OpenAPI\Server\Model\Pet"); - $response = $this->validate($pet, $asserts); + $response = $this->validate($body, $asserts); if ($response instanceof Response) { return $response; } @@ -536,7 +536,7 @@ class PetController extends Controller // Make the call to the business logic $responseCode = 204; $responseHeaders = []; - $result = $handler->updatePet($pet, $responseCode, $responseHeaders); + $result = $handler->updatePet($body, $responseCode, $responseHeaders); // Find default response message $message = ''; diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Controller/StoreController.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Controller/StoreController.php index b0aa1383c15..f9a4c9b6540 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Controller/StoreController.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Controller/StoreController.php @@ -305,18 +305,18 @@ class StoreController extends Controller // Handle authentication // Read out all input parameter values into variables - $order = $request->getContent(); + $body = $request->getContent(); // Use the default value if no value was provided // Deserialize the input values that needs it - $order = $this->deserialize($order, 'OpenAPI\Server\Model\Order', $inputFormat); + $body = $this->deserialize($body, 'OpenAPI\Server\Model\Order', $inputFormat); // Validate the input values $asserts = []; $asserts[] = new Assert\NotNull(); $asserts[] = new Assert\Type("OpenAPI\Server\Model\Order"); - $response = $this->validate($order, $asserts); + $response = $this->validate($body, $asserts); if ($response instanceof Response) { return $response; } @@ -329,7 +329,7 @@ class StoreController extends Controller // Make the call to the business logic $responseCode = 200; $responseHeaders = []; - $result = $handler->placeOrder($order, $responseCode, $responseHeaders); + $result = $handler->placeOrder($body, $responseCode, $responseHeaders); // Find default response message $message = 'successful operation'; diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Controller/UserController.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Controller/UserController.php index 9dfa34a6959..f240d652c01 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Controller/UserController.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Controller/UserController.php @@ -78,18 +78,18 @@ class UserController extends Controller // Handle authentication // Read out all input parameter values into variables - $user = $request->getContent(); + $body = $request->getContent(); // Use the default value if no value was provided // Deserialize the input values that needs it - $user = $this->deserialize($user, 'OpenAPI\Server\Model\User', $inputFormat); + $body = $this->deserialize($body, 'OpenAPI\Server\Model\User', $inputFormat); // Validate the input values $asserts = []; $asserts[] = new Assert\NotNull(); $asserts[] = new Assert\Type("OpenAPI\Server\Model\User"); - $response = $this->validate($user, $asserts); + $response = $this->validate($body, $asserts); if ($response instanceof Response) { return $response; } @@ -102,7 +102,7 @@ class UserController extends Controller // Make the call to the business logic $responseCode = 204; $responseHeaders = []; - $result = $handler->createUser($user, $responseCode, $responseHeaders); + $result = $handler->createUser($body, $responseCode, $responseHeaders); // Find default response message $message = 'successful operation'; @@ -160,12 +160,12 @@ class UserController extends Controller // Handle authentication // Read out all input parameter values into variables - $user = $request->getContent(); + $body = $request->getContent(); // Use the default value if no value was provided // Deserialize the input values that needs it - $user = $this->deserialize($user, 'array', $inputFormat); + $body = $this->deserialize($body, 'array', $inputFormat); // Validate the input values $asserts = []; @@ -173,7 +173,7 @@ class UserController extends Controller $asserts[] = new Assert\All([ new Assert\Type("OpenAPI\Server\Model\User") ]); - $response = $this->validate($user, $asserts); + $response = $this->validate($body, $asserts); if ($response instanceof Response) { return $response; } @@ -186,7 +186,7 @@ class UserController extends Controller // Make the call to the business logic $responseCode = 204; $responseHeaders = []; - $result = $handler->createUsersWithArrayInput($user, $responseCode, $responseHeaders); + $result = $handler->createUsersWithArrayInput($body, $responseCode, $responseHeaders); // Find default response message $message = 'successful operation'; @@ -244,12 +244,12 @@ class UserController extends Controller // Handle authentication // Read out all input parameter values into variables - $user = $request->getContent(); + $body = $request->getContent(); // Use the default value if no value was provided // Deserialize the input values that needs it - $user = $this->deserialize($user, 'array', $inputFormat); + $body = $this->deserialize($body, 'array', $inputFormat); // Validate the input values $asserts = []; @@ -257,7 +257,7 @@ class UserController extends Controller $asserts[] = new Assert\All([ new Assert\Type("OpenAPI\Server\Model\User") ]); - $response = $this->validate($user, $asserts); + $response = $this->validate($body, $asserts); if ($response instanceof Response) { return $response; } @@ -270,7 +270,7 @@ class UserController extends Controller // Make the call to the business logic $responseCode = 204; $responseHeaders = []; - $result = $handler->createUsersWithListInput($user, $responseCode, $responseHeaders); + $result = $handler->createUsersWithListInput($body, $responseCode, $responseHeaders); // Find default response message $message = 'successful operation'; @@ -634,13 +634,13 @@ class UserController extends Controller // Handle authentication // Read out all input parameter values into variables - $user = $request->getContent(); + $body = $request->getContent(); // Use the default value if no value was provided // Deserialize the input values that needs it $username = $this->deserialize($username, 'string', 'string'); - $user = $this->deserialize($user, 'OpenAPI\Server\Model\User', $inputFormat); + $body = $this->deserialize($body, 'OpenAPI\Server\Model\User', $inputFormat); // Validate the input values $asserts = []; @@ -653,7 +653,7 @@ class UserController extends Controller $asserts = []; $asserts[] = new Assert\NotNull(); $asserts[] = new Assert\Type("OpenAPI\Server\Model\User"); - $response = $this->validate($user, $asserts); + $response = $this->validate($body, $asserts); if ($response instanceof Response) { return $response; } @@ -666,7 +666,7 @@ class UserController extends Controller // Make the call to the business logic $responseCode = 204; $responseHeaders = []; - $result = $handler->updateUser($username, $user, $responseCode, $responseHeaders); + $result = $handler->updateUser($username, $body, $responseCode, $responseHeaders); // Find default response message $message = ''; diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/README.md b/samples/server/petstore/php-symfony/SymfonyBundle-php/README.md index 6798606b10c..e6d35805bc3 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/README.md +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/README.md @@ -93,7 +93,7 @@ class PetApi implements PetApiInterface // An interface is autogenerated /** * Implementation of PetApiInterface#addPet */ - public function addPet(Pet $pet) + public function addPet(Pet $body) { // Implement the operation ... } diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Resources/docs/Api/PetApiInterface.md b/samples/server/petstore/php-symfony/SymfonyBundle-php/Resources/docs/Api/PetApiInterface.md index 4a0c1cf4bdd..71bf1fb49f2 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Resources/docs/Api/PetApiInterface.md +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Resources/docs/Api/PetApiInterface.md @@ -27,7 +27,7 @@ services: ``` ## **addPet** -> addPet($pet) +> addPet($body) Add a new pet to the store @@ -56,7 +56,7 @@ class PetApi implements PetApiInterface /** * Implementation of PetApiInterface#addPet */ - public function addPet(Pet $pet) + public function addPet(Pet $body) { // Implement the operation ... } @@ -69,7 +69,7 @@ class PetApi implements PetApiInterface Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**OpenAPI\Server\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store | + **body** | [**OpenAPI\Server\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store | ### Return type @@ -334,7 +334,7 @@ Name | Type | Description | Notes [[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) ## **updatePet** -> updatePet($pet) +> updatePet($body) Update an existing pet @@ -363,7 +363,7 @@ class PetApi implements PetApiInterface /** * Implementation of PetApiInterface#updatePet */ - public function updatePet(Pet $pet) + public function updatePet(Pet $body) { // Implement the operation ... } @@ -376,7 +376,7 @@ class PetApi implements PetApiInterface Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pet** | [**OpenAPI\Server\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store | + **body** | [**OpenAPI\Server\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store | ### Return type diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Resources/docs/Api/StoreApiInterface.md b/samples/server/petstore/php-symfony/SymfonyBundle-php/Resources/docs/Api/StoreApiInterface.md index ca5f130bd1d..513e8d5ffc9 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Resources/docs/Api/StoreApiInterface.md +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Resources/docs/Api/StoreApiInterface.md @@ -190,7 +190,7 @@ No authorization required [[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) ## **placeOrder** -> OpenAPI\Server\Model\Order placeOrder($order) +> OpenAPI\Server\Model\Order placeOrder($body) Place an order for a pet @@ -211,7 +211,7 @@ class StoreApi implements StoreApiInterface /** * Implementation of StoreApiInterface#placeOrder */ - public function placeOrder(Order $order) + public function placeOrder(Order $body) { // Implement the operation ... } @@ -224,7 +224,7 @@ class StoreApi implements StoreApiInterface Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | [**OpenAPI\Server\Model\Order**](../Model/Order.md)| order placed for purchasing the pet | + **body** | [**OpenAPI\Server\Model\Order**](../Model/Order.md)| order placed for purchasing the pet | ### Return type diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Resources/docs/Api/UserApiInterface.md b/samples/server/petstore/php-symfony/SymfonyBundle-php/Resources/docs/Api/UserApiInterface.md index e710704c2d9..883abc7d8b2 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Resources/docs/Api/UserApiInterface.md +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Resources/docs/Api/UserApiInterface.md @@ -27,7 +27,7 @@ services: ``` ## **createUser** -> createUser($user) +> createUser($body) Create user @@ -50,7 +50,7 @@ class UserApi implements UserApiInterface /** * Implementation of UserApiInterface#createUser */ - public function createUser(User $user) + public function createUser(User $body) { // Implement the operation ... } @@ -63,7 +63,7 @@ class UserApi implements UserApiInterface Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**OpenAPI\Server\Model\User**](../Model/User.md)| Created user object | + **body** | [**OpenAPI\Server\Model\User**](../Model/User.md)| Created user object | ### Return type @@ -81,7 +81,7 @@ No authorization required [[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** -> createUsersWithArrayInput($user) +> createUsersWithArrayInput($body) Creates list of users with given input array @@ -102,7 +102,7 @@ class UserApi implements UserApiInterface /** * Implementation of UserApiInterface#createUsersWithArrayInput */ - public function createUsersWithArrayInput(array $user) + public function createUsersWithArrayInput(array $body) { // Implement the operation ... } @@ -115,7 +115,7 @@ class UserApi implements UserApiInterface Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**OpenAPI\Server\Model\User**](../Model/array.md)| List of user object | + **body** | [**OpenAPI\Server\Model\User**](../Model/array.md)| List of user object | ### Return type @@ -133,7 +133,7 @@ No authorization required [[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** -> createUsersWithListInput($user) +> createUsersWithListInput($body) Creates list of users with given input array @@ -154,7 +154,7 @@ class UserApi implements UserApiInterface /** * Implementation of UserApiInterface#createUsersWithListInput */ - public function createUsersWithListInput(array $user) + public function createUsersWithListInput(array $body) { // Implement the operation ... } @@ -167,7 +167,7 @@ class UserApi implements UserApiInterface Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**OpenAPI\Server\Model\User**](../Model/array.md)| List of user object | + **body** | [**OpenAPI\Server\Model\User**](../Model/array.md)| List of user object | ### Return type @@ -393,7 +393,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) ## **updateUser** -> updateUser($username, $user) +> updateUser($username, $body) Updated user @@ -416,7 +416,7 @@ class UserApi implements UserApiInterface /** * Implementation of UserApiInterface#updateUser */ - public function updateUser($username, User $user) + public function updateUser($username, User $body) { // Implement the operation ... } @@ -430,7 +430,7 @@ class UserApi implements UserApiInterface Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **string**| name that need to be deleted | - **user** | [**OpenAPI\Server\Model\User**](../Model/User.md)| Updated user object | + **body** | [**OpenAPI\Server\Model\User**](../Model/User.md)| Updated user object | ### Return type diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/api/openapi.yaml b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/api/openapi.yaml index c57a0ffec1e..7c231891b88 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/api/openapi.yaml +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/api/openapi.yaml @@ -42,6 +42,7 @@ paths: summary: Add a new pet to the store tags: - pet + x-codegen-request-body-name: body put: operationId: updatePet requestBody: @@ -71,6 +72,7 @@ paths: summary: Update an existing pet tags: - pet + x-codegen-request-body-name: body /pet/findByStatus: get: description: Multiple status values can be provided with comma separated strings @@ -327,6 +329,7 @@ paths: summary: Place an order for a pet tags: - store + x-codegen-request-body-name: body /store/order/{order_id}: delete: description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -398,6 +401,7 @@ paths: summary: Create user tags: - user + x-codegen-request-body-name: body /user/createWithArray: post: operationId: createUsersWithArrayInput @@ -417,6 +421,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body /user/createWithList: post: operationId: createUsersWithListInput @@ -436,6 +441,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body /user/login: get: operationId: loginUser @@ -565,6 +571,7 @@ paths: summary: Updated user tags: - user + x-codegen-request-body-name: body /fake_classname_test: patch: description: To test class name in snake case @@ -588,6 +595,7 @@ paths: summary: To test class name in snake case tags: - fake_classname_tags 123#$%^ + x-codegen-request-body-name: body /fake: get: description: To test enum parameters @@ -700,6 +708,7 @@ paths: summary: To test "client" model tags: - fake + x-codegen-request-body-name: body post: description: | Fake endpoint for testing various parameters @@ -818,6 +827,7 @@ paths: description: Output number tags: - fake + x-codegen-request-body-name: body /fake/outer/string: post: description: Test serialization of outer string types @@ -838,6 +848,7 @@ paths: description: Output string tags: - fake + x-codegen-request-body-name: body /fake/outer/boolean: post: description: Test serialization of outer boolean types @@ -858,6 +869,7 @@ paths: description: Output boolean tags: - fake + x-codegen-request-body-name: body /fake/outer/composite: post: description: Test serialization of object with outer number type @@ -878,6 +890,7 @@ paths: description: Output composite tags: - fake + x-codegen-request-body-name: body /fake/jsonFormData: get: operationId: testJsonFormData @@ -922,6 +935,7 @@ paths: summary: test inline additionalProperties tags: - fake + x-codegen-request-body-name: param /fake/body-with-query-params: put: operationId: testBodyWithQueryParams @@ -943,6 +957,7 @@ paths: description: Success tags: - fake + x-codegen-request-body-name: body /another-fake/dummy: patch: description: To test special tags @@ -964,6 +979,7 @@ paths: summary: To test special tags tags: - $another-fake? + x-codegen-request-body-name: body components: schemas: Order: diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/examples/server_lib/server.rs b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/examples/server_lib/server.rs index 1f1d1e00a24..4dc7ac8c862 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/examples/server_lib/server.rs +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/examples/server_lib/server.rs @@ -60,9 +60,9 @@ impl Server { impl Api for Server where C: Has{ /// To test special tags - fn test_special_tags(&self, client: models::Client, context: &C) -> Box> { + fn test_special_tags(&self, body: models::Client, context: &C) -> Box> { let context = context.clone(); - println!("test_special_tags({:?}) - X-Span-ID: {:?}", client, context.get().0.clone()); + println!("test_special_tags({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } @@ -74,9 +74,9 @@ impl Api for Server where C: Has{ } - fn fake_outer_composite_serialize(&self, outer_composite: Option, context: &C) -> Box> { + fn fake_outer_composite_serialize(&self, body: Option, context: &C) -> Box> { let context = context.clone(); - println!("fake_outer_composite_serialize({:?}) - X-Span-ID: {:?}", outer_composite, context.get().0.clone()); + println!("fake_outer_composite_serialize({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } @@ -95,16 +95,16 @@ impl Api for Server where C: Has{ } - fn test_body_with_query_params(&self, query: String, user: models::User, context: &C) -> Box> { + fn test_body_with_query_params(&self, query: String, body: models::User, context: &C) -> Box> { let context = context.clone(); - println!("test_body_with_query_params(\"{}\", {:?}) - X-Span-ID: {:?}", query, user, context.get().0.clone()); + println!("test_body_with_query_params(\"{}\", {:?}) - X-Span-ID: {:?}", query, body, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } /// To test \"client\" model - fn test_client_model(&self, client: models::Client, context: &C) -> Box> { + fn test_client_model(&self, body: models::Client, context: &C) -> Box> { let context = context.clone(); - println!("test_client_model({:?}) - X-Span-ID: {:?}", client, context.get().0.clone()); + println!("test_client_model({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } @@ -123,9 +123,9 @@ impl Api for Server where C: Has{ } /// test inline additionalProperties - fn test_inline_additional_properties(&self, request_body: HashMap, context: &C) -> Box> { + fn test_inline_additional_properties(&self, param: HashMap, context: &C) -> Box> { let context = context.clone(); - println!("test_inline_additional_properties({:?}) - X-Span-ID: {:?}", request_body, context.get().0.clone()); + println!("test_inline_additional_properties({:?}) - X-Span-ID: {:?}", param, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } @@ -137,16 +137,16 @@ impl Api for Server where C: Has{ } /// To test class name in snake case - fn test_classname(&self, client: models::Client, context: &C) -> Box> { + fn test_classname(&self, body: models::Client, context: &C) -> Box> { let context = context.clone(); - println!("test_classname({:?}) - X-Span-ID: {:?}", client, context.get().0.clone()); + println!("test_classname({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } /// Add a new pet to the store - fn add_pet(&self, pet: models::Pet, context: &C) -> Box> { + fn add_pet(&self, body: models::Pet, context: &C) -> Box> { let context = context.clone(); - println!("add_pet({:?}) - X-Span-ID: {:?}", pet, context.get().0.clone()); + println!("add_pet({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } @@ -179,9 +179,9 @@ impl Api for Server where C: Has{ } /// Update an existing pet - fn update_pet(&self, pet: models::Pet, context: &C) -> Box> { + fn update_pet(&self, body: models::Pet, context: &C) -> Box> { let context = context.clone(); - println!("update_pet({:?}) - X-Span-ID: {:?}", pet, context.get().0.clone()); + println!("update_pet({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } @@ -221,30 +221,30 @@ impl Api for Server where C: Has{ } /// Place an order for a pet - fn place_order(&self, order: models::Order, context: &C) -> Box> { + fn place_order(&self, body: models::Order, context: &C) -> Box> { let context = context.clone(); - println!("place_order({:?}) - X-Span-ID: {:?}", order, context.get().0.clone()); + println!("place_order({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } /// Create user - fn create_user(&self, user: models::User, context: &C) -> Box> { + fn create_user(&self, body: models::User, context: &C) -> Box> { let context = context.clone(); - println!("create_user({:?}) - X-Span-ID: {:?}", user, context.get().0.clone()); + println!("create_user({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } /// Creates list of users with given input array - fn create_users_with_array_input(&self, user: &Vec, context: &C) -> Box> { + fn create_users_with_array_input(&self, body: &Vec, context: &C) -> Box> { let context = context.clone(); - println!("create_users_with_array_input({:?}) - X-Span-ID: {:?}", user, context.get().0.clone()); + println!("create_users_with_array_input({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } /// Creates list of users with given input array - fn create_users_with_list_input(&self, user: &Vec, context: &C) -> Box> { + fn create_users_with_list_input(&self, body: &Vec, context: &C) -> Box> { let context = context.clone(); - println!("create_users_with_list_input({:?}) - X-Span-ID: {:?}", user, context.get().0.clone()); + println!("create_users_with_list_input({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } @@ -277,9 +277,9 @@ impl Api for Server where C: Has{ } /// Updated user - fn update_user(&self, username: String, user: models::User, context: &C) -> Box> { + fn update_user(&self, username: String, body: models::User, context: &C) -> Box> { let context = context.clone(); - println!("update_user(\"{}\", {:?}) - X-Span-ID: {:?}", username, user, context.get().0.clone()); + println!("update_user(\"{}\", {:?}) - X-Span-ID: {:?}", username, body, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/client/mod.rs b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/client/mod.rs index 3f873a33749..420e3935f4f 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/client/mod.rs +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/client/mod.rs @@ -276,7 +276,7 @@ impl Api for Client where F: Future + 'static, C: Has + Has>{ - fn test_special_tags(&self, param_client: models::Client, context: &C) -> Box> { + fn test_special_tags(&self, param_body: models::Client, context: &C) -> Box> { let uri = format!( @@ -294,7 +294,7 @@ impl Api for Client where // Body parameter - let body = serde_json::to_string(¶m_client).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); request.set_body(body.into_bytes()); @@ -428,7 +428,7 @@ if let Some(body) = body { } - fn fake_outer_composite_serialize(&self, param_outer_composite: Option, context: &C) -> Box> { + fn fake_outer_composite_serialize(&self, param_body: Option, context: &C) -> Box> { let uri = format!( @@ -443,7 +443,7 @@ if let Some(body) = body { let mut request = hyper::Request::new(hyper::Method::Post, uri); - let body = param_outer_composite.map(|ref body| { + let body = param_body.map(|ref body| { serde_json::to_string(body).expect("impossible to fail to serialize") }); @@ -653,7 +653,7 @@ if let Some(body) = body { } - fn test_body_with_query_params(&self, param_query: String, param_user: models::User, context: &C) -> Box> { + fn test_body_with_query_params(&self, param_query: String, param_body: models::User, context: &C) -> Box> { // Query parameters let query_query = format!("query={query}&", query=param_query.to_string()); @@ -673,7 +673,7 @@ if let Some(body) = body { let mut request = hyper::Request::new(hyper::Method::Put, uri); - let body = serde_json::to_string(¶m_user).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); request.set_body(body.into_bytes()); @@ -720,7 +720,7 @@ if let Some(body) = body { } - fn test_client_model(&self, param_client: models::Client, context: &C) -> Box> { + fn test_client_model(&self, param_body: models::Client, context: &C) -> Box> { let uri = format!( @@ -736,7 +736,7 @@ if let Some(body) = body { let mut request = hyper::Request::new(hyper::Method::Patch, uri); - let body = serde_json::to_string(¶m_client).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); request.set_body(body.into_bytes()); @@ -972,7 +972,7 @@ if let Some(body) = body { } - fn test_inline_additional_properties(&self, param_request_body: HashMap, context: &C) -> Box> { + fn test_inline_additional_properties(&self, param_param: HashMap, context: &C) -> Box> { let uri = format!( @@ -988,7 +988,7 @@ if let Some(body) = body { let mut request = hyper::Request::new(hyper::Method::Post, uri); - let body = serde_json::to_string(¶m_request_body).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_param).expect("impossible to fail to serialize"); request.set_body(body.into_bytes()); @@ -1099,7 +1099,7 @@ if let Some(body) = body { } - fn test_classname(&self, param_client: models::Client, context: &C) -> Box> { + fn test_classname(&self, param_body: models::Client, context: &C) -> Box> { let uri = format!( @@ -1117,7 +1117,7 @@ if let Some(body) = body { // Body parameter - let body = serde_json::to_string(¶m_client).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); request.set_body(body.into_bytes()); @@ -1174,7 +1174,7 @@ if let Some(body) = body { } - fn add_pet(&self, param_pet: models::Pet, context: &C) -> Box> { + fn add_pet(&self, param_body: models::Pet, context: &C) -> Box> { let uri = format!( @@ -1192,7 +1192,7 @@ if let Some(body) = body { // Body parameter - let body = serde_xml_rs::to_string(¶m_pet).expect("impossible to fail to serialize"); + let body = serde_xml_rs::to_string(¶m_body).expect("impossible to fail to serialize"); request.set_body(body.into_bytes()); @@ -1551,7 +1551,7 @@ if let Some(body) = body { } - fn update_pet(&self, param_pet: models::Pet, context: &C) -> Box> { + fn update_pet(&self, param_body: models::Pet, context: &C) -> Box> { let uri = format!( @@ -1567,7 +1567,7 @@ if let Some(body) = body { let mut request = hyper::Request::new(hyper::Method::Put, uri); - let body = serde_xml_rs::to_string(¶m_pet).expect("impossible to fail to serialize"); + let body = serde_xml_rs::to_string(¶m_body).expect("impossible to fail to serialize"); request.set_body(body.into_bytes()); @@ -1990,7 +1990,7 @@ if let Some(body) = body { } - fn place_order(&self, param_order: models::Order, context: &C) -> Box> { + fn place_order(&self, param_body: models::Order, context: &C) -> Box> { let uri = format!( @@ -2006,7 +2006,7 @@ if let Some(body) = body { let mut request = hyper::Request::new(hyper::Method::Post, uri); - let body = serde_json::to_string(¶m_order).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); request.set_body(body.into_bytes()); @@ -2074,7 +2074,7 @@ if let Some(body) = body { } - fn create_user(&self, param_user: models::User, context: &C) -> Box> { + fn create_user(&self, param_body: models::User, context: &C) -> Box> { let uri = format!( @@ -2092,7 +2092,7 @@ if let Some(body) = body { // Body parameter - let body = serde_json::to_string(¶m_user).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); request.set_body(body.into_bytes()); @@ -2139,7 +2139,7 @@ if let Some(body) = body { } - fn create_users_with_array_input(&self, param_user: &Vec, context: &C) -> Box> { + fn create_users_with_array_input(&self, param_body: &Vec, context: &C) -> Box> { let uri = format!( @@ -2155,7 +2155,7 @@ if let Some(body) = body { let mut request = hyper::Request::new(hyper::Method::Post, uri); - let body = serde_json::to_string(¶m_user).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); request.set_body(body.into_bytes()); @@ -2202,7 +2202,7 @@ if let Some(body) = body { } - fn create_users_with_list_input(&self, param_user: &Vec, context: &C) -> Box> { + fn create_users_with_list_input(&self, param_body: &Vec, context: &C) -> Box> { let uri = format!( @@ -2218,7 +2218,7 @@ if let Some(body) = body { let mut request = hyper::Request::new(hyper::Method::Post, uri); - let body = serde_json::to_string(¶m_user).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); request.set_body(body.into_bytes()); @@ -2569,7 +2569,7 @@ if let Some(body) = body { } - fn update_user(&self, param_username: String, param_user: models::User, context: &C) -> Box> { + fn update_user(&self, param_username: String, param_body: models::User, context: &C) -> Box> { let uri = format!( @@ -2585,7 +2585,7 @@ if let Some(body) = body { let mut request = hyper::Request::new(hyper::Method::Put, uri); - let body = serde_json::to_string(¶m_user).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); request.set_body(body.into_bytes()); diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/lib.rs b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/lib.rs index b1fb3e7f5a8..2f2b4878e73 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/lib.rs +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/lib.rs @@ -270,13 +270,13 @@ pub enum UpdateUserResponse { pub trait Api { /// To test special tags - fn test_special_tags(&self, client: models::Client, context: &C) -> Box>; + fn test_special_tags(&self, body: models::Client, context: &C) -> Box>; fn fake_outer_boolean_serialize(&self, body: Option, context: &C) -> Box>; - fn fake_outer_composite_serialize(&self, outer_composite: Option, context: &C) -> Box>; + fn fake_outer_composite_serialize(&self, body: Option, context: &C) -> Box>; fn fake_outer_number_serialize(&self, body: Option, context: &C) -> Box>; @@ -285,10 +285,10 @@ pub trait Api { fn fake_outer_string_serialize(&self, body: Option, context: &C) -> Box>; - fn test_body_with_query_params(&self, query: String, user: models::User, context: &C) -> Box>; + fn test_body_with_query_params(&self, query: String, body: models::User, context: &C) -> Box>; /// To test \"client\" model - fn test_client_model(&self, client: models::Client, context: &C) -> Box>; + fn test_client_model(&self, body: models::Client, context: &C) -> Box>; /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 fn test_endpoint_parameters(&self, number: f64, double: f64, pattern_without_delimiter: String, byte: swagger::ByteArray, integer: Option, int32: Option, int64: Option, float: Option, string: Option, binary: Option, date: Option>, date_time: Option>, password: Option, callback: Option, context: &C) -> Box>; @@ -297,16 +297,16 @@ pub trait Api { fn test_enum_parameters(&self, enum_header_string_array: Option<&Vec>, enum_header_string: Option, enum_query_string_array: Option<&Vec>, enum_query_string: Option, enum_query_integer: Option, enum_query_double: Option, enum_form_string: Option, context: &C) -> Box>; /// test inline additionalProperties - fn test_inline_additional_properties(&self, request_body: HashMap, context: &C) -> Box>; + fn test_inline_additional_properties(&self, param: HashMap, context: &C) -> Box>; /// test json serialization of form data fn test_json_form_data(&self, param: String, param2: String, context: &C) -> Box>; /// To test class name in snake case - fn test_classname(&self, client: models::Client, context: &C) -> Box>; + fn test_classname(&self, body: models::Client, context: &C) -> Box>; /// Add a new pet to the store - fn add_pet(&self, pet: models::Pet, context: &C) -> Box>; + fn add_pet(&self, body: models::Pet, context: &C) -> Box>; /// Deletes a pet fn delete_pet(&self, pet_id: i64, api_key: Option, context: &C) -> Box>; @@ -321,7 +321,7 @@ pub trait Api { fn get_pet_by_id(&self, pet_id: i64, context: &C) -> Box>; /// Update an existing pet - fn update_pet(&self, pet: models::Pet, context: &C) -> Box>; + fn update_pet(&self, body: models::Pet, context: &C) -> Box>; /// Updates a pet in the store with form data fn update_pet_with_form(&self, pet_id: i64, name: Option, status: Option, context: &C) -> Box>; @@ -339,16 +339,16 @@ pub trait Api { fn get_order_by_id(&self, order_id: i64, context: &C) -> Box>; /// Place an order for a pet - fn place_order(&self, order: models::Order, context: &C) -> Box>; + fn place_order(&self, body: models::Order, context: &C) -> Box>; /// Create user - fn create_user(&self, user: models::User, context: &C) -> Box>; + fn create_user(&self, body: models::User, context: &C) -> Box>; /// Creates list of users with given input array - fn create_users_with_array_input(&self, user: &Vec, context: &C) -> Box>; + fn create_users_with_array_input(&self, body: &Vec, context: &C) -> Box>; /// Creates list of users with given input array - fn create_users_with_list_input(&self, user: &Vec, context: &C) -> Box>; + fn create_users_with_list_input(&self, body: &Vec, context: &C) -> Box>; /// Delete user fn delete_user(&self, username: String, context: &C) -> Box>; @@ -363,7 +363,7 @@ pub trait Api { fn logout_user(&self, context: &C) -> Box>; /// Updated user - fn update_user(&self, username: String, user: models::User, context: &C) -> Box>; + fn update_user(&self, username: String, body: models::User, context: &C) -> Box>; } @@ -371,13 +371,13 @@ pub trait Api { pub trait ApiNoContext { /// To test special tags - fn test_special_tags(&self, client: models::Client) -> Box>; + fn test_special_tags(&self, body: models::Client) -> Box>; fn fake_outer_boolean_serialize(&self, body: Option) -> Box>; - fn fake_outer_composite_serialize(&self, outer_composite: Option) -> Box>; + fn fake_outer_composite_serialize(&self, body: Option) -> Box>; fn fake_outer_number_serialize(&self, body: Option) -> Box>; @@ -386,10 +386,10 @@ pub trait ApiNoContext { fn fake_outer_string_serialize(&self, body: Option) -> Box>; - fn test_body_with_query_params(&self, query: String, user: models::User) -> Box>; + fn test_body_with_query_params(&self, query: String, body: models::User) -> Box>; /// To test \"client\" model - fn test_client_model(&self, client: models::Client) -> Box>; + fn test_client_model(&self, body: models::Client) -> Box>; /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 fn test_endpoint_parameters(&self, number: f64, double: f64, pattern_without_delimiter: String, byte: swagger::ByteArray, integer: Option, int32: Option, int64: Option, float: Option, string: Option, binary: Option, date: Option>, date_time: Option>, password: Option, callback: Option) -> Box>; @@ -398,16 +398,16 @@ pub trait ApiNoContext { fn test_enum_parameters(&self, enum_header_string_array: Option<&Vec>, enum_header_string: Option, enum_query_string_array: Option<&Vec>, enum_query_string: Option, enum_query_integer: Option, enum_query_double: Option, enum_form_string: Option) -> Box>; /// test inline additionalProperties - fn test_inline_additional_properties(&self, request_body: HashMap) -> Box>; + fn test_inline_additional_properties(&self, param: HashMap) -> Box>; /// test json serialization of form data fn test_json_form_data(&self, param: String, param2: String) -> Box>; /// To test class name in snake case - fn test_classname(&self, client: models::Client) -> Box>; + fn test_classname(&self, body: models::Client) -> Box>; /// Add a new pet to the store - fn add_pet(&self, pet: models::Pet) -> Box>; + fn add_pet(&self, body: models::Pet) -> Box>; /// Deletes a pet fn delete_pet(&self, pet_id: i64, api_key: Option) -> Box>; @@ -422,7 +422,7 @@ pub trait ApiNoContext { fn get_pet_by_id(&self, pet_id: i64) -> Box>; /// Update an existing pet - fn update_pet(&self, pet: models::Pet) -> Box>; + fn update_pet(&self, body: models::Pet) -> Box>; /// Updates a pet in the store with form data fn update_pet_with_form(&self, pet_id: i64, name: Option, status: Option) -> Box>; @@ -440,16 +440,16 @@ pub trait ApiNoContext { fn get_order_by_id(&self, order_id: i64) -> Box>; /// Place an order for a pet - fn place_order(&self, order: models::Order) -> Box>; + fn place_order(&self, body: models::Order) -> Box>; /// Create user - fn create_user(&self, user: models::User) -> Box>; + fn create_user(&self, body: models::User) -> Box>; /// Creates list of users with given input array - fn create_users_with_array_input(&self, user: &Vec) -> Box>; + fn create_users_with_array_input(&self, body: &Vec) -> Box>; /// Creates list of users with given input array - fn create_users_with_list_input(&self, user: &Vec) -> Box>; + fn create_users_with_list_input(&self, body: &Vec) -> Box>; /// Delete user fn delete_user(&self, username: String) -> Box>; @@ -464,7 +464,7 @@ pub trait ApiNoContext { fn logout_user(&self) -> Box>; /// Updated user - fn update_user(&self, username: String, user: models::User) -> Box>; + fn update_user(&self, username: String, body: models::User) -> Box>; } @@ -483,8 +483,8 @@ impl<'a, T: Api + Sized, C> ContextWrapperExt<'a, C> for T { impl<'a, T: Api, C> ApiNoContext for ContextWrapper<'a, T, C> { /// To test special tags - fn test_special_tags(&self, client: models::Client) -> Box> { - self.api().test_special_tags(client, &self.context()) + fn test_special_tags(&self, body: models::Client) -> Box> { + self.api().test_special_tags(body, &self.context()) } @@ -493,8 +493,8 @@ impl<'a, T: Api, C> ApiNoContext for ContextWrapper<'a, T, C> { } - fn fake_outer_composite_serialize(&self, outer_composite: Option) -> Box> { - self.api().fake_outer_composite_serialize(outer_composite, &self.context()) + fn fake_outer_composite_serialize(&self, body: Option) -> Box> { + self.api().fake_outer_composite_serialize(body, &self.context()) } @@ -508,13 +508,13 @@ impl<'a, T: Api, C> ApiNoContext for ContextWrapper<'a, T, C> { } - fn test_body_with_query_params(&self, query: String, user: models::User) -> Box> { - self.api().test_body_with_query_params(query, user, &self.context()) + fn test_body_with_query_params(&self, query: String, body: models::User) -> Box> { + self.api().test_body_with_query_params(query, body, &self.context()) } /// To test \"client\" model - fn test_client_model(&self, client: models::Client) -> Box> { - self.api().test_client_model(client, &self.context()) + fn test_client_model(&self, body: models::Client) -> Box> { + self.api().test_client_model(body, &self.context()) } /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -528,8 +528,8 @@ impl<'a, T: Api, C> ApiNoContext for ContextWrapper<'a, T, C> { } /// test inline additionalProperties - fn test_inline_additional_properties(&self, request_body: HashMap) -> Box> { - self.api().test_inline_additional_properties(request_body, &self.context()) + fn test_inline_additional_properties(&self, param: HashMap) -> Box> { + self.api().test_inline_additional_properties(param, &self.context()) } /// test json serialization of form data @@ -538,13 +538,13 @@ impl<'a, T: Api, C> ApiNoContext for ContextWrapper<'a, T, C> { } /// To test class name in snake case - fn test_classname(&self, client: models::Client) -> Box> { - self.api().test_classname(client, &self.context()) + fn test_classname(&self, body: models::Client) -> Box> { + self.api().test_classname(body, &self.context()) } /// Add a new pet to the store - fn add_pet(&self, pet: models::Pet) -> Box> { - self.api().add_pet(pet, &self.context()) + fn add_pet(&self, body: models::Pet) -> Box> { + self.api().add_pet(body, &self.context()) } /// Deletes a pet @@ -568,8 +568,8 @@ impl<'a, T: Api, C> ApiNoContext for ContextWrapper<'a, T, C> { } /// Update an existing pet - fn update_pet(&self, pet: models::Pet) -> Box> { - self.api().update_pet(pet, &self.context()) + fn update_pet(&self, body: models::Pet) -> Box> { + self.api().update_pet(body, &self.context()) } /// Updates a pet in the store with form data @@ -598,23 +598,23 @@ impl<'a, T: Api, C> ApiNoContext for ContextWrapper<'a, T, C> { } /// Place an order for a pet - fn place_order(&self, order: models::Order) -> Box> { - self.api().place_order(order, &self.context()) + fn place_order(&self, body: models::Order) -> Box> { + self.api().place_order(body, &self.context()) } /// Create user - fn create_user(&self, user: models::User) -> Box> { - self.api().create_user(user, &self.context()) + fn create_user(&self, body: models::User) -> Box> { + self.api().create_user(body, &self.context()) } /// Creates list of users with given input array - fn create_users_with_array_input(&self, user: &Vec) -> Box> { - self.api().create_users_with_array_input(user, &self.context()) + fn create_users_with_array_input(&self, body: &Vec) -> Box> { + self.api().create_users_with_array_input(body, &self.context()) } /// Creates list of users with given input array - fn create_users_with_list_input(&self, user: &Vec) -> Box> { - self.api().create_users_with_list_input(user, &self.context()) + fn create_users_with_list_input(&self, body: &Vec) -> Box> { + self.api().create_users_with_list_input(body, &self.context()) } /// Delete user @@ -638,8 +638,8 @@ impl<'a, T: Api, C> ApiNoContext for ContextWrapper<'a, T, C> { } /// Updated user - fn update_user(&self, username: String, user: models::User) -> Box> { - self.api().update_user(username, user, &self.context()) + fn update_user(&self, username: String, body: models::User) -> Box> { + self.api().update_user(username, body, &self.context()) } } diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/server/mod.rs b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/server/mod.rs index ca064ca7ef0..30bd11d25f6 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/server/mod.rs +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/server/mod.rs @@ -226,7 +226,7 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_client: Option = if !body.is_empty() { + let param_body: Option = if !body.is_empty() { let deserializer = &mut serde_json::Deserializer::from_slice(&*body); @@ -234,20 +234,20 @@ where warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_client) => param_client, - Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter Client - doesn't match schema: {}", e)))), + Ok(param_body) => param_body, + Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter body - doesn't match schema: {}", e)))), } } else { None }; - let param_client = match param_client { - Some(param_client) => param_client, - None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter Client"))), + let param_body = match param_body { + Some(param_body) => param_body, + None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter body"))), }; - Box::new(api_impl.test_special_tags(param_client, &context) + Box::new(api_impl.test_special_tags(param_body, &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -288,7 +288,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter Client: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter body: {}", e)))), } }) ) as Box> @@ -397,7 +397,7 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_outer_composite: Option = if !body.is_empty() { + let param_body: Option = if !body.is_empty() { let deserializer = &mut serde_json::Deserializer::from_slice(&*body); @@ -405,7 +405,7 @@ where warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_outer_composite) => param_outer_composite, + Ok(param_body) => param_body, Err(_) => None, } @@ -415,7 +415,7 @@ where }; - Box::new(api_impl.fake_outer_composite_serialize(param_outer_composite, &context) + Box::new(api_impl.fake_outer_composite_serialize(param_body, &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -456,7 +456,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter OuterComposite: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter body: {}", e)))), } }) ) as Box> @@ -662,7 +662,7 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_user: Option = if !body.is_empty() { + let param_body: Option = if !body.is_empty() { let deserializer = &mut serde_json::Deserializer::from_slice(&*body); @@ -670,20 +670,20 @@ where warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_user) => param_user, - Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter User - doesn't match schema: {}", e)))), + Ok(param_body) => param_body, + Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter body - doesn't match schema: {}", e)))), } } else { None }; - let param_user = match param_user { - Some(param_user) => param_user, - None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter User"))), + let param_body = match param_body { + Some(param_body) => param_body, + None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter body"))), }; - Box::new(api_impl.test_body_with_query_params(param_query, param_user, &context) + Box::new(api_impl.test_body_with_query_params(param_query, param_body, &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -716,7 +716,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter User: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter body: {}", e)))), } }) ) as Box> @@ -741,7 +741,7 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_client: Option = if !body.is_empty() { + let param_body: Option = if !body.is_empty() { let deserializer = &mut serde_json::Deserializer::from_slice(&*body); @@ -749,20 +749,20 @@ where warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_client) => param_client, - Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter Client - doesn't match schema: {}", e)))), + Ok(param_body) => param_body, + Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter body - doesn't match schema: {}", e)))), } } else { None }; - let param_client = match param_client { - Some(param_client) => param_client, - None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter Client"))), + let param_body = match param_body { + Some(param_body) => param_body, + None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter body"))), }; - Box::new(api_impl.test_client_model(param_client, &context) + Box::new(api_impl.test_client_model(param_body, &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -803,7 +803,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter Client: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter body: {}", e)))), } }) ) as Box> @@ -994,7 +994,7 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_request_body: Option> = if !body.is_empty() { + let param_param: Option> = if !body.is_empty() { let deserializer = &mut serde_json::Deserializer::from_slice(&*body); @@ -1002,20 +1002,20 @@ where warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_request_body) => param_request_body, - Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter request_body - doesn't match schema: {}", e)))), + Ok(param_param) => param_param, + Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter param - doesn't match schema: {}", e)))), } } else { None }; - let param_request_body = match param_request_body { - Some(param_request_body) => param_request_body, - None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter request_body"))), + let param_param = match param_param { + Some(param_param) => param_param, + None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter param"))), }; - Box::new(api_impl.test_inline_additional_properties(param_request_body, &context) + Box::new(api_impl.test_inline_additional_properties(param_param, &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -1048,7 +1048,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter request_body: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter param: {}", e)))), } }) ) as Box> @@ -1132,7 +1132,7 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_client: Option = if !body.is_empty() { + let param_body: Option = if !body.is_empty() { let deserializer = &mut serde_json::Deserializer::from_slice(&*body); @@ -1140,20 +1140,20 @@ where warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_client) => param_client, - Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter Client - doesn't match schema: {}", e)))), + Ok(param_body) => param_body, + Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter body - doesn't match schema: {}", e)))), } } else { None }; - let param_client = match param_client { - Some(param_client) => param_client, - None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter Client"))), + let param_body = match param_body { + Some(param_body) => param_body, + None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter body"))), }; - Box::new(api_impl.test_classname(param_client, &context) + Box::new(api_impl.test_classname(param_body, &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -1194,7 +1194,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter Client: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter body: {}", e)))), } }) ) as Box> @@ -1246,27 +1246,27 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_pet: Option = if !body.is_empty() { + let param_body: Option = if !body.is_empty() { let deserializer = &mut serde_xml_rs::de::Deserializer::new_from_reader(&*body); match serde_ignored::deserialize(deserializer, |path| { warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_pet) => param_pet, - Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter Pet - doesn't match schema: {}", e)))), + Ok(param_body) => param_body, + Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter body - doesn't match schema: {}", e)))), } } else { None }; - let param_pet = match param_pet { - Some(param_pet) => param_pet, - None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter Pet"))), + let param_body = match param_body { + Some(param_body) => param_body, + None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter body"))), }; - Box::new(api_impl.add_pet(param_pet, &context) + Box::new(api_impl.add_pet(param_body, &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -1299,7 +1299,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter Pet: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter body: {}", e)))), } }) ) as Box> @@ -1725,27 +1725,27 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_pet: Option = if !body.is_empty() { + let param_body: Option = if !body.is_empty() { let deserializer = &mut serde_xml_rs::de::Deserializer::new_from_reader(&*body); match serde_ignored::deserialize(deserializer, |path| { warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_pet) => param_pet, - Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter Pet - doesn't match schema: {}", e)))), + Ok(param_body) => param_body, + Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter body - doesn't match schema: {}", e)))), } } else { None }; - let param_pet = match param_pet { - Some(param_pet) => param_pet, - None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter Pet"))), + let param_body = match param_body { + Some(param_body) => param_body, + None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter body"))), }; - Box::new(api_impl.update_pet(param_pet, &context) + Box::new(api_impl.update_pet(param_body, &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -1792,7 +1792,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter Pet: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter body: {}", e)))), } }) ) as Box> @@ -2227,7 +2227,7 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_order: Option = if !body.is_empty() { + let param_body: Option = if !body.is_empty() { let deserializer = &mut serde_json::Deserializer::from_slice(&*body); @@ -2235,20 +2235,20 @@ where warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_order) => param_order, - Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter Order - doesn't match schema: {}", e)))), + Ok(param_body) => param_body, + Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter body - doesn't match schema: {}", e)))), } } else { None }; - let param_order = match param_order { - Some(param_order) => param_order, - None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter Order"))), + let param_body = match param_body { + Some(param_body) => param_body, + None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter body"))), }; - Box::new(api_impl.place_order(param_order, &context) + Box::new(api_impl.place_order(param_body, &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -2296,7 +2296,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter Order: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter body: {}", e)))), } }) ) as Box> @@ -2321,7 +2321,7 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_user: Option = if !body.is_empty() { + let param_body: Option = if !body.is_empty() { let deserializer = &mut serde_json::Deserializer::from_slice(&*body); @@ -2329,20 +2329,20 @@ where warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_user) => param_user, - Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter User - doesn't match schema: {}", e)))), + Ok(param_body) => param_body, + Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter body - doesn't match schema: {}", e)))), } } else { None }; - let param_user = match param_user { - Some(param_user) => param_user, - None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter User"))), + let param_body = match param_body { + Some(param_body) => param_body, + None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter body"))), }; - Box::new(api_impl.create_user(param_user, &context) + Box::new(api_impl.create_user(param_body, &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -2375,7 +2375,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter User: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter body: {}", e)))), } }) ) as Box> @@ -2400,7 +2400,7 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_user: Option> = if !body.is_empty() { + let param_body: Option> = if !body.is_empty() { let deserializer = &mut serde_json::Deserializer::from_slice(&*body); @@ -2408,20 +2408,20 @@ where warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_user) => param_user, - Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter User - doesn't match schema: {}", e)))), + Ok(param_body) => param_body, + Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter body - doesn't match schema: {}", e)))), } } else { None }; - let param_user = match param_user { - Some(param_user) => param_user, - None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter User"))), + let param_body = match param_body { + Some(param_body) => param_body, + None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter body"))), }; - Box::new(api_impl.create_users_with_array_input(param_user.as_ref(), &context) + Box::new(api_impl.create_users_with_array_input(param_body.as_ref(), &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -2454,7 +2454,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter User: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter body: {}", e)))), } }) ) as Box> @@ -2479,7 +2479,7 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_user: Option> = if !body.is_empty() { + let param_body: Option> = if !body.is_empty() { let deserializer = &mut serde_json::Deserializer::from_slice(&*body); @@ -2487,20 +2487,20 @@ where warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_user) => param_user, - Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter User - doesn't match schema: {}", e)))), + Ok(param_body) => param_body, + Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter body - doesn't match schema: {}", e)))), } } else { None }; - let param_user = match param_user { - Some(param_user) => param_user, - None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter User"))), + let param_body = match param_body { + Some(param_body) => param_body, + None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter body"))), }; - Box::new(api_impl.create_users_with_list_input(param_user.as_ref(), &context) + Box::new(api_impl.create_users_with_list_input(param_body.as_ref(), &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -2533,7 +2533,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter User: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter body: {}", e)))), } }) ) as Box> @@ -2866,7 +2866,7 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_user: Option = if !body.is_empty() { + let param_body: Option = if !body.is_empty() { let deserializer = &mut serde_json::Deserializer::from_slice(&*body); @@ -2874,20 +2874,20 @@ where warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_user) => param_user, - Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter User - doesn't match schema: {}", e)))), + Ok(param_body) => param_body, + Err(e) => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't parse body parameter body - doesn't match schema: {}", e)))), } } else { None }; - let param_user = match param_user { - Some(param_user) => param_user, - None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter User"))), + let param_body = match param_body { + Some(param_body) => param_body, + None => return Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body("Missing required body parameter body"))), }; - Box::new(api_impl.update_user(param_username, param_user, &context) + Box::new(api_impl.update_user(param_username, param_body, &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -2927,7 +2927,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter User: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter body: {}", e)))), } }) ) as Box> diff --git a/samples/server/petstore/rust-server/output/rust-server-test/api/openapi.yaml b/samples/server/petstore/rust-server/output/rust-server-test/api/openapi.yaml index 10a6a87b9dd..ed356b28eb0 100644 --- a/samples/server/petstore/rust-server/output/rust-server-test/api/openapi.yaml +++ b/samples/server/petstore/rust-server/output/rust-server-test/api/openapi.yaml @@ -32,6 +32,7 @@ paths: 200: content: {} description: Success + x-codegen-request-body-name: nested_response /html: post: requestBody: @@ -48,6 +49,7 @@ paths: type: string description: Success summary: Test HTML handling + x-codegen-request-body-name: body /file_response: get: responses: diff --git a/samples/server/petstore/rust-server/output/rust-server-test/examples/server_lib/server.rs b/samples/server/petstore/rust-server/output/rust-server-test/examples/server_lib/server.rs index a1067282c4b..b9c7cfba79f 100644 --- a/samples/server/petstore/rust-server/output/rust-server-test/examples/server_lib/server.rs +++ b/samples/server/petstore/rust-server/output/rust-server-test/examples/server_lib/server.rs @@ -40,9 +40,9 @@ impl Api for Server where C: Has{ } - fn dummy_put(&self, inline_object: Option, context: &C) -> Box> { + fn dummy_put(&self, nested_response: Option, context: &C) -> Box> { let context = context.clone(); - println!("dummy_put({:?}) - X-Span-ID: {:?}", inline_object, context.get().0.clone()); + println!("dummy_put({:?}) - X-Span-ID: {:?}", nested_response, context.get().0.clone()); Box::new(futures::failed("Generic failure".into())) } diff --git a/samples/server/petstore/rust-server/output/rust-server-test/src/client/mod.rs b/samples/server/petstore/rust-server/output/rust-server-test/src/client/mod.rs index a487915c49e..c9c1c1169b8 100644 --- a/samples/server/petstore/rust-server/output/rust-server-test/src/client/mod.rs +++ b/samples/server/petstore/rust-server/output/rust-server-test/src/client/mod.rs @@ -306,7 +306,7 @@ impl Api for Client where } - fn dummy_put(&self, param_inline_object: Option, context: &C) -> Box> { + fn dummy_put(&self, param_nested_response: Option, context: &C) -> Box> { let uri = format!( @@ -321,7 +321,7 @@ impl Api for Client where let mut request = hyper::Request::new(hyper::Method::Put, uri); - let body = param_inline_object.map(|ref body| { + let body = param_nested_response.map(|ref body| { serde_json::to_string(body).expect("impossible to fail to serialize") }); diff --git a/samples/server/petstore/rust-server/output/rust-server-test/src/lib.rs b/samples/server/petstore/rust-server/output/rust-server-test/src/lib.rs index b319918858d..efae712e4cc 100644 --- a/samples/server/petstore/rust-server/output/rust-server-test/src/lib.rs +++ b/samples/server/petstore/rust-server/output/rust-server-test/src/lib.rs @@ -77,7 +77,7 @@ pub trait Api { fn dummy_get(&self, context: &C) -> Box>; - fn dummy_put(&self, inline_object: Option, context: &C) -> Box>; + fn dummy_put(&self, nested_response: Option, context: &C) -> Box>; /// Get a file fn file_response_get(&self, context: &C) -> Box>; @@ -97,7 +97,7 @@ pub trait ApiNoContext { fn dummy_get(&self) -> Box>; - fn dummy_put(&self, inline_object: Option) -> Box>; + fn dummy_put(&self, nested_response: Option) -> Box>; /// Get a file fn file_response_get(&self) -> Box>; @@ -130,8 +130,8 @@ impl<'a, T: Api, C> ApiNoContext for ContextWrapper<'a, T, C> { } - fn dummy_put(&self, inline_object: Option) -> Box> { - self.api().dummy_put(inline_object, &self.context()) + fn dummy_put(&self, nested_response: Option) -> Box> { + self.api().dummy_put(nested_response, &self.context()) } /// Get a file diff --git a/samples/server/petstore/rust-server/output/rust-server-test/src/server/mod.rs b/samples/server/petstore/rust-server/output/rust-server-test/src/server/mod.rs index 852da4aab3b..a889c6b85d0 100644 --- a/samples/server/petstore/rust-server/output/rust-server-test/src/server/mod.rs +++ b/samples/server/petstore/rust-server/output/rust-server-test/src/server/mod.rs @@ -193,7 +193,7 @@ where Ok(body) => { let mut unused_elements = Vec::new(); - let param_inline_object: Option = if !body.is_empty() { + let param_nested_response: Option = if !body.is_empty() { let deserializer = &mut serde_json::Deserializer::from_slice(&*body); @@ -201,7 +201,7 @@ where warn!("Ignoring unknown field in body: {}", path); unused_elements.push(path.to_string()); }) { - Ok(param_inline_object) => param_inline_object, + Ok(param_nested_response) => param_nested_response, Err(_) => None, } @@ -211,7 +211,7 @@ where }; - Box::new(api_impl.dummy_put(param_inline_object, &context) + Box::new(api_impl.dummy_put(param_nested_response, &context) .then(move |result| { let mut response = Response::new(); response.headers_mut().set(XSpanId((&context as &Has).get().0.to_string())); @@ -244,7 +244,7 @@ where }, - Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter InlineObject: {}", e)))), + Err(e) => Box::new(future::ok(Response::new().with_status(StatusCode::BadRequest).with_body(format!("Couldn't read body parameter nested_response: {}", e)))), } }) ) as Box> diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java index 8e3ddec5882..9d29631f791 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -43,7 +43,7 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default CompletableFuture> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default CompletableFuture> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java index f67629960f4..bf54215fe98 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java @@ -63,7 +63,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/outer/composite", produces = { "*/*" }, method = RequestMethod.POST) - default CompletableFuture> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite outerComposite) { + default CompletableFuture> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -109,7 +109,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-file-schema", consumes = { "application/json" }, method = RequestMethod.PUT) - default CompletableFuture> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass) { + default CompletableFuture> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -121,7 +121,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-query-params", consumes = { "application/json" }, method = RequestMethod.PUT) - default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User user) { + default CompletableFuture> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -134,7 +134,7 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default CompletableFuture> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default CompletableFuture> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { @@ -195,7 +195,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/inline-additionalProperties", consumes = { "application/json" }, method = RequestMethod.POST) - default CompletableFuture> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map requestBody) { + default CompletableFuture> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 3956bf66fe4..333fd99db93 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -45,7 +45,7 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default CompletableFuture> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default CompletableFuture> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java index 50a6d1e0c65..e184991366e 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/PetApi.java @@ -49,7 +49,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.POST) - default CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default CompletableFuture> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -178,7 +178,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.PUT) - default CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default CompletableFuture> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java index ba8062907ac..ffeb0cacbdb 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/StoreApi.java @@ -98,7 +98,7 @@ public interface StoreApi { @RequestMapping(value = "/store/order", produces = { "application/xml", "application/json" }, method = RequestMethod.POST) - default CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order) { + default CompletableFuture> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { return CompletableFuture.supplyAsync(()-> { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java index 1d57a72909e..c80b9364bab 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/UserApi.java @@ -42,7 +42,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user", method = RequestMethod.POST) - default CompletableFuture> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user) { + default CompletableFuture> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -53,7 +53,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) - default CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default CompletableFuture> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -64,7 +64,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithList", method = RequestMethod.POST) - default CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default CompletableFuture> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } @@ -140,7 +140,7 @@ public interface UserApi { @ApiResponse(code = 404, message = "User not found") }) @RequestMapping(value = "/user/{username}", method = RequestMethod.PUT) - default CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user) { + default CompletableFuture> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); } diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java index b9cdc6298ff..55a8d00a1c3 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -42,7 +42,7 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java index 63c8881a58a..e694233f85f 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java @@ -62,7 +62,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/outer/composite", produces = { "*/*" }, method = RequestMethod.POST) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite outerComposite) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -106,7 +106,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-file-schema", consumes = { "application/json" }, method = RequestMethod.PUT) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -118,7 +118,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-query-params", consumes = { "application/json" }, method = RequestMethod.PUT) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -131,7 +131,7 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -190,7 +190,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/inline-additionalProperties", consumes = { "application/json" }, method = RequestMethod.POST) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map requestBody) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 9f412d244c2..4e589b0335b 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -44,7 +44,7 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java index 93d45c8b8c4..81d55a77ee2 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/PetApi.java @@ -48,7 +48,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.POST) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,7 +171,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.PUT) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java index 28296c6aa5d..3fe37376d4a 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/StoreApi.java @@ -95,7 +95,7 @@ public interface StoreApi { @RequestMapping(value = "/store/order", produces = { "application/xml", "application/json" }, method = RequestMethod.POST) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java index 085b38cf3e1..7de4df1f38c 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/UserApi.java @@ -41,7 +41,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user", method = RequestMethod.POST) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -52,7 +52,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -63,7 +63,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithList", method = RequestMethod.POST) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -137,7 +137,7 @@ public interface UserApi { @ApiResponse(code = 404, message = "User not found") }) @RequestMapping(value = "/user/{username}", method = RequestMethod.PUT) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java index f2164c1e0fa..7963e7cae9f 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -34,6 +34,6 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client); + ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApiController.java index 67f1fcd713b..5043c58114f 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -31,7 +31,7 @@ public class AnotherFakeApiController implements AnotherFakeApi { this.request = request; } - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { ApiUtil.setExampleResponse(request, "application/json", "{ \"client\" : \"client\"}"); diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java index b4477f179c6..c32ee9dd570 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java @@ -51,7 +51,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/outer/composite", produces = { "*/*" }, method = RequestMethod.POST) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite outerComposite); + ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body); @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @@ -78,7 +78,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-file-schema", consumes = { "application/json" }, method = RequestMethod.PUT) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass); + ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @@ -87,7 +87,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-query-params", consumes = { "application/json" }, method = RequestMethod.PUT) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User user); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @@ -97,7 +97,7 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client); + ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = { @@ -136,7 +136,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/inline-additionalProperties", consumes = { "application/json" }, method = RequestMethod.POST) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map requestBody); + ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApiController.java index a4991d3e5f1..aa40c0eb009 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApiController.java @@ -45,7 +45,7 @@ public class FakeApiController implements FakeApi { } - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite outerComposite) { + public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { ApiUtil.setExampleResponse(request, "*/*", "{ \"my_string\" : \"my_string\", \"my_number\" : 0.80082819046101150206595775671303272247314453125, \"my_boolean\" : true}"); @@ -66,17 +66,17 @@ public class FakeApiController implements FakeApi { } - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass) { + public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User user) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } - public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { ApiUtil.setExampleResponse(request, "application/json", "{ \"client\" : \"client\"}"); @@ -102,7 +102,7 @@ public class FakeApiController implements FakeApi { } - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map requestBody) { + public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index ee1c0167e42..5e9baf1d5c3 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -36,6 +36,6 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client); + ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index 1b4e5db5f8b..a3b9ad557a7 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -31,7 +31,7 @@ public class FakeClassnameTestApiController implements FakeClassnameTestApi { this.request = request; } - public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { ApiUtil.setExampleResponse(request, "application/json", "{ \"client\" : \"client\"}"); diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java index 83094336b69..e39334080bc 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApi.java @@ -40,7 +40,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.POST) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @@ -112,7 +112,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.PUT) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApiController.java index edd66c31823..d9ef620131f 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/PetApiController.java @@ -33,7 +33,7 @@ public class PetApiController implements PetApi { this.request = request; } - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +88,7 @@ public class PetApiController implements PetApi { } - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java index fc96cc489f2..3ee25c8c632 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApi.java @@ -66,6 +66,6 @@ public interface StoreApi { @RequestMapping(value = "/store/order", produces = { "application/xml", "application/json" }, method = RequestMethod.POST) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApiController.java index ba21fb432e8..acddbe96352 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/StoreApiController.java @@ -57,7 +57,7 @@ public class StoreApiController implements StoreApi { } - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order) { + public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { ApiUtil.setExampleResponse(request, "application/json", "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\"}"); diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java index cdf03f027e5..57e1f20db8f 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApi.java @@ -33,7 +33,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user", method = RequestMethod.POST) - ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user); + ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @@ -41,7 +41,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @@ -49,7 +49,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithList", method = RequestMethod.POST) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @@ -96,6 +96,6 @@ public interface UserApi { @ApiResponse(code = 404, message = "User not found") }) @RequestMapping(value = "/user/{username}", method = RequestMethod.PUT) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApiController.java index eb642e22c13..40b796dc32d 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/UserApiController.java @@ -32,17 +32,17 @@ public class UserApiController implements UserApi { this.request = request; } - public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user) { + public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -77,7 +77,7 @@ public class UserApiController implements UserApi { } - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java index f2164c1e0fa..7963e7cae9f 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -34,6 +34,6 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client); + ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApiController.java index d1826897741..28462f31ab3 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -31,7 +31,7 @@ public class AnotherFakeApiController implements AnotherFakeApi { this.request = request; } - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { ApiUtil.setExampleResponse(request, "application/json", "{ \"client\" : \"client\"}"); diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java index b4477f179c6..c32ee9dd570 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java @@ -51,7 +51,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/outer/composite", produces = { "*/*" }, method = RequestMethod.POST) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite outerComposite); + ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body); @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @@ -78,7 +78,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-file-schema", consumes = { "application/json" }, method = RequestMethod.PUT) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass); + ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @@ -87,7 +87,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-query-params", consumes = { "application/json" }, method = RequestMethod.PUT) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User user); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @@ -97,7 +97,7 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client); + ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = { @@ -136,7 +136,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/inline-additionalProperties", consumes = { "application/json" }, method = RequestMethod.POST) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map requestBody); + ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApiController.java index c3369289623..9f4f90f94dd 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApiController.java @@ -45,7 +45,7 @@ public class FakeApiController implements FakeApi { } - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite outerComposite) { + public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { ApiUtil.setExampleResponse(request, "*/*", "{ \"my_string\" : \"my_string\", \"my_number\" : 0.80082819046101150206595775671303272247314453125, \"my_boolean\" : true}"); @@ -66,17 +66,17 @@ public class FakeApiController implements FakeApi { } - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass) { + public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User user) { + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } - public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { ApiUtil.setExampleResponse(request, "application/json", "{ \"client\" : \"client\"}"); @@ -102,7 +102,7 @@ public class FakeApiController implements FakeApi { } - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map requestBody) { + public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index ee1c0167e42..5e9baf1d5c3 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -36,6 +36,6 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client); + ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index d10cfe7c51d..b749d734b41 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -31,7 +31,7 @@ public class FakeClassnameTestApiController implements FakeClassnameTestApi { this.request = request; } - public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { ApiUtil.setExampleResponse(request, "application/json", "{ \"client\" : \"client\"}"); diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java index 83094336b69..e39334080bc 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApi.java @@ -40,7 +40,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.POST) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @@ -112,7 +112,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.PUT) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApiController.java index 310e3b2e45f..18eb0e65f95 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/PetApiController.java @@ -33,7 +33,7 @@ public class PetApiController implements PetApi { this.request = request; } - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -88,7 +88,7 @@ public class PetApiController implements PetApi { } - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java index fc96cc489f2..3ee25c8c632 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApi.java @@ -66,6 +66,6 @@ public interface StoreApi { @RequestMapping(value = "/store/order", produces = { "application/xml", "application/json" }, method = RequestMethod.POST) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApiController.java index 34e3cb7d8fc..28ce69c093d 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/StoreApiController.java @@ -57,7 +57,7 @@ public class StoreApiController implements StoreApi { } - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order) { + public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { ApiUtil.setExampleResponse(request, "application/json", "{ \"petId\" : 6, \"quantity\" : 1, \"id\" : 0, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"complete\" : false, \"status\" : \"placed\"}"); diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java index cdf03f027e5..57e1f20db8f 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApi.java @@ -33,7 +33,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user", method = RequestMethod.POST) - ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user); + ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @@ -41,7 +41,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @@ -49,7 +49,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithList", method = RequestMethod.POST) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @@ -96,6 +96,6 @@ public interface UserApi { @ApiResponse(code = 404, message = "User not found") }) @RequestMapping(value = "/user/{username}", method = RequestMethod.PUT) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApiController.java index 69da699f5ee..58f252ae90a 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/UserApiController.java @@ -32,17 +32,17 @@ public class UserApiController implements UserApi { this.request = request; } - public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user) { + public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -77,7 +77,7 @@ public class UserApiController implements UserApi { } - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user) { + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java index eb2cb1634fc..b1a635c59f4 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -38,8 +38,8 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { - return getDelegate().call123testSpecialTags(client); + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + return getDelegate().call123testSpecialTags(body); } } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java index 597b34a8c3a..bdefef0d331 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java @@ -26,7 +26,7 @@ public interface AnotherFakeApiDelegate { /** * @see AnotherFakeApi#call123testSpecialTags */ - default ResponseEntity call123testSpecialTags(Client client) { + default ResponseEntity call123testSpecialTags(Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java index 5192a8bc2b8..b707cc52c63 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -57,8 +57,8 @@ public interface FakeApi { @RequestMapping(value = "/fake/outer/composite", produces = { "*/*" }, method = RequestMethod.POST) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite outerComposite) { - return getDelegate().fakeOuterCompositeSerialize(outerComposite); + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body) { + return getDelegate().fakeOuterCompositeSerialize(body); } @@ -90,8 +90,8 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-file-schema", consumes = { "application/json" }, method = RequestMethod.PUT) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass) { - return getDelegate().testBodyWithFileSchema(fileSchemaTestClass); + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + return getDelegate().testBodyWithFileSchema(body); } @@ -101,8 +101,8 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-query-params", consumes = { "application/json" }, method = RequestMethod.PUT) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User user) { - return getDelegate().testBodyWithQueryParams(query, user); + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + return getDelegate().testBodyWithQueryParams(query, body); } @@ -113,8 +113,8 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { - return getDelegate().testClientModel(client); + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + return getDelegate().testClientModel(body); } @@ -160,8 +160,8 @@ public interface FakeApi { @RequestMapping(value = "/fake/inline-additionalProperties", consumes = { "application/json" }, method = RequestMethod.POST) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map requestBody) { - return getDelegate().testInlineAdditionalProperties(requestBody); + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + return getDelegate().testInlineAdditionalProperties(param); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java index 9c0f4d8375d..4c32bae5936 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -43,7 +43,7 @@ public interface FakeApiDelegate { /** * @see FakeApi#fakeOuterCompositeSerialize */ - default ResponseEntity fakeOuterCompositeSerialize(OuterComposite outerComposite) { + default ResponseEntity fakeOuterCompositeSerialize(OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -75,7 +75,7 @@ public interface FakeApiDelegate { /** * @see FakeApi#testBodyWithFileSchema */ - default ResponseEntity testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) { + default ResponseEntity testBodyWithFileSchema(FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -84,7 +84,7 @@ public interface FakeApiDelegate { * @see FakeApi#testBodyWithQueryParams */ default ResponseEntity testBodyWithQueryParams(String query, - User user) { + User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -92,7 +92,7 @@ public interface FakeApiDelegate { /** * @see FakeApi#testClientModel */ - default ResponseEntity testClientModel(Client client) { + default ResponseEntity testClientModel(Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -157,7 +157,7 @@ public interface FakeApiDelegate { /** * @see FakeApi#testInlineAdditionalProperties */ - default ResponseEntity testInlineAdditionalProperties(Map requestBody) { + default ResponseEntity testInlineAdditionalProperties(Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 0f34c6677c6..47eb034ea3a 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -40,8 +40,8 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { - return getDelegate().testClassname(client); + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + return getDelegate().testClassname(body); } } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java index e94d222a6c7..3e95af6de1c 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java @@ -26,7 +26,7 @@ public interface FakeClassnameTestApiDelegate { /** * @see FakeClassnameTestApi#testClassname */ - default ResponseEntity testClassname(Client client) { + default ResponseEntity testClassname(Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java index b2481031328..51bb98ebb42 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApi.java @@ -44,8 +44,8 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.POST) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { - return getDelegate().addPet(pet); + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + return getDelegate().addPet(body); } @@ -126,8 +126,8 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.PUT) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { - return getDelegate().updatePet(pet); + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + return getDelegate().updatePet(body); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApiDelegate.java index 32dd72c3de0..b2b7360f4dc 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/PetApiDelegate.java @@ -28,7 +28,7 @@ public interface PetApiDelegate { /** * @see PetApi#addPet */ - default ResponseEntity addPet(Pet pet) { + default ResponseEntity addPet(Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -105,7 +105,7 @@ public interface PetApiDelegate { /** * @see PetApi#updatePet */ - default ResponseEntity updatePet(Pet pet) { + default ResponseEntity updatePet(Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java index 2f749fc63f9..894cb693da3 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApi.java @@ -76,8 +76,8 @@ public interface StoreApi { @RequestMapping(value = "/store/order", produces = { "application/xml", "application/json" }, method = RequestMethod.POST) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order) { - return getDelegate().placeOrder(order); + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + return getDelegate().placeOrder(body); } } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApiDelegate.java index 85a55dfcbda..995ff1dc25f 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/StoreApiDelegate.java @@ -63,7 +63,7 @@ public interface StoreApiDelegate { /** * @see StoreApi#placeOrder */ - default ResponseEntity placeOrder(Order order) { + default ResponseEntity placeOrder(Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java index 711d72e7079..de64a0abada 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApi.java @@ -37,8 +37,8 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user", method = RequestMethod.POST) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user) { - return getDelegate().createUser(user); + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + return getDelegate().createUser(body); } @@ -47,8 +47,8 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { - return getDelegate().createUsersWithArrayInput(user); + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + return getDelegate().createUsersWithArrayInput(body); } @@ -57,8 +57,8 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithList", method = RequestMethod.POST) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { - return getDelegate().createUsersWithListInput(user); + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + return getDelegate().createUsersWithListInput(body); } @@ -114,8 +114,8 @@ public interface UserApi { @ApiResponse(code = 404, message = "User not found") }) @RequestMapping(value = "/user/{username}", method = RequestMethod.PUT) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user) { - return getDelegate().updateUser(username, user); + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + return getDelegate().updateUser(username, body); } } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApiDelegate.java index aaf9227ee56..bc3af703973 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/UserApiDelegate.java @@ -27,7 +27,7 @@ public interface UserApiDelegate { /** * @see UserApi#createUser */ - default ResponseEntity createUser(User user) { + default ResponseEntity createUser(User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -35,7 +35,7 @@ public interface UserApiDelegate { /** * @see UserApi#createUsersWithArrayInput */ - default ResponseEntity createUsersWithArrayInput(List user) { + default ResponseEntity createUsersWithArrayInput(List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -43,7 +43,7 @@ public interface UserApiDelegate { /** * @see UserApi#createUsersWithListInput */ - default ResponseEntity createUsersWithListInput(List user) { + default ResponseEntity createUsersWithListInput(List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -97,7 +97,7 @@ public interface UserApiDelegate { * @see UserApi#updateUser */ default ResponseEntity updateUser(String username, - User user) { + User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java index f2164c1e0fa..7963e7cae9f 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -34,6 +34,6 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client); + ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiController.java index 254904f899e..b4a93799157 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiController.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiController.java @@ -29,8 +29,8 @@ public class AnotherFakeApiController implements AnotherFakeApi { this.delegate = delegate; } - public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { - return delegate.call123testSpecialTags(client); + public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + return delegate.call123testSpecialTags(body); } } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java index 0e835519fc6..1ee11ed7327 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java @@ -18,6 +18,6 @@ public interface AnotherFakeApiDelegate { /** * @see AnotherFakeApi#call123testSpecialTags */ - ResponseEntity call123testSpecialTags(Client client); + ResponseEntity call123testSpecialTags(Client body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java index b4477f179c6..c32ee9dd570 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java @@ -51,7 +51,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/outer/composite", produces = { "*/*" }, method = RequestMethod.POST) - ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite outerComposite); + ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body); @ApiOperation(value = "", nickname = "fakeOuterNumberSerialize", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", }) @@ -78,7 +78,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-file-schema", consumes = { "application/json" }, method = RequestMethod.PUT) - ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass); + ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body); @ApiOperation(value = "", nickname = "testBodyWithQueryParams", notes = "", tags={ "fake", }) @@ -87,7 +87,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-query-params", consumes = { "application/json" }, method = RequestMethod.PUT) - ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User user); + ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body); @ApiOperation(value = "To test \"client\" model", nickname = "testClientModel", notes = "To test \"client\" model", response = Client.class, tags={ "fake", }) @@ -97,7 +97,7 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client); + ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", nickname = "testEndpointParameters", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", authorizations = { @@ -136,7 +136,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/inline-additionalProperties", consumes = { "application/json" }, method = RequestMethod.POST) - ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map requestBody); + ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param); @ApiOperation(value = "test json serialization of form data", nickname = "testJsonFormData", notes = "", tags={ "fake", }) diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiController.java index 9d4ef3e8206..f2b45052bd0 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiController.java @@ -42,8 +42,8 @@ public class FakeApiController implements FakeApi { return delegate.fakeOuterBooleanSerialize(body); } - public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite outerComposite) { - return delegate.fakeOuterCompositeSerialize(outerComposite); + public ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body) { + return delegate.fakeOuterCompositeSerialize(body); } public ResponseEntity fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) @Valid @RequestBody BigDecimal body) { @@ -54,16 +54,16 @@ public class FakeApiController implements FakeApi { return delegate.fakeOuterStringSerialize(body); } - public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass) { - return delegate.testBodyWithFileSchema(fileSchemaTestClass); + public ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { + return delegate.testBodyWithFileSchema(body); } - public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User user) { - return delegate.testBodyWithQueryParams(query, user); + public ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { + return delegate.testBodyWithQueryParams(query, body); } - public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { - return delegate.testClientModel(client); + public ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + return delegate.testClientModel(body); } public ResponseEntity testEndpointParameters(@ApiParam(value = "None", required=true) @RequestParam(value="number", required=true) BigDecimal number,@ApiParam(value = "None", required=true) @RequestParam(value="double", required=true) Double _double,@ApiParam(value = "None", required=true) @RequestParam(value="pattern_without_delimiter", required=true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @RequestParam(value="byte", required=true) byte[] _byte,@ApiParam(value = "None") @RequestParam(value="integer", required=false) Integer integer,@ApiParam(value = "None") @RequestParam(value="int32", required=false) Integer int32,@ApiParam(value = "None") @RequestParam(value="int64", required=false) Long int64,@ApiParam(value = "None") @RequestParam(value="float", required=false) Float _float,@ApiParam(value = "None") @RequestParam(value="string", required=false) String string,@ApiParam(value = "file detail") @Valid @RequestPart("file") MultipartFile binary,@ApiParam(value = "None") @RequestParam(value="date", required=false) LocalDate date,@ApiParam(value = "None") @RequestParam(value="dateTime", required=false) OffsetDateTime dateTime,@ApiParam(value = "None") @RequestParam(value="password", required=false) String password,@ApiParam(value = "None") @RequestParam(value="callback", required=false) String paramCallback) { @@ -78,8 +78,8 @@ public class FakeApiController implements FakeApi { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } - public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map requestBody) { - return delegate.testInlineAdditionalProperties(requestBody); + public ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { + return delegate.testInlineAdditionalProperties(param); } public ResponseEntity testJsonFormData(@ApiParam(value = "field1", required=true) @RequestParam(value="param", required=true) String param,@ApiParam(value = "field2", required=true) @RequestParam(value="param2", required=true) String param2) { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java index 64d24f36c56..33e83d53ff1 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -32,7 +32,7 @@ public interface FakeApiDelegate { /** * @see FakeApi#fakeOuterCompositeSerialize */ - ResponseEntity fakeOuterCompositeSerialize(OuterComposite outerComposite); + ResponseEntity fakeOuterCompositeSerialize(OuterComposite body); /** * @see FakeApi#fakeOuterNumberSerialize @@ -47,18 +47,18 @@ public interface FakeApiDelegate { /** * @see FakeApi#testBodyWithFileSchema */ - ResponseEntity testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + ResponseEntity testBodyWithFileSchema(FileSchemaTestClass body); /** * @see FakeApi#testBodyWithQueryParams */ ResponseEntity testBodyWithQueryParams(String query, - User user); + User body); /** * @see FakeApi#testClientModel */ - ResponseEntity testClientModel(Client client); + ResponseEntity testClientModel(Client body); /** * @see FakeApi#testEndpointParameters @@ -103,7 +103,7 @@ public interface FakeApiDelegate { /** * @see FakeApi#testInlineAdditionalProperties */ - ResponseEntity testInlineAdditionalProperties(Map requestBody); + ResponseEntity testInlineAdditionalProperties(Map param); /** * @see FakeApi#testJsonFormData diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index ee1c0167e42..5e9baf1d5c3 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -36,6 +36,6 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client); + ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java index a04a4d61282..330dbe26560 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiController.java @@ -29,8 +29,8 @@ public class FakeClassnameTestApiController implements FakeClassnameTestApi { this.delegate = delegate; } - public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { - return delegate.testClassname(client); + public ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { + return delegate.testClassname(body); } } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java index c0d42c3a3e7..d9a6b31331e 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java @@ -18,6 +18,6 @@ public interface FakeClassnameTestApiDelegate { /** * @see FakeClassnameTestApi#testClassname */ - ResponseEntity testClassname(Client client); + ResponseEntity testClassname(Client body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java index 83094336b69..e39334080bc 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApi.java @@ -40,7 +40,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.POST) - ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet); + ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); @ApiOperation(value = "Deletes a pet", nickname = "deletePet", notes = "", authorizations = { @@ -112,7 +112,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.PUT) - ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet); + ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body); @ApiOperation(value = "Updates a pet in the store with form data", nickname = "updatePetWithForm", notes = "", authorizations = { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiController.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiController.java index a721a03d78d..506f8968c82 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiController.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiController.java @@ -31,8 +31,8 @@ public class PetApiController implements PetApi { this.delegate = delegate; } - public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { - return delegate.addPet(pet); + public ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + return delegate.addPet(body); } public ResponseEntity deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "" ) @RequestHeader(value="api_key", required=false) String apiKey) { @@ -51,8 +51,8 @@ public class PetApiController implements PetApi { return delegate.getPetById(petId); } - public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { - return delegate.updatePet(pet); + public ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { + return delegate.updatePet(body); } public ResponseEntity updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet") @RequestParam(value="status", required=false) String status) { diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiDelegate.java index bae746c1414..74053a91cd7 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/PetApiDelegate.java @@ -20,7 +20,7 @@ public interface PetApiDelegate { /** * @see PetApi#addPet */ - ResponseEntity addPet(Pet pet); + ResponseEntity addPet(Pet body); /** * @see PetApi#deletePet @@ -46,7 +46,7 @@ public interface PetApiDelegate { /** * @see PetApi#updatePet */ - ResponseEntity updatePet(Pet pet); + ResponseEntity updatePet(Pet body); /** * @see PetApi#updatePetWithForm diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java index fc96cc489f2..3ee25c8c632 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApi.java @@ -66,6 +66,6 @@ public interface StoreApi { @RequestMapping(value = "/store/order", produces = { "application/xml", "application/json" }, method = RequestMethod.POST) - ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order); + ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiController.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiController.java index 4b0fe81cd79..cf2bc8afc84 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiController.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiController.java @@ -42,8 +42,8 @@ public class StoreApiController implements StoreApi { return delegate.getOrderById(orderId); } - public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order) { - return delegate.placeOrder(order); + public ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { + return delegate.placeOrder(body); } } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiDelegate.java index 6fa60ee6c17..da02eed54b5 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/StoreApiDelegate.java @@ -34,6 +34,6 @@ public interface StoreApiDelegate { /** * @see StoreApi#placeOrder */ - ResponseEntity placeOrder(Order order); + ResponseEntity placeOrder(Order body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java index cdf03f027e5..57e1f20db8f 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApi.java @@ -33,7 +33,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user", method = RequestMethod.POST) - ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user); + ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body); @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithArrayInput", notes = "", tags={ "user", }) @@ -41,7 +41,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) - ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user); + ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); @ApiOperation(value = "Creates list of users with given input array", nickname = "createUsersWithListInput", notes = "", tags={ "user", }) @@ -49,7 +49,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithList", method = RequestMethod.POST) - ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user); + ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body); @ApiOperation(value = "Delete user", nickname = "deleteUser", notes = "This can only be done by the logged in user.", tags={ "user", }) @@ -96,6 +96,6 @@ public interface UserApi { @ApiResponse(code = 404, message = "User not found") }) @RequestMapping(value = "/user/{username}", method = RequestMethod.PUT) - ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user); + ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiController.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiController.java index 114cdb93081..e79e68193c9 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiController.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiController.java @@ -30,16 +30,16 @@ public class UserApiController implements UserApi { this.delegate = delegate; } - public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user) { - return delegate.createUser(user); + public ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { + return delegate.createUser(body); } - public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { - return delegate.createUsersWithArrayInput(user); + public ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + return delegate.createUsersWithArrayInput(body); } - public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { - return delegate.createUsersWithListInput(user); + public ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { + return delegate.createUsersWithListInput(body); } public ResponseEntity deleteUser(@ApiParam(value = "The name that needs to be deleted",required=true) @PathVariable("username") String username) { @@ -58,8 +58,8 @@ public class UserApiController implements UserApi { return delegate.logoutUser(); } - public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user) { - return delegate.updateUser(username, user); + public ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { + return delegate.updateUser(username, body); } } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiDelegate.java index 70404052360..dc90b13aed3 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/UserApiDelegate.java @@ -19,17 +19,17 @@ public interface UserApiDelegate { /** * @see UserApi#createUser */ - ResponseEntity createUser(User user); + ResponseEntity createUser(User body); /** * @see UserApi#createUsersWithArrayInput */ - ResponseEntity createUsersWithArrayInput(List user); + ResponseEntity createUsersWithArrayInput(List body); /** * @see UserApi#createUsersWithListInput */ - ResponseEntity createUsersWithListInput(List user); + ResponseEntity createUsersWithListInput(List body); /** * @see UserApi#deleteUser @@ -56,6 +56,6 @@ public interface UserApiDelegate { * @see UserApi#updateUser */ ResponseEntity updateUser(String username, - User user); + User body); } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java index 00df30e683f..07d49dbf08e 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -44,7 +44,7 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java index b6788a71b47..cebee176104 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java @@ -66,7 +66,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/outer/composite", produces = { "*/*" }, method = RequestMethod.POST) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite outerComposite) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -116,7 +116,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-file-schema", consumes = { "application/json" }, method = RequestMethod.PUT) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -130,7 +130,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-query-params", consumes = { "application/json" }, method = RequestMethod.PUT) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -145,7 +145,7 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -216,7 +216,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/inline-additionalProperties", consumes = { "application/json" }, method = RequestMethod.POST) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map requestBody) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index a3366d05c32..f68a9fcb7ad 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -46,7 +46,7 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java index db755dea565..a2dbf1afdb1 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/PetApi.java @@ -50,7 +50,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.POST) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -184,7 +184,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.PUT) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java index f528bec9068..a0b289a63e1 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/StoreApi.java @@ -103,7 +103,7 @@ public interface StoreApi { @RequestMapping(value = "/store/order", produces = { "application/xml", "application/json" }, method = RequestMethod.POST) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java index b81f7dfe0c5..33db88e59fd 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/UserApi.java @@ -43,7 +43,7 @@ public interface UserApi { }) @RequestMapping(value = "/user", method = RequestMethod.POST) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -56,7 +56,7 @@ public interface UserApi { }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -69,7 +69,7 @@ public interface UserApi { }) @RequestMapping(value = "/user/createWithList", method = RequestMethod.POST) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -153,7 +153,7 @@ public interface UserApi { }) @RequestMapping(value = "/user/{username}", method = RequestMethod.PUT) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java index cd52147fa57..990e51fb5a3 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -41,8 +41,8 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default Mono> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono client, ServerWebExchange exchange) { - return getDelegate().call123testSpecialTags(client, exchange); + default Mono> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, ServerWebExchange exchange) { + return getDelegate().call123testSpecialTags(body, exchange); } } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java index 5f8fd137adb..a67f2f5387c 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java @@ -29,7 +29,7 @@ public interface AnotherFakeApiDelegate { /** * @see AnotherFakeApi#call123testSpecialTags */ - default Mono> call123testSpecialTags(Mono client, + default Mono> call123testSpecialTags(Mono body, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java index 123cc82f37e..85720f8077b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java @@ -60,8 +60,8 @@ public interface FakeApi { @RequestMapping(value = "/fake/outer/composite", produces = { "*/*" }, method = RequestMethod.POST) - default Mono> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody Mono outerComposite, ServerWebExchange exchange) { - return getDelegate().fakeOuterCompositeSerialize(outerComposite, exchange); + default Mono> fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody Mono body, ServerWebExchange exchange) { + return getDelegate().fakeOuterCompositeSerialize(body, exchange); } @@ -93,8 +93,8 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-file-schema", consumes = { "application/json" }, method = RequestMethod.PUT) - default Mono> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono fileSchemaTestClass, ServerWebExchange exchange) { - return getDelegate().testBodyWithFileSchema(fileSchemaTestClass, exchange); + default Mono> testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body, ServerWebExchange exchange) { + return getDelegate().testBodyWithFileSchema(body, exchange); } @@ -104,8 +104,8 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-query-params", consumes = { "application/json" }, method = RequestMethod.PUT) - default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono user, ServerWebExchange exchange) { - return getDelegate().testBodyWithQueryParams(query, user, exchange); + default Mono> testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody Mono body, ServerWebExchange exchange) { + return getDelegate().testBodyWithQueryParams(query, body, exchange); } @@ -116,8 +116,8 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default Mono> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono client, ServerWebExchange exchange) { - return getDelegate().testClientModel(client, exchange); + default Mono> testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, ServerWebExchange exchange) { + return getDelegate().testClientModel(body, exchange); } @@ -163,8 +163,8 @@ public interface FakeApi { @RequestMapping(value = "/fake/inline-additionalProperties", consumes = { "application/json" }, method = RequestMethod.POST) - default Mono> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Mono requestBody, ServerWebExchange exchange) { - return getDelegate().testInlineAdditionalProperties(requestBody, exchange); + default Mono> testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Mono param, ServerWebExchange exchange) { + return getDelegate().testInlineAdditionalProperties(param, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java index 7d71fc5afbf..bb8ff5026c5 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -49,7 +49,7 @@ public interface FakeApiDelegate { /** * @see FakeApi#fakeOuterCompositeSerialize */ - default Mono> fakeOuterCompositeSerialize(Mono outerComposite, + default Mono> fakeOuterCompositeSerialize(Mono body, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); @@ -88,7 +88,7 @@ public interface FakeApiDelegate { /** * @see FakeApi#testBodyWithFileSchema */ - default Mono> testBodyWithFileSchema(Mono fileSchemaTestClass, + default Mono> testBodyWithFileSchema(Mono body, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); @@ -100,7 +100,7 @@ public interface FakeApiDelegate { * @see FakeApi#testBodyWithQueryParams */ default Mono> testBodyWithQueryParams(String query, - Mono user, + Mono body, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); @@ -111,7 +111,7 @@ public interface FakeApiDelegate { /** * @see FakeApi#testClientModel */ - default Mono> testClientModel(Mono client, + default Mono> testClientModel(Mono body, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); @@ -186,7 +186,7 @@ public interface FakeApiDelegate { /** * @see FakeApi#testInlineAdditionalProperties */ - default Mono> testInlineAdditionalProperties(Mono requestBody, + default Mono> testInlineAdditionalProperties(Mono param, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index fe82590b74d..01ead5c68f2 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -43,8 +43,8 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default Mono> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono client, ServerWebExchange exchange) { - return getDelegate().testClassname(client, exchange); + default Mono> testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono body, ServerWebExchange exchange) { + return getDelegate().testClassname(body, exchange); } } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java index bef3cea1a08..d99a6739626 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeClassnameTestApiDelegate.java @@ -29,7 +29,7 @@ public interface FakeClassnameTestApiDelegate { /** * @see FakeClassnameTestApi#testClassname */ - default Mono> testClassname(Mono client, + default Mono> testClassname(Mono body, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java index a4c058a49ab..ce88469e8f8 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApi.java @@ -47,8 +47,8 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.POST) - default Mono> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono pet, ServerWebExchange exchange) { - return getDelegate().addPet(pet, exchange); + default Mono> addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body, ServerWebExchange exchange) { + return getDelegate().addPet(body, exchange); } @@ -129,8 +129,8 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.PUT) - default Mono> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono pet, ServerWebExchange exchange) { - return getDelegate().updatePet(pet, exchange); + default Mono> updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Mono body, ServerWebExchange exchange) { + return getDelegate().updatePet(body, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApiDelegate.java index 3cf894153de..630d4a3f99d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/PetApiDelegate.java @@ -31,7 +31,7 @@ public interface PetApiDelegate { /** * @see PetApi#addPet */ - default Mono> addPet(Mono pet, + default Mono> addPet(Mono body, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); @@ -117,7 +117,7 @@ public interface PetApiDelegate { /** * @see PetApi#updatePet */ - default Mono> updatePet(Mono pet, + default Mono> updatePet(Mono body, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java index 63775b7aebd..7c4624f5498 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApi.java @@ -79,8 +79,8 @@ public interface StoreApi { @RequestMapping(value = "/store/order", produces = { "application/xml", "application/json" }, method = RequestMethod.POST) - default Mono> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Mono order, ServerWebExchange exchange) { - return getDelegate().placeOrder(order, exchange); + default Mono> placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Mono body, ServerWebExchange exchange) { + return getDelegate().placeOrder(body, exchange); } } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApiDelegate.java index 30ab1e9d348..72fb559347e 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/StoreApiDelegate.java @@ -72,7 +72,7 @@ public interface StoreApiDelegate { /** * @see StoreApi#placeOrder */ - default Mono> placeOrder(Mono order, + default Mono> placeOrder(Mono body, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java index e0674fd5edd..4237310d52d 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApi.java @@ -40,8 +40,8 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user", method = RequestMethod.POST) - default Mono> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody Mono user, ServerWebExchange exchange) { - return getDelegate().createUser(user, exchange); + default Mono> createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody Mono body, ServerWebExchange exchange) { + return getDelegate().createUser(body, exchange); } @@ -50,8 +50,8 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) - default Mono> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux user, ServerWebExchange exchange) { - return getDelegate().createUsersWithArrayInput(user, exchange); + default Mono> createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body, ServerWebExchange exchange) { + return getDelegate().createUsersWithArrayInput(body, exchange); } @@ -60,8 +60,8 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithList", method = RequestMethod.POST) - default Mono> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux user, ServerWebExchange exchange) { - return getDelegate().createUsersWithListInput(user, exchange); + default Mono> createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody Flux body, ServerWebExchange exchange) { + return getDelegate().createUsersWithListInput(body, exchange); } @@ -117,8 +117,8 @@ public interface UserApi { @ApiResponse(code = 404, message = "User not found") }) @RequestMapping(value = "/user/{username}", method = RequestMethod.PUT) - default Mono> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody Mono user, ServerWebExchange exchange) { - return getDelegate().updateUser(username, user, exchange); + default Mono> updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody Mono body, ServerWebExchange exchange) { + return getDelegate().updateUser(username, body, exchange); } } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApiDelegate.java index fbfafaaa378..a56614beabd 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/UserApiDelegate.java @@ -30,7 +30,7 @@ public interface UserApiDelegate { /** * @see UserApi#createUser */ - default Mono> createUser(Mono user, + default Mono> createUser(Mono body, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); @@ -41,7 +41,7 @@ public interface UserApiDelegate { /** * @see UserApi#createUsersWithArrayInput */ - default Mono> createUsersWithArrayInput(Flux user, + default Mono> createUsersWithArrayInput(Flux body, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); @@ -52,7 +52,7 @@ public interface UserApiDelegate { /** * @see UserApi#createUsersWithListInput */ - default Mono> createUsersWithListInput(Flux user, + default Mono> createUsersWithListInput(Flux body, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); @@ -118,7 +118,7 @@ public interface UserApiDelegate { * @see UserApi#updateUser */ default Mono> updateUser(String username, - Mono user, + Mono body, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml index 0e2c756cb40..60ee68c8922 100644 --- a/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml @@ -42,6 +42,7 @@ paths: summary: Add a new pet to the store tags: - pet + x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json x-tags: @@ -75,6 +76,7 @@ paths: summary: Update an existing pet tags: - pet + x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json x-tags: @@ -358,6 +360,7 @@ paths: summary: Place an order for a pet tags: - store + x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json x-tags: @@ -439,6 +442,7 @@ paths: summary: Create user tags: - user + x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json x-tags: @@ -462,6 +466,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json x-tags: @@ -485,6 +490,7 @@ paths: summary: Creates list of users with given input array tags: - user + x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json x-tags: @@ -630,6 +636,7 @@ paths: summary: Updated user tags: - user + x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json x-tags: @@ -657,6 +664,7 @@ paths: summary: To test class name in snake case tags: - fake_classname_tags 123#$%^ + x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json x-tags: @@ -836,6 +844,7 @@ paths: summary: To test "client" model tags: - fake + x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json x-tags: @@ -962,6 +971,7 @@ paths: description: Output number tags: - fake + x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: '*/*' x-tags: @@ -986,6 +996,7 @@ paths: description: Output string tags: - fake + x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: '*/*' x-tags: @@ -1010,6 +1021,7 @@ paths: description: Output boolean tags: - fake + x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: '*/*' x-tags: @@ -1034,6 +1046,7 @@ paths: description: Output composite tags: - fake + x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: '*/*' x-tags: @@ -1086,6 +1099,7 @@ paths: summary: test inline additionalProperties tags: - fake + x-codegen-request-body-name: param x-contentType: application/json x-accepts: application/json x-tags: @@ -1111,6 +1125,7 @@ paths: description: Success tags: - fake + x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json x-tags: @@ -1136,6 +1151,7 @@ paths: summary: To test special tags tags: - $another-fake? + x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json x-tags: @@ -1156,6 +1172,7 @@ paths: description: Success tags: - fake + x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json x-tags: diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java index b9cdc6298ff..55a8d00a1c3 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -42,7 +42,7 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java index a74f6c182df..50c6c4a7c17 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java @@ -62,7 +62,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/outer/composite", produces = { "*/*" }, method = RequestMethod.POST) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite outerComposite) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -106,7 +106,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-file-schema", consumes = { "application/json" }, method = RequestMethod.PUT) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -118,7 +118,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-query-params", consumes = { "application/json" }, method = RequestMethod.PUT) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -131,7 +131,7 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -190,7 +190,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/inline-additionalProperties", consumes = { "application/json" }, method = RequestMethod.POST) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map requestBody) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 9f412d244c2..4e589b0335b 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -44,7 +44,7 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java index 868684630f0..2e973fd0dfe 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/PetApi.java @@ -48,7 +48,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.POST) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,7 +171,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.PUT) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java index 28296c6aa5d..3fe37376d4a 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/StoreApi.java @@ -95,7 +95,7 @@ public interface StoreApi { @RequestMapping(value = "/store/order", produces = { "application/xml", "application/json" }, method = RequestMethod.POST) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java index 085b38cf3e1..7de4df1f38c 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/UserApi.java @@ -41,7 +41,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user", method = RequestMethod.POST) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -52,7 +52,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -63,7 +63,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithList", method = RequestMethod.POST) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -137,7 +137,7 @@ public interface UserApi { @ApiResponse(code = 404, message = "User not found") }) @RequestMapping(value = "/user/{username}", method = RequestMethod.PUT) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java index 9898cb4c7dc..ab90c0038d5 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/AnotherFakeApi.java @@ -46,7 +46,7 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java index 258e11820ff..b139a5797e6 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java @@ -67,7 +67,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/outer/composite", produces = { "*/*" }, method = RequestMethod.POST) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite outerComposite) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -114,7 +114,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-file-schema", consumes = { "application/json" }, method = RequestMethod.PUT) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -127,7 +127,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-query-params", consumes = { "application/json" }, method = RequestMethod.PUT) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -141,7 +141,7 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -204,7 +204,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/inline-additionalProperties", consumes = { "application/json" }, method = RequestMethod.POST) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map requestBody) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java index d1af25787b1..d5b6bfcf981 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeClassnameTestApi.java @@ -48,7 +48,7 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java index 30220a4aba8..705b0a8c316 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/PetApi.java @@ -52,7 +52,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.POST) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -180,7 +180,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.PUT) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java index a71a9bdde1b..b9e9b9fcf92 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/StoreApi.java @@ -102,7 +102,7 @@ public interface StoreApi { @RequestMapping(value = "/store/order", produces = { "application/xml", "application/json" }, method = RequestMethod.POST) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java index caf8a91e5e6..e1f678c97cf 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/UserApi.java @@ -45,7 +45,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user", method = RequestMethod.POST) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -57,7 +57,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -69,7 +69,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithList", method = RequestMethod.POST) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -148,7 +148,7 @@ public interface UserApi { @ApiResponse(code = 404, message = "User not found") }) @RequestMapping(value = "/user/{username}", method = RequestMethod.PUT) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java index b9cdc6298ff..55a8d00a1c3 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java @@ -42,7 +42,7 @@ public interface AnotherFakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java index 685b61285f2..1fc42569baa 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java @@ -62,7 +62,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/outer/composite", produces = { "*/*" }, method = RequestMethod.POST) - default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite outerComposite) { + default ResponseEntity fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid @RequestBody OuterComposite body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) { @@ -106,7 +106,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-file-schema", consumes = { "application/json" }, method = RequestMethod.PUT) - default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass) { + default ResponseEntity testBodyWithFileSchema(@ApiParam(value = "" ,required=true ) @Valid @RequestBody FileSchemaTestClass body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -118,7 +118,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/body-with-query-params", consumes = { "application/json" }, method = RequestMethod.PUT) - default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity testBodyWithQueryParams(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,@ApiParam(value = "" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -131,7 +131,7 @@ public interface FakeApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity testClientModel(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { @@ -190,7 +190,7 @@ public interface FakeApi { @RequestMapping(value = "/fake/inline-additionalProperties", consumes = { "application/json" }, method = RequestMethod.POST) - default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map requestBody) { + default ResponseEntity testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true ) @Valid @RequestBody Map param) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java index 9f412d244c2..4e589b0335b 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeClassnameTestApi.java @@ -44,7 +44,7 @@ public interface FakeClassnameTestApi { produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.PATCH) - default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) { + default ResponseEntity testClassname(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java index 93d45c8b8c4..81d55a77ee2 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/PetApi.java @@ -48,7 +48,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.POST) - default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default ResponseEntity addPet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -171,7 +171,7 @@ public interface PetApi { @RequestMapping(value = "/pet", consumes = { "application/json", "application/xml" }, method = RequestMethod.PUT) - default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet pet) { + default ResponseEntity updatePet(@ApiParam(value = "Pet object that needs to be added to the store" ,required=true ) @Valid @RequestBody Pet body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java index 28296c6aa5d..3fe37376d4a 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/StoreApi.java @@ -95,7 +95,7 @@ public interface StoreApi { @RequestMapping(value = "/store/order", produces = { "application/xml", "application/json" }, method = RequestMethod.POST) - default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order order) { + default ResponseEntity placeOrder(@ApiParam(value = "order placed for purchasing the pet" ,required=true ) @Valid @RequestBody Order body) { getRequest().ifPresent(request -> { for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) { diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java index 085b38cf3e1..7de4df1f38c 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/UserApi.java @@ -41,7 +41,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user", method = RequestMethod.POST) - default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity createUser(@ApiParam(value = "Created user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -52,7 +52,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithArray", method = RequestMethod.POST) - default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default ResponseEntity createUsersWithArrayInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -63,7 +63,7 @@ public interface UserApi { @ApiResponse(code = 200, message = "successful operation") }) @RequestMapping(value = "/user/createWithList", method = RequestMethod.POST) - default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List user) { + default ResponseEntity createUsersWithListInput(@ApiParam(value = "List of user object" ,required=true ) @Valid @RequestBody List body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } @@ -137,7 +137,7 @@ public interface UserApi { @ApiResponse(code = 404, message = "User not found") }) @RequestMapping(value = "/user/{username}", method = RequestMethod.PUT) - default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User user) { + default ResponseEntity updateUser(@ApiParam(value = "name that need to be deleted",required=true) @PathVariable("username") String username,@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); }