Skip to content

Commit

Permalink
typescript-fetch: Properly detect and encode container request body p…
Browse files Browse the repository at this point in the history
…aram

Signed-off-by: Prateek Malhotra <[email protected]>
Co-Authored-By: Esteban Gehring <[email protected]>
  • Loading branch information
someone1 and macjohnny committed Aug 5, 2019
1 parent fae0738 commit 8496ba6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class {{classname}} extends runtime.BaseAPI {
{{#hasBodyParam}}
{{#bodyParam}}
{{#isContainer}}
body: requestParameters.{{paramName}}.map({{#items}}{{datatype}}{{/items}}ToJSON),
body: requestParameters.{{paramName}}{{#isListContainer}}{{#items}}{{^isPrimitiveType}}.map({{datatype}}ToJSON){{/isPrimitiveType}}{{/items}}{{/isListContainer}},
{{/isContainer}}
{{^isContainer}}
{{^isPrimitiveType}}
Expand Down

0 comments on commit 8496ba6

Please sign in to comment.