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..65ae970cd8b5c 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}} @@ -181,7 +179,7 @@ export class {{classname}}RequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } {{/authMethods}} - + {{^useInversify}} const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) {