diff --git a/src/main/resources/handlebars/typescript-fetch/api.mustache b/src/main/resources/handlebars/typescript-fetch/api.mustache index 50c4688dbe..1c84f1edcb 100644 --- a/src/main/resources/handlebars/typescript-fetch/api.mustache +++ b/src/main/resources/handlebars/typescript-fetch/api.mustache @@ -52,7 +52,7 @@ export class BaseAPI { this.basePath = configuration.basePath || this.basePath; } } -}; +} /** * @@ -222,7 +222,7 @@ export const {{classname}}FetchParamCreator = function (configuration?: Configur {{/bodyParam}} localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; + localVarUrlObj.search = null; localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); {{#hasFormParams}} localVarRequestOptions.body = localVarFormParams.toString();