-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 7459: [Ada] wrong JSON in POST operations (#7460)
* Fix Ada client generated code to avoid having a spurious body name for parameters passed in the body * Run bin/ada-petstore.sh to update the generated Ada client samples
- Loading branch information
Showing
6 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.3.0-SNAPSHOT | ||
2.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
-- OpenAPI spec version: 1.0.0 | ||
-- Contact: [email protected] | ||
-- | ||
-- NOTE: This package is auto generated by the swagger code generator 2.3.0-SNAPSHOT. | ||
-- NOTE: This package is auto generated by the swagger code generator 2.3.1. | ||
-- https://github.com/swagger-api/swagger-codegen.git | ||
-- Do not edit the class manually. | ||
with Swagger.Streams; | ||
|
@@ -21,7 +21,7 @@ package body Samples.Petstore.Clients is | |
Swagger.Clients.APPLICATION_JSON)); | ||
Client.Initialize (Req, (Swagger.Clients.APPLICATION_JSON, | ||
Swagger.Clients.APPLICATION_XML)); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "body", P_Body); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "", P_Body); | ||
|
||
URI.Set_Path ("/pet"); | ||
Client.Call (Swagger.Clients.POST, URI, Req); | ||
|
@@ -107,7 +107,7 @@ package body Samples.Petstore.Clients is | |
Swagger.Clients.APPLICATION_JSON)); | ||
Client.Initialize (Req, (Swagger.Clients.APPLICATION_JSON, | ||
Swagger.Clients.APPLICATION_XML)); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "body", P_Body); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "", P_Body); | ||
|
||
URI.Set_Path ("/pet"); | ||
Client.Call (Swagger.Clients.PUT, URI, Req); | ||
|
@@ -215,7 +215,7 @@ package body Samples.Petstore.Clients is | |
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML, | ||
Swagger.Clients.APPLICATION_JSON)); | ||
Client.Initialize (Req, (1 => Swagger.Clients.APPLICATION_JSON)); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "body", P_Body); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "", P_Body); | ||
|
||
URI.Set_Path ("/store/order"); | ||
Client.Call (Swagger.Clients.POST, URI, Req, Reply); | ||
|
@@ -233,7 +233,7 @@ package body Samples.Petstore.Clients is | |
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML, | ||
Swagger.Clients.APPLICATION_JSON)); | ||
Client.Initialize (Req, (1 => Swagger.Clients.APPLICATION_JSON)); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "body", P_Body); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "", P_Body); | ||
|
||
URI.Set_Path ("/user"); | ||
Client.Call (Swagger.Clients.POST, URI, Req); | ||
|
@@ -249,7 +249,7 @@ package body Samples.Petstore.Clients is | |
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML, | ||
Swagger.Clients.APPLICATION_JSON)); | ||
Client.Initialize (Req, (1 => Swagger.Clients.APPLICATION_JSON)); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "body", P_Body); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "", P_Body); | ||
|
||
URI.Set_Path ("/user/createWithArray"); | ||
Client.Call (Swagger.Clients.POST, URI, Req); | ||
|
@@ -265,7 +265,7 @@ package body Samples.Petstore.Clients is | |
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML, | ||
Swagger.Clients.APPLICATION_JSON)); | ||
Client.Initialize (Req, (1 => Swagger.Clients.APPLICATION_JSON)); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "body", P_Body); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "", P_Body); | ||
|
||
URI.Set_Path ("/user/createWithList"); | ||
Client.Call (Swagger.Clients.POST, URI, Req); | ||
|
@@ -346,7 +346,7 @@ package body Samples.Petstore.Clients is | |
Client.Set_Accept ((Swagger.Clients.APPLICATION_XML, | ||
Swagger.Clients.APPLICATION_JSON)); | ||
Client.Initialize (Req, (1 => Swagger.Clients.APPLICATION_JSON)); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "body", P_Body); | ||
Samples.Petstore.Models.Serialize (Req.Stream, "", P_Body); | ||
|
||
URI.Set_Path ("/user/{username}"); | ||
URI.Set_Path_Param ("username", Username); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
-- OpenAPI spec version: 1.0.0 | ||
-- Contact: [email protected] | ||
-- | ||
-- NOTE: This package is auto generated by the swagger code generator 2.3.0-SNAPSHOT. | ||
-- NOTE: This package is auto generated by the swagger code generator 2.3.1. | ||
-- https://github.com/swagger-api/swagger-codegen.git | ||
-- Do not edit the class manually. | ||
with Samples.Petstore.Models; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
-- OpenAPI spec version: 1.0.0 | ||
-- Contact: [email protected] | ||
-- | ||
-- NOTE: This package is auto generated by the swagger code generator 2.3.0-SNAPSHOT. | ||
-- NOTE: This package is auto generated by the swagger code generator 2.3.1. | ||
-- https://github.com/swagger-api/swagger-codegen.git | ||
-- Do not edit the class manually. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
-- OpenAPI spec version: 1.0.0 | ||
-- Contact: [email protected] | ||
-- | ||
-- NOTE: This package is auto generated by the swagger code generator 2.3.0-SNAPSHOT. | ||
-- NOTE: This package is auto generated by the swagger code generator 2.3.1. | ||
-- https://github.com/swagger-api/swagger-codegen.git | ||
-- Do not edit the class manually. | ||
with Swagger.Streams; | ||
|