diff --git a/modules/swagger-codegen/src/main/resources/Ada/client-body.mustache b/modules/swagger-codegen/src/main/resources/Ada/client-body.mustache index bd2632e1d6e..87531d73180 100644 --- a/modules/swagger-codegen/src/main/resources/Ada/client-body.mustache +++ b/modules/swagger-codegen/src/main/resources/Ada/client-body.mustache @@ -24,7 +24,7 @@ package body {{package}}.Clients is {{/hasMore}}{{/produces}}));{{/hasProduces}}{{#hasBodyParam}} Client.Initialize (Req, ({{#hasConsumes}}{{#consumes}}{{#vendorExtensions.x-has-uniq-consumes}}1 -> {{/vendorExtensions.x-has-uniq-consumes}}Swagger.Clients.{{adaMediaType}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{/hasConsumes}}{{^hasConsumes}}1 => Swagger.Clients.APPLICATION_JSON{{/hasConsumes}}));{{#bodyParams}}{{#vendorExtensions.x-is-model-type}} - {{package}}.Models.Serialize (Req.Stream, "{{baseName}}", {{paramName}});{{/vendorExtensions.x-is-model-type}}{{^vendorExtensions.x-is-model-type}}{{#isFile}} + {{package}}.Models.Serialize (Req.Stream, "", {{paramName}});{{/vendorExtensions.x-is-model-type}}{{^vendorExtensions.x-is-model-type}}{{#isFile}} -- TODO: Serialize (Req.Stream, "{{basename}}", {{paramName}});{{/isFile}}{{^isFile}}{{^isLong}} Req.Stream.Write_Entity ("{{baseName}}", {{paramName}});{{/isLong}}{{#isLong}} Serialize (Req.Stream, "{{baseName}}", {{paramName}});{{/isLong}}{{/isFile}}{{/vendorExtensions.x-is-model-type}}{{/bodyParams}}{{/hasBodyParam}}{{#hasFormParams}} diff --git a/samples/client/petstore/ada/.swagger-codegen/VERSION b/samples/client/petstore/ada/.swagger-codegen/VERSION index f9f7450d135..a6254504e40 100644 --- a/samples/client/petstore/ada/.swagger-codegen/VERSION +++ b/samples/client/petstore/ada/.swagger-codegen/VERSION @@ -1 +1 @@ -2.3.0-SNAPSHOT \ No newline at end of file +2.3.1 \ No newline at end of file diff --git a/samples/client/petstore/ada/src/client/samples-petstore-clients.adb b/samples/client/petstore/ada/src/client/samples-petstore-clients.adb index c9fba09ea69..e1e43f722b7 100644 --- a/samples/client/petstore/ada/src/client/samples-petstore-clients.adb +++ b/samples/client/petstore/ada/src/client/samples-petstore-clients.adb @@ -4,7 +4,7 @@ -- OpenAPI spec version: 1.0.0 -- Contact: apiteam@swagger.io -- --- 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); diff --git a/samples/client/petstore/ada/src/client/samples-petstore-clients.ads b/samples/client/petstore/ada/src/client/samples-petstore-clients.ads index 5821707ea0c..2a944ec5233 100644 --- a/samples/client/petstore/ada/src/client/samples-petstore-clients.ads +++ b/samples/client/petstore/ada/src/client/samples-petstore-clients.ads @@ -4,7 +4,7 @@ -- OpenAPI spec version: 1.0.0 -- Contact: apiteam@swagger.io -- --- 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; diff --git a/samples/client/petstore/ada/src/model/samples-petstore-models.adb b/samples/client/petstore/ada/src/model/samples-petstore-models.adb index 542b67a2fd9..5264bcdf35c 100644 --- a/samples/client/petstore/ada/src/model/samples-petstore-models.adb +++ b/samples/client/petstore/ada/src/model/samples-petstore-models.adb @@ -4,7 +4,7 @@ -- OpenAPI spec version: 1.0.0 -- Contact: apiteam@swagger.io -- --- 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. diff --git a/samples/client/petstore/ada/src/model/samples-petstore-models.ads b/samples/client/petstore/ada/src/model/samples-petstore-models.ads index 9a5759d85e4..252feb95277 100644 --- a/samples/client/petstore/ada/src/model/samples-petstore-models.ads +++ b/samples/client/petstore/ada/src/model/samples-petstore-models.ads @@ -4,7 +4,7 @@ -- OpenAPI spec version: 1.0.0 -- Contact: apiteam@swagger.io -- --- 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;