mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 01:12:43 +00:00
Fix 7511: [Ada] Client call is not correct with multiple parameters and application/x-www-urlencoded (#7512)
* Fix calling the 'Call' procedure to submit the request for the Ada client when a request has form parameters * Rebuild the files by running bin/ada-petstore.sh
This commit is contained in:
committed by
William Cheng
parent
3035bc629b
commit
4bd8fc6e8a
@@ -130,7 +130,7 @@ package body Samples.Petstore.Clients is
|
||||
|
||||
URI.Set_Path ("/pet/{petId}");
|
||||
URI.Set_Path_Param ("petId", Swagger.To_String (Pet_Id));
|
||||
Client.Call (Swagger.Clients.POST, URI);
|
||||
Client.Call (Swagger.Clients.POST, URI, Req);
|
||||
end Update_Pet_With_Form;
|
||||
|
||||
-- uploads an image
|
||||
@@ -151,7 +151,7 @@ package body Samples.Petstore.Clients is
|
||||
|
||||
URI.Set_Path ("/pet/{petId}/uploadImage");
|
||||
URI.Set_Path_Param ("petId", Swagger.To_String (Pet_Id));
|
||||
Client.Call (Swagger.Clients.POST, URI, Reply);
|
||||
Client.Call (Swagger.Clients.POST, URI, Req, Reply);
|
||||
Samples.Petstore.Models.Deserialize (Reply, "", Result);
|
||||
end Upload_File;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user