Skip to content

Commit

Permalink
update templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoegel committed Oct 27, 2023
1 parent a808545 commit 3f117a2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions custom_templates/apiInner.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
}
Expand Down
2 changes: 1 addition & 1 deletion custom_templates/package.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3f117a2

Please sign in to comment.