From 3472c68e0bcd261fd526c9fe3c0de8d573c0611e Mon Sep 17 00:00:00 2001 From: Ramkumar Chandrasekaran Date: Thu, 19 Oct 2017 10:16:56 +0000 Subject: [PATCH] bug fixes (#6743) --- modules/swagger-codegen/src/main/resources/r/api.mustache | 2 +- modules/swagger-codegen/src/main/resources/r/model.mustache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/r/api.mustache b/modules/swagger-codegen/src/main/resources/r/api.mustache index eb64e29cdb2..c2f9f75fbea 100644 --- a/modules/swagger-codegen/src/main/resources/r/api.mustache +++ b/modules/swagger-codegen/src/main/resources/r/api.mustache @@ -67,7 +67,7 @@ {{#hasBodyParam}} {{#bodyParams}} if (!missing(`{{paramName}}`)) { - body <- `{{paramName}}`$toJSON() + body <- `{{paramName}}`$toJSONString() } {{/bodyParams}} {{/hasBodyParam}} diff --git a/modules/swagger-codegen/src/main/resources/r/model.mustache b/modules/swagger-codegen/src/main/resources/r/model.mustache index 9181c8e51e2..94ae74085e2 100644 --- a/modules/swagger-codegen/src/main/resources/r/model.mustache +++ b/modules/swagger-codegen/src/main/resources/r/model.mustache @@ -98,7 +98,7 @@ sprintf( '{ {{#vars}} - "{{baseName}}": {{#isListContainer}}[{{/isListContainer}}{{#isPrimitiveType}}{{#isNumeric}}%d{{/isNumeric}}{{^isNumeric}}"%s"{{/isNumeric}}{{/isPrimitiveType}}{{^isPrimitiveType}}%s{{/isPrimitiveType}}{{#isListContainer}}]{{/isListContainer}}{{#hasMore}},{{/hasMore}} + "{{baseName}}": {{#isListContainer}}[{{/isListContainer}}{{#isPrimitiveType}}{{#isNumeric}}%d{{/isNumeric}}{{^isNumeric}}%s{{/isNumeric}}{{/isPrimitiveType}}{{^isPrimitiveType}}%s{{/isPrimitiveType}}{{#isListContainer}}]{{/isListContainer}}{{#hasMore}},{{/hasMore}} {{/vars}} }', {{#vars}}