diff --git a/custom_templates/apiInner.mustache b/custom_templates/apiInner.mustache index f03a2fc..9e54f08 100644 --- a/custom_templates/apiInner.mustache +++ b/custom_templates/apiInner.mustache @@ -127,7 +127,29 @@ export const {{classname}}AxiosParamCreator = function (configuration?: Configur {{paramName}}; {{/isDate}} {{^isDate}} + {{#isExplode}} + {{#isPrimitiveType}} localVarQueryParameter['{{baseName}}'] = {{paramName}}; + {{/isPrimitiveType}} + {{^isPrimitiveType}} + {{^isEnumRef}} + {{^isEnum}} + for (const [key, value] of Object.entries({{paramName}})) { + localVarQueryParameter[key] = value; + } + {{/isEnum}} + {{/isEnumRef}} + {{#isEnum}} + localVarQueryParameter['{{baseName}}'] = {{paramName}}; + {{/isEnum}} + {{#isEnumRef}} + localVarQueryParameter['{{baseName}}'] = {{paramName}}; + {{/isEnumRef}} + {{/isPrimitiveType}} + {{/isExplode}} + {{^isExplode}} + localVarQueryParameter['{{baseName}}'] = {{paramName}}; + {{/isExplode}} {{/isDate}} {{/isDateTime}} } diff --git a/custom_templates/package.mustache b/custom_templates/package.mustache index 690ab63..419e61f 100644 --- a/custom_templates/package.mustache +++ b/custom_templates/package.mustache @@ -24,7 +24,7 @@ "scripts": { "build": "tsc {{#supportsES6}}&& tsc -p tsconfig.esm.json{{/supportsES6}}", "prepare": "npm run build", - "test": "jest --coverage" + "test": "jest --coverage --detectOpenHandles" }, "dependencies": { "axios": "^0.27.2",