Skip to content

Commit 9c489d4

Browse files
committed
Fix node template
1 parent c6ba7a4 commit 9c489d4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

codegen/Templates/nodejs/api.mustache

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ export class {{classname}} {
470470

471471
{{#formParams}}
472472
{{^isFile}}
473+
{{^vendorExtensions.x-param-group-camel}}
473474
if (request.{{paramName}} != null) {
474475
{{^isListContainer}}
475476
formParams.push(['{{baseName}}', ObjectSerializer.serialize(request.{{paramName}}, {{#isString}}'string'{{/isString}}{{^isString}}'{{{dataType}}}'{{/isString}})]);
@@ -480,6 +481,12 @@ export class {{classname}} {
480481
}
481482
{{/isListContainer}}
482483
}
484+
{{/vendorExtensions.x-param-group-camel}}
485+
{{#vendorExtensions.x-param-group-camel}}
486+
if (request.{{vendorExtensions.x-param-group-camel}}?.{{paramName}} != null) {
487+
formParams.push(['{{baseName}}', ObjectSerializer.serialize(request.{{vendorExtensions.x-param-group-camel}}.{{paramName}}, {{#isString}}'string'{{/isString}}{{^isString}}'{{{dataType}}}'{{/isString}})]);
488+
}
489+
{{/vendorExtensions.x-param-group-camel}}
483490
{{/isFile}}
484491
{{/formParams}}
485492
const requestOptions: ApiRequestOptions = {

0 commit comments

Comments
 (0)