From 2fe9c800857999ae23a593b384cf24bbebcb5203 Mon Sep 17 00:00:00 2001 From: facundomedica <14063057+facundomedica@users.noreply.github.com> Date: Fri, 6 Mar 2020 10:10:41 -0300 Subject: [PATCH] added named params to typescript-axios --- .../src/main/resources/typescript-axios/apiInner.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache index 9f798331db7c..ed8c7d9d4933 100644 --- a/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache @@ -317,8 +317,8 @@ export class {{classname}} extends BaseAPI { * @throws {RequiredError} * @memberof {{classname}} */ - public {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: any) { - return {{classname}}Fp(this.configuration).{{nickname}}({{#allParams}}{{paramName}}, {{/allParams}}options)(this.axios, this.basePath); + public {{nickname}}(params:{ {{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: any}) { + return {{classname}}Fp(this.configuration).{{nickname}}({{#allParams}}params.{{paramName}}, {{/allParams}}params.options)(this.axios, this.basePath); } {{/operation}}