diff --git a/modules/openapi-generator/src/main/resources/typescript/api/api.mustache b/modules/openapi-generator/src/main/resources/typescript/api/api.mustache index 0ad7fa1ca6863..4861a3d385f1b 100644 --- a/modules/openapi-generator/src/main/resources/typescript/api/api.mustache +++ b/modules/openapi-generator/src/main/resources/typescript/api/api.mustache @@ -78,9 +78,7 @@ export class {{classname}}RequestFactory extends BaseAPIRequestFactory { } {{/isArray}} {{^isArray}} - for (const key of Object.keys(serializedParams)) { - requestContext.setQueryParam(key, serializedParams[key]); - } + requestContext.setQueryParam("{{baseName}}", serializedParams); {{/isArray}} {{/isExplode}} {{^isExplode}}