Skip to content

Commit

Permalink
Fixes the non-working query parameter when it's a Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanVas committed Nov 29, 2024
1 parent 19e2141 commit 2f85120
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 2f85120

Please sign in to comment.