From 30b0a16ef1123d236d77462efa690f5142a61931 Mon Sep 17 00:00:00 2001 From: coffeemakr <5737978+coffeemakr@users.noreply.github.com> Date: Wed, 8 Apr 2026 12:57:57 +0200 Subject: [PATCH] [javascript] [typescript] [php] [ruby] Simplify url parameter replacement code --- .../Javascript-Closure-Angular/api.mustache | 2 +- .../es6/api.mustache | 2 +- .../Javascript-Flowtyped/api.mustache | 2 +- .../main/resources/php-nextgen/api.mustache | 2 +- .../src/main/resources/php/api.mustache | 2 +- .../php/libraries/psr-18/api.mustache | 2 +- .../main/resources/ruby-client/api.mustache | 2 +- .../typescript-angularjs/api.mustache | 2 +- .../typescript-axios/apiInner.mustache | 2 +- .../resources/typescript-fetch/apis.mustache | 10 +++++----- .../resources/typescript-jquery/api.mustache | 2 +- .../typescript-node/api-single.mustache | 2 +- .../typescript-redux-query/apis.mustache | 2 +- .../resources/typescript/api/api.mustache | 2 +- .../php-nextgen-streaming/src/Api/PathApi.php | 8 ++++---- .../echo_api/php-nextgen/src/Api/PathApi.php | 8 ++++---- .../lib/openapi_client/api/path_api.rb | 2 +- .../lib/openapi_client/api/path_api.rb | 2 +- .../lib/openapi_client/api/path_api.rb | 2 +- .../echo_api/typescript-axios/build/api.ts | 8 ++++---- .../echo_api/typescript/build/apis/PathApi.ts | 8 ++++---- .../OpenAPIClient-php/src/Api/FakeApi.php | 2 +- .../OpenAPIClient-php/src/Api/PetApi.php | 10 +++++----- .../OpenAPIClient-php/src/Api/StoreApi.php | 4 ++-- .../OpenAPIClient-php/src/Api/UserApi.php | 6 +++--- .../php/OpenAPIClient-php/lib/Api/PetApi.php | 14 ++++++------- .../OpenAPIClient-php/lib/Api/StoreApi.php | 4 ++-- .../php/OpenAPIClient-php/lib/Api/UserApi.php | 6 +++--- .../petstore/php/psr-18/lib/Api/PetApi.php | 14 ++++++------- .../petstore/php/psr-18/lib/Api/StoreApi.php | 4 ++-- .../petstore/php/psr-18/lib/Api/UserApi.php | 6 +++--- .../ruby-autoload/lib/petstore/api/pet_api.rb | 10 +++++----- .../lib/petstore/api/store_api.rb | 4 ++-- .../lib/petstore/api/user_api.rb | 6 +++--- .../ruby-faraday/lib/petstore/api/pet_api.rb | 10 +++++----- .../lib/petstore/api/store_api.rb | 4 ++-- .../ruby-faraday/lib/petstore/api/user_api.rb | 6 +++--- .../ruby-httpx/lib/petstore/api/pet_api.rb | 10 +++++----- .../ruby-httpx/lib/petstore/api/store_api.rb | 4 ++-- .../ruby-httpx/lib/petstore/api/user_api.rb | 6 +++--- .../petstore/ruby/lib/petstore/api/pet_api.rb | 10 +++++----- .../ruby/lib/petstore/api/store_api.rb | 4 ++-- .../ruby/lib/petstore/api/user_api.rb | 6 +++--- .../typescript-axios/builds/default/api.ts | 18 ++++++++--------- .../typescript-axios/builds/es6-target/api.ts | 18 ++++++++--------- .../builds/test-petstore/api.ts | 20 +++++++++---------- .../builds/with-complex-headers/api.ts | 18 ++++++++--------- .../api.ts | 20 +++++++++---------- .../api.ts | 18 ++++++++--------- .../builds/with-interfaces/api.ts | 18 ++++++++--------- .../builds/with-node-imports/api.ts | 18 ++++++++--------- .../api/another/level/pet-api.ts | 8 ++++---- .../api/another/level/store-api.ts | 4 ++-- .../api/another/level/user-api.ts | 6 +++--- .../builds/with-npm-version/api.ts | 18 ++++++++--------- .../with-single-request-parameters/api.ts | 18 ++++++++--------- .../builds/with-string-enums/api.ts | 18 ++++++++--------- .../builds/allOf-nullable/apis/DefaultApi.ts | 2 +- .../builds/allOf-readonly/apis/DefaultApi.ts | 2 +- .../builds/default-v3.0/apis/PetApi.ts | 10 +++++----- .../builds/default-v3.0/apis/StoreApi.ts | 4 ++-- .../builds/default-v3.0/apis/UserApi.ts | 6 +++--- .../builds/default/apis/PetApi.ts | 8 ++++---- .../builds/default/apis/StoreApi.ts | 4 ++-- .../builds/default/apis/UserApi.ts | 6 +++--- .../builds/es6-target/src/apis/PetApi.ts | 8 ++++---- .../builds/es6-target/src/apis/StoreApi.ts | 4 ++-- .../builds/es6-target/src/apis/UserApi.ts | 6 +++--- .../builds/multiple-parameters/apis/PetApi.ts | 8 ++++---- .../multiple-parameters/apis/StoreApi.ts | 4 ++-- .../multiple-parameters/apis/UserApi.ts | 6 +++--- .../src/apis/PetApi.ts | 8 ++++---- .../src/apis/StoreApi.ts | 4 ++-- .../src/apis/UserApi.ts | 6 +++--- .../sagas-and-records/src/apis/BehaviorApi.ts | 4 ++-- .../sagas-and-records/src/apis/PetApi.ts | 12 +++++------ .../sagas-and-records/src/apis/PetPartApi.ts | 4 ++-- .../sagas-and-records/src/apis/StoreApi.ts | 4 ++-- .../sagas-and-records/src/apis/UserApi.ts | 6 +++--- .../snakecase-discriminator/apis/PetApi.ts | 10 +++++----- .../snakecase-discriminator/apis/StoreApi.ts | 4 ++-- .../snakecase-discriminator/apis/UserApi.ts | 6 +++--- .../validation-attributes/apis/PetApi.ts | 8 ++++---- .../validation-attributes/apis/StoreApi.ts | 4 ++-- .../validation-attributes/apis/UserApi.ts | 6 +++--- .../builds/with-interfaces/apis/PetApi.ts | 8 ++++---- .../builds/with-interfaces/apis/StoreApi.ts | 4 ++-- .../builds/with-interfaces/apis/UserApi.ts | 6 +++--- .../with-npm-version/src/apis/PetApi.ts | 8 ++++---- .../with-npm-version/src/apis/StoreApi.ts | 4 ++-- .../with-npm-version/src/apis/UserApi.ts | 6 +++--- .../without-runtime-checks/src/apis/PetApi.ts | 8 ++++---- .../src/apis/StoreApi.ts | 4 ++-- .../src/apis/UserApi.ts | 6 +++--- .../typescript-jquery/default/api/PetApi.ts | 8 ++++---- .../typescript-jquery/default/api/StoreApi.ts | 4 ++-- .../typescript-jquery/default/api/UserApi.ts | 6 +++--- .../typescript-jquery/npm/api/PetApi.ts | 8 ++++---- .../typescript-jquery/npm/api/StoreApi.ts | 4 ++-- .../typescript-jquery/npm/api/UserApi.ts | 6 +++--- .../typescript-node/3_0/api/advancedApi.ts | 4 ++-- .../typescript-node/3_0/api/defaultApi.ts | 2 +- .../typescript-node/default/api/petApi.ts | 8 ++++---- .../typescript-node/default/api/storeApi.ts | 4 ++-- .../typescript-node/default/api/userApi.ts | 6 +++--- .../typescript-node/npm/api/petApi.ts | 8 ++++---- .../typescript-node/npm/api/storeApi.ts | 4 ++-- .../typescript-node/npm/api/userApi.ts | 6 +++--- .../with-npm-version/src/apis/PetApi.ts | 8 ++++---- .../with-npm-version/src/apis/StoreApi.ts | 4 ++-- .../with-npm-version/src/apis/UserApi.ts | 6 +++--- .../typescript/builds/browser/apis/PetApi.ts | 8 ++++---- .../builds/browser/apis/StoreApi.ts | 4 ++-- .../typescript/builds/browser/apis/UserApi.ts | 6 +++--- .../typescript/builds/default/apis/PetApi.ts | 8 ++++---- .../builds/default/apis/StoreApi.ts | 4 ++-- .../typescript/builds/default/apis/UserApi.ts | 6 +++--- .../typescript/builds/deno/apis/PetApi.ts | 8 ++++---- .../typescript/builds/deno/apis/StoreApi.ts | 4 ++-- .../typescript/builds/deno/apis/UserApi.ts | 6 +++--- .../builds/deno_object_params/apis/PetApi.ts | 8 ++++---- .../deno_object_params/apis/StoreApi.ts | 4 ++-- .../builds/deno_object_params/apis/UserApi.ts | 6 +++--- .../builds/explode-query/apis/PetApi.ts | 10 +++++----- .../builds/explode-query/apis/StoreApi.ts | 4 ++-- .../builds/explode-query/apis/UserApi.ts | 6 +++--- .../builds/inversify/apis/PetApi.ts | 8 ++++---- .../builds/inversify/apis/StoreApi.ts | 4 ++-- .../builds/inversify/apis/UserApi.ts | 6 +++--- .../typescript/builds/jquery/apis/PetApi.ts | 8 ++++---- .../typescript/builds/jquery/apis/StoreApi.ts | 4 ++-- .../typescript/builds/jquery/apis/UserApi.ts | 6 +++--- .../builds/object_params/apis/PetApi.ts | 8 ++++---- .../builds/object_params/apis/StoreApi.ts | 4 ++-- .../builds/object_params/apis/UserApi.ts | 6 +++--- 135 files changed, 452 insertions(+), 452 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Javascript-Closure-Angular/api.mustache b/modules/openapi-generator/src/main/resources/Javascript-Closure-Angular/api.mustache index 58d630891735..d73e7c9d82fd 100644 --- a/modules/openapi-generator/src/main/resources/Javascript-Closure-Angular/api.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript-Closure-Angular/api.mustache @@ -66,7 +66,7 @@ goog.require('{{import}}'); {{package}}.{{classname}}.prototype.{{nickname}} = function({{#allParams}}{{^required}}opt_{{/required}}{{paramName}}, {{/allParams}}opt_extraHttpRequestParams) { /** @const {string} */ var path = this.basePath_ + '{{{path}}}'{{#pathParams}} - .replace('{' + '{{baseName}}' + '}', String({{^required}}opt_{{/required}}{{paramName}})){{/pathParams}}; + .replace({{=<< >>=}}'{<>}'<<={{ }}=>>, String({{^required}}opt_{{/required}}{{paramName}})){{/pathParams}}; /** @type {!Object} */ var queryParameters = {}; diff --git a/modules/openapi-generator/src/main/resources/Javascript-Closure-Angular/es6/api.mustache b/modules/openapi-generator/src/main/resources/Javascript-Closure-Angular/es6/api.mustache index c0df3cd07f1d..672ca9b0dd0a 100644 --- a/modules/openapi-generator/src/main/resources/Javascript-Closure-Angular/es6/api.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript-Closure-Angular/es6/api.mustache @@ -56,7 +56,7 @@ export default class {{classname}} { method: '{{httpMethod}}', url: this.basePath + '{{{path}}}' {{#pathParams}} - .replace('{' + '{{baseName}}' + '}', ':{{paramName}}') + .replace({{=<< >>=}}'{<>}'<<={{ }}=>>, ':{{paramName}}') {{/pathParams}} } } diff --git a/modules/openapi-generator/src/main/resources/Javascript-Flowtyped/api.mustache b/modules/openapi-generator/src/main/resources/Javascript-Flowtyped/api.mustache index d072e83a5382..71664631260e 100644 --- a/modules/openapi-generator/src/main/resources/Javascript-Flowtyped/api.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript-Flowtyped/api.mustache @@ -89,7 +89,7 @@ export const {{classname}}FetchParamCreator = function (configuration?: Configur {{/required}} {{/allParams}} const localVarPath = `{{{path}}}`{{#pathParams}} - .replace(`{${"{{baseName}}"}}`, encodeURIComponent(String({{paramName}}))){{/pathParams}}; + .replace({{=<< >>=}}'{<>}'<<={{ }}=>>, encodeURIComponent(String({{paramName}}))){{/pathParams}}; const localVarUrlObj = url.parse(localVarPath, true); const localVarRequestOptions: RequestOptions = Object.assign({}, { method: '{{httpMethod}}' }, options); const localVarHeaderParameter = {}; diff --git a/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache b/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache index e2b3b02b4bc7..a16f59353e01 100644 --- a/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache +++ b/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache @@ -718,7 +718,7 @@ use {{invokerPackage}}\ObjectSerializer; {{/collectionFormat}} if (${{paramName}} !== null) { $resourcePath = str_replace( - '{' . '{{baseName}}' . '}', + {{=<< >>=}}'{<>}'<<={{ }}=>>, ObjectSerializer::toPathValue(${{paramName}}{{#isEnumRef}}->value{{/isEnumRef}}), $resourcePath ); diff --git a/modules/openapi-generator/src/main/resources/php/api.mustache b/modules/openapi-generator/src/main/resources/php/api.mustache index 7d25f0d82d4e..11cd9754eefa 100644 --- a/modules/openapi-generator/src/main/resources/php/api.mustache +++ b/modules/openapi-generator/src/main/resources/php/api.mustache @@ -640,7 +640,7 @@ use {{invokerPackage}}\ObjectSerializer; {{/collectionFormat}} if (${{paramName}} !== null) { $resourcePath = str_replace( - '{' . '{{baseName}}' . '}', + {{=<< >>=}}'{<>}'<<={{ }}=>>, ObjectSerializer::toPathValue(${{paramName}}), $resourcePath ); diff --git a/modules/openapi-generator/src/main/resources/php/libraries/psr-18/api.mustache b/modules/openapi-generator/src/main/resources/php/libraries/psr-18/api.mustache index cbc048f79c88..4bd8d16f9748 100644 --- a/modules/openapi-generator/src/main/resources/php/libraries/psr-18/api.mustache +++ b/modules/openapi-generator/src/main/resources/php/libraries/psr-18/api.mustache @@ -598,7 +598,7 @@ use function sprintf; {{/collectionFormat}} if (${{paramName}} !== null) { $resourcePath = str_replace( - '{' . '{{baseName}}' . '}', + {{=<< >>=}}'{<>}'<<={{ }}=>>, ObjectSerializer::toPathValue(${{paramName}}), $resourcePath ); diff --git a/modules/openapi-generator/src/main/resources/ruby-client/api.mustache b/modules/openapi-generator/src/main/resources/ruby-client/api.mustache index d15c8b54be64..6bfa987b65ea 100644 --- a/modules/openapi-generator/src/main/resources/ruby-client/api.mustache +++ b/modules/openapi-generator/src/main/resources/ruby-client/api.mustache @@ -170,7 +170,7 @@ module {{moduleName}} {{/hasValidation}} {{/allParams}} # resource path - local_var_path = '{{{path}}}'{{#pathParams}}.sub('{' + '{{baseName}}' + '}', CGI.escape({{paramName}}.to_s){{^strictSpecBehavior}}.gsub('%2F', '/'){{/strictSpecBehavior}}){{/pathParams}} + local_var_path = '{{{path}}}'{{#pathParams}}.sub({{=<< >>=}}'{<>}'<<={{ }}=>>, CGI.escape({{paramName}}.to_s){{^strictSpecBehavior}}.gsub('%2F', '/'){{/strictSpecBehavior}}){{/pathParams}} # query parameters query_params = opts[:query_params] || {} diff --git a/modules/openapi-generator/src/main/resources/typescript-angularjs/api.mustache b/modules/openapi-generator/src/main/resources/typescript-angularjs/api.mustache index 0669640bddb9..0c482e2e9101 100644 --- a/modules/openapi-generator/src/main/resources/typescript-angularjs/api.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-angularjs/api.mustache @@ -35,7 +35,7 @@ export class {{classname}} { */ public {{nickname}} ({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}extraHttpRequestParams?: any ) : ng.IHttpPromise<{{{returnType}}}{{^returnType}}{}{{/returnType}}> { const localVarPath = this.basePath + '{{{path}}}'{{#pathParams}} - .replace('{' + '{{baseName}}' + '}', encodeURIComponent(String({{paramName}}))){{/pathParams}}; + .replace({{=<< >>=}}'{<>}'<<={{ }}=>>, encodeURIComponent(String({{paramName}}))){{/pathParams}}; let queryParameters: any = {}; let headerParams: any = (Object).assign({}, this.defaultHeaders); 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 a8ee51b3cc4a..f68146f67678 100644 --- a/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache @@ -55,7 +55,7 @@ export const {{classname}}AxiosParamCreator = function (configuration?: Configur {{/required}} {{/allParams}} const localVarPath = `{{{path}}}`{{#pathParams}} - .replace(`{${"{{baseName}}"}}`, encodeURIComponent(String({{paramName}}))){{/pathParams}}; + .replace({{=<< >>=}}'{<>}'<<={{ }}=>>, encodeURIComponent(String({{paramName}}))){{/pathParams}}; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache index 7815a1bac7b7..84639cd69649 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache @@ -295,21 +295,21 @@ export class {{classname}} extends runtime.BaseAPI { {{#pathParams}} {{#isDateTimeType}} if (requestParameters['{{paramName}}'] instanceof Date) { - urlPath = urlPath.replace(`{${"{{baseName}}"}}`, encodeURIComponent(requestParameters['{{paramName}}'].toISOString())); + urlPath = urlPath.replace({{=<< >>=}}'{<>}'<<={{ }}=>>, encodeURIComponent(requestParameters['{{paramName}}'].toISOString())); } else { - urlPath = urlPath.replace(`{${"{{baseName}}"}}`, encodeURIComponent(String(requestParameters['{{paramName}}']))); + urlPath = urlPath.replace({{=<< >>=}}'{<>}'<<={{ }}=>>, encodeURIComponent(String(requestParameters['{{paramName}}']))); } {{/isDateTimeType}} {{^isDateTimeType}} {{#isDateType}} if (requestParameters['{{paramName}}'] instanceof Date) { - urlPath = urlPath.replace(`{${"{{baseName}}"}}`, encodeURIComponent(requestParameters['{{paramName}}'].toISOString().substring(0,10))); + urlPath = urlPath.replace({{=<< >>=}}'{<>}'<<={{ }}=>>, encodeURIComponent(requestParameters['{{paramName}}'].toISOString().substring(0,10))); } else { - urlPath = urlPath.replace(`{${"{{baseName}}"}}`, encodeURIComponent(String(requestParameters['{{paramName}}']))); + urlPath = urlPath.replace({{=<< >>=}}'{<>}'<<={{ }}=>>, encodeURIComponent(String(requestParameters['{{paramName}}']))); } {{/isDateType}} {{^isDateType}} - urlPath = urlPath.replace(`{${"{{baseName}}"}}`, encodeURIComponent(String(requestParameters['{{paramName}}']))); + urlPath = urlPath.replace({{=<< >>=}}'{<>}'<<={{ }}=>>, encodeURIComponent(String(requestParameters['{{paramName}}']))); {{/isDateType}} {{/isDateTimeType}} {{/pathParams}} diff --git a/modules/openapi-generator/src/main/resources/typescript-jquery/api.mustache b/modules/openapi-generator/src/main/resources/typescript-jquery/api.mustache index 2bab24a6a2ab..f1bb6f27d48f 100644 --- a/modules/openapi-generator/src/main/resources/typescript-jquery/api.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-jquery/api.mustache @@ -60,7 +60,7 @@ export class {{classname}} { { response: JQueryXHR; {{#returnType}}body: {{{.}}}; {{/returnType}}{{^returnType}}body?: any; {{/returnType}} }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '{{{path}}}'{{#pathParams}}.replace('{' + '{{baseName}}' + '}', encodeURIComponent(String({{paramName}}))){{/pathParams}}; + let localVarPath = this.basePath + '{{{path}}}'{{#pathParams}}.replace({{=<< >>=}}'{<>}'<<={{ }}=>>, encodeURIComponent(String({{paramName}}))){{/pathParams}}; let queryParameters: any = {}; let headerParams: any = {}; diff --git a/modules/openapi-generator/src/main/resources/typescript-node/api-single.mustache b/modules/openapi-generator/src/main/resources/typescript-node/api-single.mustache index 99c84a6fbb41..1dfd236f7a1d 100644 --- a/modules/openapi-generator/src/main/resources/typescript-node/api-single.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-node/api-single.mustache @@ -160,7 +160,7 @@ export class {{classname}} { */ public async {{nickname}} ({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; {{#returnType}}body: {{{.}}}; {{/returnType}}{{^returnType}}body?: any; {{/returnType}} }> { const localVarPath = this.basePath + '{{{path}}}'{{#pathParams}} - .replace('{' + '{{baseName}}' + '}', encodeURIComponent(String({{paramName}}))){{/pathParams}}; + .replace({{=<< >>=}}'{<>}'<<={{ }}=>>, encodeURIComponent(String({{paramName}}))){{/pathParams}}; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); {{#hasProduces}} diff --git a/modules/openapi-generator/src/main/resources/typescript-redux-query/apis.mustache b/modules/openapi-generator/src/main/resources/typescript-redux-query/apis.mustache index 29d656c58bb1..9c8c4e2d0f93 100644 --- a/modules/openapi-generator/src/main/resources/typescript-redux-query/apis.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-redux-query/apis.mustache @@ -157,7 +157,7 @@ function {{nickname}}Raw({{#allParams.0}}requestParameters: {{operationIdCame {{/isArray}} {{/formParams}} const config: QueryConfig = { - url: `${runtime.Configuration.basePath}{{{path}}}`{{#pathParams}}.replace(`{${"{{baseName}}"}}`, encodeURIComponent(String(requestParameters.{{paramName}}))){{/pathParams}}, + url: `${runtime.Configuration.basePath}{{{path}}}`{{#pathParams}}.replace({{=<< >>=}}'{<>}'<<={{ }}=>>, encodeURIComponent(String(requestParameters.{{paramName}}))){{/pathParams}}, meta, update: requestConfig.update, queryKey: requestConfig.queryKey, diff --git a/modules/openapi-generator/src/main/resources/typescript/api/api.mustache b/modules/openapi-generator/src/main/resources/typescript/api/api.mustache index f8ace4e90cf1..b90e9599e77d 100644 --- a/modules/openapi-generator/src/main/resources/typescript/api/api.mustache +++ b/modules/openapi-generator/src/main/resources/typescript/api/api.mustache @@ -61,7 +61,7 @@ export class {{classname}}RequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '{{{path}}}'{{#pathParams}} - .replace('{' + '{{baseName}}' + '}', encodeURIComponent(String({{paramName}}))){{/pathParams}}; + .replace({{=<< >>=}}'{<>}'<<={{ }}=>>, encodeURIComponent(String({{paramName}}))){{/pathParams}}; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.{{httpMethod}}); diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Api/PathApi.php b/samples/client/echo_api/php-nextgen-streaming/src/Api/PathApi.php index a170ac22e644..743d39715b1a 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Api/PathApi.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Api/PathApi.php @@ -397,7 +397,7 @@ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathE // path params if ($path_string !== null) { $resourcePath = str_replace( - '{' . 'path_string' . '}', + '{path_string}', ObjectSerializer::toPathValue($path_string), $resourcePath ); @@ -405,7 +405,7 @@ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathE // path params if ($path_integer !== null) { $resourcePath = str_replace( - '{' . 'path_integer' . '}', + '{path_integer}', ObjectSerializer::toPathValue($path_integer), $resourcePath ); @@ -413,7 +413,7 @@ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathE // path params if ($enum_nonref_string_path !== null) { $resourcePath = str_replace( - '{' . 'enum_nonref_string_path' . '}', + '{enum_nonref_string_path}', ObjectSerializer::toPathValue($enum_nonref_string_path), $resourcePath ); @@ -421,7 +421,7 @@ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathE // path params if ($enum_ref_string_path !== null) { $resourcePath = str_replace( - '{' . 'enum_ref_string_path' . '}', + '{enum_ref_string_path}', ObjectSerializer::toPathValue($enum_ref_string_path->value), $resourcePath ); diff --git a/samples/client/echo_api/php-nextgen/src/Api/PathApi.php b/samples/client/echo_api/php-nextgen/src/Api/PathApi.php index a170ac22e644..743d39715b1a 100644 --- a/samples/client/echo_api/php-nextgen/src/Api/PathApi.php +++ b/samples/client/echo_api/php-nextgen/src/Api/PathApi.php @@ -397,7 +397,7 @@ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathE // path params if ($path_string !== null) { $resourcePath = str_replace( - '{' . 'path_string' . '}', + '{path_string}', ObjectSerializer::toPathValue($path_string), $resourcePath ); @@ -405,7 +405,7 @@ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathE // path params if ($path_integer !== null) { $resourcePath = str_replace( - '{' . 'path_integer' . '}', + '{path_integer}', ObjectSerializer::toPathValue($path_integer), $resourcePath ); @@ -413,7 +413,7 @@ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathE // path params if ($enum_nonref_string_path !== null) { $resourcePath = str_replace( - '{' . 'enum_nonref_string_path' . '}', + '{enum_nonref_string_path}', ObjectSerializer::toPathValue($enum_nonref_string_path), $resourcePath ); @@ -421,7 +421,7 @@ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathE // path params if ($enum_ref_string_path !== null) { $resourcePath = str_replace( - '{' . 'enum_ref_string_path' . '}', + '{enum_ref_string_path}', ObjectSerializer::toPathValue($enum_ref_string_path->value), $resourcePath ); diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/path_api.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/path_api.rb index fb89890c71ef..ae181e52d421 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/path_api.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/path_api.rb @@ -66,7 +66,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e fail ArgumentError, "Missing the required parameter 'enum_ref_string_path' when calling PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path" end # resource path - local_var_path = '/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}'.sub('{' + 'path_string' + '}', CGI.escape(path_string.to_s)).sub('{' + 'path_integer' + '}', CGI.escape(path_integer.to_s)).sub('{' + 'enum_nonref_string_path' + '}', CGI.escape(enum_nonref_string_path.to_s)).sub('{' + 'enum_ref_string_path' + '}', CGI.escape(enum_ref_string_path.to_s)) + local_var_path = '/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}'.sub('{path_string}', CGI.escape(path_string.to_s)).sub('{path_integer}', CGI.escape(path_integer.to_s)).sub('{enum_nonref_string_path}', CGI.escape(enum_nonref_string_path.to_s)).sub('{enum_ref_string_path}', CGI.escape(enum_ref_string_path.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/path_api.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/path_api.rb index fb89890c71ef..ae181e52d421 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/path_api.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/path_api.rb @@ -66,7 +66,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e fail ArgumentError, "Missing the required parameter 'enum_ref_string_path' when calling PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path" end # resource path - local_var_path = '/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}'.sub('{' + 'path_string' + '}', CGI.escape(path_string.to_s)).sub('{' + 'path_integer' + '}', CGI.escape(path_integer.to_s)).sub('{' + 'enum_nonref_string_path' + '}', CGI.escape(enum_nonref_string_path.to_s)).sub('{' + 'enum_ref_string_path' + '}', CGI.escape(enum_ref_string_path.to_s)) + local_var_path = '/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}'.sub('{path_string}', CGI.escape(path_string.to_s)).sub('{path_integer}', CGI.escape(path_integer.to_s)).sub('{enum_nonref_string_path}', CGI.escape(enum_nonref_string_path.to_s)).sub('{enum_ref_string_path}', CGI.escape(enum_ref_string_path.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/path_api.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/path_api.rb index fb89890c71ef..ae181e52d421 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/path_api.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/path_api.rb @@ -66,7 +66,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e fail ArgumentError, "Missing the required parameter 'enum_ref_string_path' when calling PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path" end # resource path - local_var_path = '/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}'.sub('{' + 'path_string' + '}', CGI.escape(path_string.to_s)).sub('{' + 'path_integer' + '}', CGI.escape(path_integer.to_s)).sub('{' + 'enum_nonref_string_path' + '}', CGI.escape(enum_nonref_string_path.to_s)).sub('{' + 'enum_ref_string_path' + '}', CGI.escape(enum_ref_string_path.to_s)) + local_var_path = '/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}'.sub('{path_string}', CGI.escape(path_string.to_s)).sub('{path_integer}', CGI.escape(path_integer.to_s)).sub('{enum_nonref_string_path}', CGI.escape(enum_nonref_string_path.to_s)).sub('{enum_ref_string_path}', CGI.escape(enum_ref_string_path.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/echo_api/typescript-axios/build/api.ts b/samples/client/echo_api/typescript-axios/build/api.ts index 3c66401a6f49..0b63de32ebdb 100644 --- a/samples/client/echo_api/typescript-axios/build/api.ts +++ b/samples/client/echo_api/typescript-axios/build/api.ts @@ -1484,10 +1484,10 @@ export const PathApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'enumRefStringPath' is not null or undefined assertParamExists('testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath', 'enumRefStringPath', enumRefStringPath) const localVarPath = `/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}` - .replace(`{${"path_string"}}`, encodeURIComponent(String(pathString))) - .replace(`{${"path_integer"}}`, encodeURIComponent(String(pathInteger))) - .replace(`{${"enum_nonref_string_path"}}`, encodeURIComponent(String(enumNonrefStringPath))) - .replace(`{${"enum_ref_string_path"}}`, encodeURIComponent(String(enumRefStringPath))); + .replace('{path_string}', encodeURIComponent(String(pathString))) + .replace('{path_integer}', encodeURIComponent(String(pathInteger))) + .replace('{enum_nonref_string_path}', encodeURIComponent(String(enumNonrefStringPath))) + .replace('{enum_ref_string_path}', encodeURIComponent(String(enumRefStringPath))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/echo_api/typescript/build/apis/PathApi.ts b/samples/client/echo_api/typescript/build/apis/PathApi.ts index 04aa49c504d2..933ee9028d48 100644 --- a/samples/client/echo_api/typescript/build/apis/PathApi.ts +++ b/samples/client/echo_api/typescript/build/apis/PathApi.ts @@ -54,10 +54,10 @@ export class PathApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}' - .replace('{' + 'path_string' + '}', encodeURIComponent(String(pathString))) - .replace('{' + 'path_integer' + '}', encodeURIComponent(String(pathInteger))) - .replace('{' + 'enum_nonref_string_path' + '}', encodeURIComponent(String(enumNonrefStringPath))) - .replace('{' + 'enum_ref_string_path' + '}', encodeURIComponent(String(enumRefStringPath))); + .replace('{path_string}', encodeURIComponent(String(pathString))) + .replace('{path_integer}', encodeURIComponent(String(pathInteger))) + .replace('{enum_nonref_string_path}', encodeURIComponent(String(enumNonrefStringPath))) + .replace('{enum_ref_string_path}', encodeURIComponent(String(enumRefStringPath))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php index c20ea5e0852e..6704610eb210 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php @@ -658,7 +658,7 @@ public function fakeDeletePetRequest( // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'pet_id' . '}', + '{pet_id}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php index 912be7151209..53c6ac04b145 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php @@ -734,7 +734,7 @@ public function deletePetRequest( // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -1593,7 +1593,7 @@ public function getPetByIdRequest( // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -2248,7 +2248,7 @@ public function updatePetWithFormRequest( // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -2564,7 +2564,7 @@ public function uploadFileRequest( // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -2886,7 +2886,7 @@ public function uploadFileWithRequiredFileRequest( // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApi.php index 21754bb2c1fe..2ad52bc5fc9a 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApi.php @@ -306,7 +306,7 @@ public function deleteOrderRequest( // path params if ($order_id !== null) { $resourcePath = str_replace( - '{' . 'order_id' . '}', + '{order_id}', ObjectSerializer::toPathValue($order_id), $resourcePath ); @@ -851,7 +851,7 @@ public function getOrderByIdRequest( // path params if ($order_id !== null) { $resourcePath = str_replace( - '{' . 'order_id' . '}', + '{order_id}', ObjectSerializer::toPathValue($order_id), $resourcePath ); diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApi.php index a9b6f7079c21..2bc42f0ac101 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApi.php @@ -1008,7 +1008,7 @@ public function deleteUserRequest( // path params if ($username !== null) { $resourcePath = str_replace( - '{' . 'username' . '}', + '{username}', ObjectSerializer::toPathValue($username), $resourcePath ); @@ -1287,7 +1287,7 @@ public function getUserByNameRequest( // path params if ($username !== null) { $resourcePath = str_replace( - '{' . 'username' . '}', + '{username}', ObjectSerializer::toPathValue($username), $resourcePath ); @@ -2047,7 +2047,7 @@ public function updateUserRequest( // path params if ($username !== null) { $resourcePath = str_replace( - '{' . 'username' . '}', + '{username}', ObjectSerializer::toPathValue($username), $resourcePath ); diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php index 0e75b91decb8..53019cc2775e 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php @@ -697,7 +697,7 @@ public function deletePetRequest($pet_id, $api_key = null, string $contentType = // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -1520,7 +1520,7 @@ public function getPetByIdRequest($pet_id, string $contentType = self::contentTy // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -2127,7 +2127,7 @@ public function updatePetWithFormRequest($pet_id, $name = null, $status = null, // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -2421,7 +2421,7 @@ public function uploadFileRequest($pet_id, $additional_metadata = null, $file = // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -2722,7 +2722,7 @@ public function uploadFileWithRequiredFileRequest($pet_id, $required_file, $addi // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -3065,7 +3065,7 @@ public function uploadImageFullFormDataRequest($pet_id, $name, $photo_urls, $id // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -3360,7 +3360,7 @@ public function uploadImageFullFormDataNestedRequest($pet_id, $pet = null, strin // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php index 61f4a8fb2043..39322ee24f40 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php @@ -292,7 +292,7 @@ public function deleteOrderRequest($order_id, string $contentType = self::conten // path params if ($order_id !== null) { $resourcePath = str_replace( - '{' . 'order_id' . '}', + '{order_id}', ObjectSerializer::toPathValue($order_id), $resourcePath ); @@ -819,7 +819,7 @@ public function getOrderByIdRequest($order_id, string $contentType = self::conte // path params if ($order_id !== null) { $resourcePath = str_replace( - '{' . 'order_id' . '}', + '{order_id}', ObjectSerializer::toPathValue($order_id), $resourcePath ); diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php index 9ca803b93f67..9db7ecc25207 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php @@ -955,7 +955,7 @@ public function deleteUserRequest($username, string $contentType = self::content // path params if ($username !== null) { $resourcePath = str_replace( - '{' . 'username' . '}', + '{username}', ObjectSerializer::toPathValue($username), $resourcePath ); @@ -1223,7 +1223,7 @@ public function getUserByNameRequest($username, string $contentType = self::cont // path params if ($username !== null) { $resourcePath = str_replace( - '{' . 'username' . '}', + '{username}', ObjectSerializer::toPathValue($username), $resourcePath ); @@ -1941,7 +1941,7 @@ public function updateUserRequest($username, $user, string $contentType = self:: // path params if ($username !== null) { $resourcePath = str_replace( - '{' . 'username' . '}', + '{username}', ObjectSerializer::toPathValue($username), $resourcePath ); diff --git a/samples/client/petstore/php/psr-18/lib/Api/PetApi.php b/samples/client/petstore/php/psr-18/lib/Api/PetApi.php index 8d062e94d301..4db43fb81148 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/PetApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/PetApi.php @@ -584,7 +584,7 @@ public function deletePetRequest($pet_id, $api_key = null) // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -1366,7 +1366,7 @@ public function getPetByIdRequest($pet_id) // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -1839,7 +1839,7 @@ public function updatePetWithFormRequest($pet_id, $name = null, $status = null) // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -2120,7 +2120,7 @@ public function uploadFileRequest($pet_id, $additional_metadata = null, $file = // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -2407,7 +2407,7 @@ public function uploadFileWithRequiredFileRequest($pet_id, $required_file, $addi // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -2731,7 +2731,7 @@ public function uploadImageFullFormDataRequest($pet_id, $name, $photo_urls, $id // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); @@ -3013,7 +3013,7 @@ public function uploadImageFullFormDataNestedRequest($pet_id, $pet = null) // path params if ($pet_id !== null) { $resourcePath = str_replace( - '{' . 'petId' . '}', + '{petId}', ObjectSerializer::toPathValue($pet_id), $resourcePath ); diff --git a/samples/client/petstore/php/psr-18/lib/Api/StoreApi.php b/samples/client/petstore/php/psr-18/lib/Api/StoreApi.php index b4d0746b7bb0..27f636c447ca 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/StoreApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/StoreApi.php @@ -328,7 +328,7 @@ public function deleteOrderRequest($order_id) // path params if ($order_id !== null) { $resourcePath = str_replace( - '{' . 'order_id' . '}', + '{order_id}', ObjectSerializer::toPathValue($order_id), $resourcePath ); @@ -835,7 +835,7 @@ public function getOrderByIdRequest($order_id) // path params if ($order_id !== null) { $resourcePath = str_replace( - '{' . 'order_id' . '}', + '{order_id}', ObjectSerializer::toPathValue($order_id), $resourcePath ); diff --git a/samples/client/petstore/php/psr-18/lib/Api/UserApi.php b/samples/client/petstore/php/psr-18/lib/Api/UserApi.php index fdfa4b3b37de..44e2558a96d7 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/UserApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/UserApi.php @@ -955,7 +955,7 @@ public function deleteUserRequest($username) // path params if ($username !== null) { $resourcePath = str_replace( - '{' . 'username' . '}', + '{username}', ObjectSerializer::toPathValue($username), $resourcePath ); @@ -1212,7 +1212,7 @@ public function getUserByNameRequest($username) // path params if ($username !== null) { $resourcePath = str_replace( - '{' . 'username' . '}', + '{username}', ObjectSerializer::toPathValue($username), $resourcePath ); @@ -1908,7 +1908,7 @@ public function updateUserRequest($username, $user) // path params if ($username !== null) { $resourcePath = str_replace( - '{' . 'username' . '}', + '{username}', ObjectSerializer::toPathValue($username), $resourcePath ); diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api/pet_api.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api/pet_api.rb index 5e1d2aafe625..30b27a8d8db4 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api/pet_api.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api/pet_api.rb @@ -111,7 +111,7 @@ def delete_pet_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.delete_pet" end # resource path - local_var_path = '/pet/{petId}'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) + local_var_path = '/pet/{petId}'.sub('{petId}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -301,7 +301,7 @@ def get_pet_by_id_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.get_pet_by_id" end # resource path - local_var_path = '/pet/{petId}'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) + local_var_path = '/pet/{petId}'.sub('{petId}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -434,7 +434,7 @@ def update_pet_with_form_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.update_pet_with_form" end # resource path - local_var_path = '/pet/{petId}'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) + local_var_path = '/pet/{petId}'.sub('{petId}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -506,7 +506,7 @@ def upload_file_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.upload_file" end # resource path - local_var_path = '/pet/{petId}/uploadImage'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) + local_var_path = '/pet/{petId}/uploadImage'.sub('{petId}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -584,7 +584,7 @@ def upload_file_with_required_file_with_http_info(pet_id, required_file, opts = fail ArgumentError, "Missing the required parameter 'required_file' when calling PetApi.upload_file_with_required_file" end # resource path - local_var_path = '/fake/{petId}/uploadImageWithRequiredFile'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) + local_var_path = '/fake/{petId}/uploadImageWithRequiredFile'.sub('{petId}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api/store_api.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api/store_api.rb index 2f6154ecf858..f031221cf07e 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api/store_api.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api/store_api.rb @@ -43,7 +43,7 @@ def delete_order_with_http_info(order_id, opts = {}) fail ArgumentError, "Missing the required parameter 'order_id' when calling StoreApi.delete_order" end # resource path - local_var_path = '/store/order/{order_id}'.sub('{' + 'order_id' + '}', CGI.escape(order_id.to_s).gsub('%2F', '/')) + local_var_path = '/store/order/{order_id}'.sub('{order_id}', CGI.escape(order_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -169,7 +169,7 @@ def get_order_by_id_with_http_info(order_id, opts = {}) end # resource path - local_var_path = '/store/order/{order_id}'.sub('{' + 'order_id' + '}', CGI.escape(order_id.to_s).gsub('%2F', '/')) + local_var_path = '/store/order/{order_id}'.sub('{order_id}', CGI.escape(order_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api/user_api.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api/user_api.rb index a1ce31daabcd..3d0badc0df64 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api/user_api.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api/user_api.rb @@ -241,7 +241,7 @@ def delete_user_with_http_info(username, opts = {}) fail ArgumentError, "Missing the required parameter 'username' when calling UserApi.delete_user" end # resource path - local_var_path = '/user/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s).gsub('%2F', '/')) + local_var_path = '/user/{username}'.sub('{username}', CGI.escape(username.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -302,7 +302,7 @@ def get_user_by_name_with_http_info(username, opts = {}) fail ArgumentError, "Missing the required parameter 'username' when calling UserApi.get_user_by_name" end # resource path - local_var_path = '/user/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s).gsub('%2F', '/')) + local_var_path = '/user/{username}'.sub('{username}', CGI.escape(username.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -497,7 +497,7 @@ def update_user_with_http_info(username, user, opts = {}) fail ArgumentError, "Missing the required parameter 'user' when calling UserApi.update_user" end # resource path - local_var_path = '/user/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s).gsub('%2F', '/')) + local_var_path = '/user/{username}'.sub('{username}', CGI.escape(username.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/pet_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/pet_api.rb index 08fe771f0095..0f1ddea38677 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/pet_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/pet_api.rb @@ -111,7 +111,7 @@ def delete_pet_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.delete_pet" end # resource path - local_var_path = '/pet/{petId}'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s)) + local_var_path = '/pet/{petId}'.sub('{petId}', CGI.escape(pet_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -301,7 +301,7 @@ def get_pet_by_id_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.get_pet_by_id" end # resource path - local_var_path = '/pet/{petId}'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s)) + local_var_path = '/pet/{petId}'.sub('{petId}', CGI.escape(pet_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -434,7 +434,7 @@ def update_pet_with_form_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.update_pet_with_form" end # resource path - local_var_path = '/pet/{petId}'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s)) + local_var_path = '/pet/{petId}'.sub('{petId}', CGI.escape(pet_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -506,7 +506,7 @@ def upload_file_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.upload_file" end # resource path - local_var_path = '/pet/{petId}/uploadImage'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s)) + local_var_path = '/pet/{petId}/uploadImage'.sub('{petId}', CGI.escape(pet_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -584,7 +584,7 @@ def upload_file_with_required_file_with_http_info(pet_id, required_file, opts = fail ArgumentError, "Missing the required parameter 'required_file' when calling PetApi.upload_file_with_required_file" end # resource path - local_var_path = '/fake/{petId}/uploadImageWithRequiredFile'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s)) + local_var_path = '/fake/{petId}/uploadImageWithRequiredFile'.sub('{petId}', CGI.escape(pet_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/store_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/store_api.rb index 0ac464e870e6..326fdbec6760 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/store_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/store_api.rb @@ -43,7 +43,7 @@ def delete_order_with_http_info(order_id, opts = {}) fail ArgumentError, "Missing the required parameter 'order_id' when calling StoreApi.delete_order" end # resource path - local_var_path = '/store/order/{order_id}'.sub('{' + 'order_id' + '}', CGI.escape(order_id.to_s)) + local_var_path = '/store/order/{order_id}'.sub('{order_id}', CGI.escape(order_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -169,7 +169,7 @@ def get_order_by_id_with_http_info(order_id, opts = {}) end # resource path - local_var_path = '/store/order/{order_id}'.sub('{' + 'order_id' + '}', CGI.escape(order_id.to_s)) + local_var_path = '/store/order/{order_id}'.sub('{order_id}', CGI.escape(order_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/user_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/user_api.rb index 394ee676940a..a7c409d6de0f 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/user_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/user_api.rb @@ -241,7 +241,7 @@ def delete_user_with_http_info(username, opts = {}) fail ArgumentError, "Missing the required parameter 'username' when calling UserApi.delete_user" end # resource path - local_var_path = '/user/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s)) + local_var_path = '/user/{username}'.sub('{username}', CGI.escape(username.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -302,7 +302,7 @@ def get_user_by_name_with_http_info(username, opts = {}) fail ArgumentError, "Missing the required parameter 'username' when calling UserApi.get_user_by_name" end # resource path - local_var_path = '/user/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s)) + local_var_path = '/user/{username}'.sub('{username}', CGI.escape(username.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -497,7 +497,7 @@ def update_user_with_http_info(username, user, opts = {}) fail ArgumentError, "Missing the required parameter 'user' when calling UserApi.update_user" end # resource path - local_var_path = '/user/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s)) + local_var_path = '/user/{username}'.sub('{username}', CGI.escape(username.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api/pet_api.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api/pet_api.rb index 08fe771f0095..0f1ddea38677 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api/pet_api.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api/pet_api.rb @@ -111,7 +111,7 @@ def delete_pet_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.delete_pet" end # resource path - local_var_path = '/pet/{petId}'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s)) + local_var_path = '/pet/{petId}'.sub('{petId}', CGI.escape(pet_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -301,7 +301,7 @@ def get_pet_by_id_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.get_pet_by_id" end # resource path - local_var_path = '/pet/{petId}'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s)) + local_var_path = '/pet/{petId}'.sub('{petId}', CGI.escape(pet_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -434,7 +434,7 @@ def update_pet_with_form_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.update_pet_with_form" end # resource path - local_var_path = '/pet/{petId}'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s)) + local_var_path = '/pet/{petId}'.sub('{petId}', CGI.escape(pet_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -506,7 +506,7 @@ def upload_file_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.upload_file" end # resource path - local_var_path = '/pet/{petId}/uploadImage'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s)) + local_var_path = '/pet/{petId}/uploadImage'.sub('{petId}', CGI.escape(pet_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -584,7 +584,7 @@ def upload_file_with_required_file_with_http_info(pet_id, required_file, opts = fail ArgumentError, "Missing the required parameter 'required_file' when calling PetApi.upload_file_with_required_file" end # resource path - local_var_path = '/fake/{petId}/uploadImageWithRequiredFile'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s)) + local_var_path = '/fake/{petId}/uploadImageWithRequiredFile'.sub('{petId}', CGI.escape(pet_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api/store_api.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api/store_api.rb index 0ac464e870e6..326fdbec6760 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api/store_api.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api/store_api.rb @@ -43,7 +43,7 @@ def delete_order_with_http_info(order_id, opts = {}) fail ArgumentError, "Missing the required parameter 'order_id' when calling StoreApi.delete_order" end # resource path - local_var_path = '/store/order/{order_id}'.sub('{' + 'order_id' + '}', CGI.escape(order_id.to_s)) + local_var_path = '/store/order/{order_id}'.sub('{order_id}', CGI.escape(order_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -169,7 +169,7 @@ def get_order_by_id_with_http_info(order_id, opts = {}) end # resource path - local_var_path = '/store/order/{order_id}'.sub('{' + 'order_id' + '}', CGI.escape(order_id.to_s)) + local_var_path = '/store/order/{order_id}'.sub('{order_id}', CGI.escape(order_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api/user_api.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api/user_api.rb index 394ee676940a..a7c409d6de0f 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api/user_api.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api/user_api.rb @@ -241,7 +241,7 @@ def delete_user_with_http_info(username, opts = {}) fail ArgumentError, "Missing the required parameter 'username' when calling UserApi.delete_user" end # resource path - local_var_path = '/user/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s)) + local_var_path = '/user/{username}'.sub('{username}', CGI.escape(username.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -302,7 +302,7 @@ def get_user_by_name_with_http_info(username, opts = {}) fail ArgumentError, "Missing the required parameter 'username' when calling UserApi.get_user_by_name" end # resource path - local_var_path = '/user/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s)) + local_var_path = '/user/{username}'.sub('{username}', CGI.escape(username.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -497,7 +497,7 @@ def update_user_with_http_info(username, user, opts = {}) fail ArgumentError, "Missing the required parameter 'user' when calling UserApi.update_user" end # resource path - local_var_path = '/user/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s)) + local_var_path = '/user/{username}'.sub('{username}', CGI.escape(username.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/ruby/lib/petstore/api/pet_api.rb b/samples/client/petstore/ruby/lib/petstore/api/pet_api.rb index 5e1d2aafe625..30b27a8d8db4 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/pet_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/pet_api.rb @@ -111,7 +111,7 @@ def delete_pet_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.delete_pet" end # resource path - local_var_path = '/pet/{petId}'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) + local_var_path = '/pet/{petId}'.sub('{petId}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -301,7 +301,7 @@ def get_pet_by_id_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.get_pet_by_id" end # resource path - local_var_path = '/pet/{petId}'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) + local_var_path = '/pet/{petId}'.sub('{petId}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -434,7 +434,7 @@ def update_pet_with_form_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.update_pet_with_form" end # resource path - local_var_path = '/pet/{petId}'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) + local_var_path = '/pet/{petId}'.sub('{petId}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -506,7 +506,7 @@ def upload_file_with_http_info(pet_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pet_id' when calling PetApi.upload_file" end # resource path - local_var_path = '/pet/{petId}/uploadImage'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) + local_var_path = '/pet/{petId}/uploadImage'.sub('{petId}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -584,7 +584,7 @@ def upload_file_with_required_file_with_http_info(pet_id, required_file, opts = fail ArgumentError, "Missing the required parameter 'required_file' when calling PetApi.upload_file_with_required_file" end # resource path - local_var_path = '/fake/{petId}/uploadImageWithRequiredFile'.sub('{' + 'petId' + '}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) + local_var_path = '/fake/{petId}/uploadImageWithRequiredFile'.sub('{petId}', CGI.escape(pet_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/ruby/lib/petstore/api/store_api.rb b/samples/client/petstore/ruby/lib/petstore/api/store_api.rb index 2f6154ecf858..f031221cf07e 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/store_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/store_api.rb @@ -43,7 +43,7 @@ def delete_order_with_http_info(order_id, opts = {}) fail ArgumentError, "Missing the required parameter 'order_id' when calling StoreApi.delete_order" end # resource path - local_var_path = '/store/order/{order_id}'.sub('{' + 'order_id' + '}', CGI.escape(order_id.to_s).gsub('%2F', '/')) + local_var_path = '/store/order/{order_id}'.sub('{order_id}', CGI.escape(order_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -169,7 +169,7 @@ def get_order_by_id_with_http_info(order_id, opts = {}) end # resource path - local_var_path = '/store/order/{order_id}'.sub('{' + 'order_id' + '}', CGI.escape(order_id.to_s).gsub('%2F', '/')) + local_var_path = '/store/order/{order_id}'.sub('{order_id}', CGI.escape(order_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/ruby/lib/petstore/api/user_api.rb b/samples/client/petstore/ruby/lib/petstore/api/user_api.rb index a1ce31daabcd..3d0badc0df64 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/user_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/user_api.rb @@ -241,7 +241,7 @@ def delete_user_with_http_info(username, opts = {}) fail ArgumentError, "Missing the required parameter 'username' when calling UserApi.delete_user" end # resource path - local_var_path = '/user/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s).gsub('%2F', '/')) + local_var_path = '/user/{username}'.sub('{username}', CGI.escape(username.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -302,7 +302,7 @@ def get_user_by_name_with_http_info(username, opts = {}) fail ArgumentError, "Missing the required parameter 'username' when calling UserApi.get_user_by_name" end # resource path - local_var_path = '/user/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s).gsub('%2F', '/')) + local_var_path = '/user/{username}'.sub('{username}', CGI.escape(username.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -497,7 +497,7 @@ def update_user_with_http_info(username, user, opts = {}) fail ArgumentError, "Missing the required parameter 'user' when calling UserApi.update_user" end # resource path - local_var_path = '/user/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s).gsub('%2F', '/')) + local_var_path = '/user/{username}'.sub('{username}', CGI.escape(username.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/typescript-axios/builds/default/api.ts b/samples/client/petstore/typescript-axios/builds/default/api.ts index 2ac2e4d0d2cc..fb7b6744d6aa 100644 --- a/samples/client/petstore/typescript-axios/builds/default/api.ts +++ b/samples/client/petstore/typescript-axios/builds/default/api.ts @@ -163,7 +163,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('deletePet', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -286,7 +286,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('getPetById', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -363,7 +363,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('updatePetWithForm', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -413,7 +413,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('uploadFile', 'petId', petId) const localVarPath = `/pet/{petId}/uploadImage` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -791,7 +791,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('deleteOrder', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -857,7 +857,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('getOrderById', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1194,7 +1194,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('deleteUser', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1227,7 +1227,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('getUserByName', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1337,7 +1337,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'body' is not null or undefined assertParamExists('updateUser', 'body', body) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/api.ts b/samples/client/petstore/typescript-axios/builds/es6-target/api.ts index 2ac2e4d0d2cc..fb7b6744d6aa 100644 --- a/samples/client/petstore/typescript-axios/builds/es6-target/api.ts +++ b/samples/client/petstore/typescript-axios/builds/es6-target/api.ts @@ -163,7 +163,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('deletePet', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -286,7 +286,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('getPetById', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -363,7 +363,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('updatePetWithForm', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -413,7 +413,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('uploadFile', 'petId', petId) const localVarPath = `/pet/{petId}/uploadImage` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -791,7 +791,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('deleteOrder', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -857,7 +857,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('getOrderById', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1194,7 +1194,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('deleteUser', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1227,7 +1227,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('getUserByName', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1337,7 +1337,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'body' is not null or undefined assertParamExists('updateUser', 'body', body) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts b/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts index 6eaa5a2f77cc..8da12f3d4bac 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts @@ -2585,7 +2585,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('deletePet', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -2712,7 +2712,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('getPetById', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -2791,7 +2791,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('updatePetWithForm', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -2841,7 +2841,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('uploadFile', 'petId', petId) const localVarPath = `/pet/{petId}/uploadImage` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -2894,7 +2894,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'requiredFile' is not null or undefined assertParamExists('uploadFileWithRequiredFile', 'requiredFile', requiredFile) const localVarPath = `/fake/{petId}/uploadImageWithRequiredFile` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -3312,7 +3312,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('deleteOrder', 'orderId', orderId) const localVarPath = `/store/order/{order_id}` - .replace(`{${"order_id"}}`, encodeURIComponent(String(orderId))); + .replace('{order_id}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -3378,7 +3378,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('getOrderById', 'orderId', orderId) const localVarPath = `/store/order/{order_id}` - .replace(`{${"order_id"}}`, encodeURIComponent(String(orderId))); + .replace('{order_id}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -3715,7 +3715,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('deleteUser', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -3748,7 +3748,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('getUserByName', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -3858,7 +3858,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'user' is not null or undefined assertParamExists('updateUser', 'user', user) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts b/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts index 9207c4572143..7ba20dd1aade 100644 --- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts @@ -189,7 +189,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('deletePet', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -312,7 +312,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('getPetById', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -389,7 +389,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('updatePetWithForm', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -440,7 +440,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('uploadFile', 'petId', petId) const localVarPath = `/pet/{petId}/uploadImage` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -833,7 +833,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('deleteOrder', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -899,7 +899,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('getOrderById', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1236,7 +1236,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('deleteUser', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1269,7 +1269,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('getUserByName', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1379,7 +1379,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'user' is not null or undefined assertParamExists('updateUser', 'user', user) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts index 878ff210cc1d..610d8f24f2a9 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts @@ -2374,7 +2374,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('deletePet', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -2501,7 +2501,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('getPetById', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -2580,7 +2580,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('updatePetWithForm', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -2630,7 +2630,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('uploadFile', 'petId', petId) const localVarPath = `/pet/{petId}/uploadImage` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -2683,7 +2683,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'requiredFile' is not null or undefined assertParamExists('uploadFileWithRequiredFile', 'requiredFile', requiredFile) const localVarPath = `/fake/{petId}/uploadImageWithRequiredFile` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -3101,7 +3101,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('deleteOrder', 'orderId', orderId) const localVarPath = `/store/order/{order_id}` - .replace(`{${"order_id"}}`, encodeURIComponent(String(orderId))); + .replace('{order_id}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -3167,7 +3167,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('getOrderById', 'orderId', orderId) const localVarPath = `/store/order/{order_id}` - .replace(`{${"order_id"}}`, encodeURIComponent(String(orderId))); + .replace('{order_id}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -3504,7 +3504,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('deleteUser', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -3537,7 +3537,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('getUserByName', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -3647,7 +3647,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'user' is not null or undefined assertParamExists('updateUser', 'user', user) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/api.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/api.ts index dd6137586c99..631262349227 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/api.ts @@ -163,7 +163,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('deletePet', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -286,7 +286,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('getPetById', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -363,7 +363,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('updatePetWithForm', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -413,7 +413,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('uploadFile', 'petId', petId) const localVarPath = `/pet/{petId}/uploadImage` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -962,7 +962,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('deleteOrder', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1028,7 +1028,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('getOrderById', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1436,7 +1436,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('deleteUser', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1469,7 +1469,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('getUserByName', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1579,7 +1579,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'body' is not null or undefined assertParamExists('updateUser', 'body', body) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts index 7aa0130c6bbe..a2e7d8c95bb2 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts @@ -163,7 +163,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('deletePet', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -286,7 +286,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('getPetById', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -363,7 +363,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('updatePetWithForm', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -413,7 +413,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('uploadFile', 'petId', petId) const localVarPath = `/pet/{petId}/uploadImage` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -875,7 +875,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('deleteOrder', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -941,7 +941,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('getOrderById', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1319,7 +1319,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('deleteUser', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1352,7 +1352,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('getUserByName', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1462,7 +1462,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'body' is not null or undefined assertParamExists('updateUser', 'body', body) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts b/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts index 36335eab642e..2febb8cd9487 100644 --- a/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts @@ -167,7 +167,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('deletePet', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -290,7 +290,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('getPetById', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -367,7 +367,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('updatePetWithForm', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -417,7 +417,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('uploadFile', 'petId', petId) const localVarPath = `/pet/{petId}/uploadImage` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -795,7 +795,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('deleteOrder', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -861,7 +861,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('getOrderById', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1196,7 +1196,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('deleteUser', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1229,7 +1229,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('getUserByName', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1339,7 +1339,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'body' is not null or undefined assertParamExists('updateUser', 'body', body) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/pet-api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/pet-api.ts index 7dc28894571d..774e5cd55b70 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/pet-api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/pet-api.ts @@ -80,7 +80,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('deletePet', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -203,7 +203,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('getPetById', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -280,7 +280,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('updatePetWithForm', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -330,7 +330,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('uploadFile', 'petId', petId) const localVarPath = `/pet/{petId}/uploadImage` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/store-api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/store-api.ts index f3dcc9fa5d6b..9e976e79ef98 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/store-api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/store-api.ts @@ -39,7 +39,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('deleteOrder', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -105,7 +105,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('getOrderById', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/user-api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/user-api.ts index bb752b7de8cf..31ed23c92d02 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/user-api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/user-api.ts @@ -141,7 +141,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('deleteUser', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -174,7 +174,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('getUserByName', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -284,7 +284,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'body' is not null or undefined assertParamExists('updateUser', 'body', body) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts index 2ac2e4d0d2cc..fb7b6744d6aa 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts @@ -163,7 +163,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('deletePet', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -286,7 +286,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('getPetById', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -363,7 +363,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('updatePetWithForm', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -413,7 +413,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('uploadFile', 'petId', petId) const localVarPath = `/pet/{petId}/uploadImage` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -791,7 +791,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('deleteOrder', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -857,7 +857,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('getOrderById', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1194,7 +1194,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('deleteUser', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1227,7 +1227,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('getUserByName', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1337,7 +1337,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'body' is not null or undefined assertParamExists('updateUser', 'body', body) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/api.ts b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/api.ts index 58a68b44497f..5712fd37fd66 100644 --- a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/api.ts @@ -163,7 +163,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('deletePet', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -286,7 +286,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('getPetById', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -363,7 +363,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('updatePetWithForm', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -413,7 +413,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('uploadFile', 'petId', petId) const localVarPath = `/pet/{petId}/uploadImage` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -883,7 +883,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('deleteOrder', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -949,7 +949,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('getOrderById', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1314,7 +1314,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('deleteUser', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1347,7 +1347,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('getUserByName', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1457,7 +1457,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'body' is not null or undefined assertParamExists('updateUser', 'body', body) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts b/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts index 99cad5aab3d0..188ff2823dab 100644 --- a/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts @@ -159,7 +159,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('deletePet', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -282,7 +282,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('getPetById', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -359,7 +359,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('updatePetWithForm', 'petId', petId) const localVarPath = `/pet/{petId}` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -409,7 +409,7 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'petId' is not null or undefined assertParamExists('uploadFile', 'petId', petId) const localVarPath = `/pet/{petId}/uploadImage` - .replace(`{${"petId"}}`, encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -786,7 +786,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('deleteOrder', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -852,7 +852,7 @@ export const StoreApiAxiosParamCreator = function (configuration?: Configuration // verify required parameter 'orderId' is not null or undefined assertParamExists('getOrderById', 'orderId', orderId) const localVarPath = `/store/order/{orderId}` - .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1189,7 +1189,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('deleteUser', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1222,7 +1222,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'username' is not null or undefined assertParamExists('getUserByName', 'username', username) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -1332,7 +1332,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) // verify required parameter 'body' is not null or undefined assertParamExists('updateUser', 'body', body) const localVarPath = `/user/{username}` - .replace(`{${"username"}}`, encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/apis/DefaultApi.ts index 161e7843da3f..f1c75a0ec3a0 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/apis/DefaultApi.ts @@ -48,7 +48,7 @@ export class DefaultApi extends runtime.BaseAPI { let urlPath = `/person/display/{personId}`; - urlPath = urlPath.replace(`{${"personId"}}`, encodeURIComponent(String(requestParameters['personId']))); + urlPath = urlPath.replace('{personId}', encodeURIComponent(String(requestParameters['personId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/apis/DefaultApi.ts index 161e7843da3f..f1c75a0ec3a0 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/apis/DefaultApi.ts @@ -48,7 +48,7 @@ export class DefaultApi extends runtime.BaseAPI { let urlPath = `/person/display/{personId}`; - urlPath = urlPath.replace(`{${"personId"}}`, encodeURIComponent(String(requestParameters['personId']))); + urlPath = urlPath.replace('{personId}', encodeURIComponent(String(requestParameters['personId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/PetApi.ts index 6023f2567eeb..5205e91abde2 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/PetApi.ts @@ -152,7 +152,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -315,7 +315,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -442,7 +442,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -518,7 +518,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}/uploadImage`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -602,7 +602,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/fake/{petId}/uploadImageWithRequiredFile`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/StoreApi.ts index 3d4b3f1b0c46..4a790524529b 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/StoreApi.ts @@ -56,7 +56,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{order_id}`; - urlPath = urlPath.replace(`{${"order_id"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{order_id}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, @@ -145,7 +145,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{order_id}`; - urlPath = urlPath.replace(`{${"order_id"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{order_id}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/UserApi.ts index 029e2bea4d2b..6580ffc98410 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/UserApi.ts @@ -218,7 +218,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -264,7 +264,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -423,7 +423,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts index 360d2bff6ebc..d5608fc9429c 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts @@ -144,7 +144,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -305,7 +305,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -430,7 +430,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -504,7 +504,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}/uploadImage`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts index 71133d29c3d1..1622c8a87723 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts @@ -56,7 +56,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, @@ -145,7 +145,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts index 9240a2473288..4ce3912a8c8b 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts @@ -214,7 +214,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -260,7 +260,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -413,7 +413,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts index 360d2bff6ebc..d5608fc9429c 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts @@ -144,7 +144,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -305,7 +305,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -430,7 +430,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -504,7 +504,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}/uploadImage`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts index 71133d29c3d1..1622c8a87723 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts @@ -56,7 +56,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, @@ -145,7 +145,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts index 9240a2473288..4ce3912a8c8b 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts @@ -214,7 +214,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -260,7 +260,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -413,7 +413,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/PetApi.ts index 7121cdc16bfd..f13bc8742604 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/PetApi.ts @@ -144,7 +144,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -305,7 +305,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -430,7 +430,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -504,7 +504,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}/uploadImage`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/StoreApi.ts index ae3154c8ffad..e3adbb24eeec 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/StoreApi.ts @@ -56,7 +56,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, @@ -145,7 +145,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/UserApi.ts index ffb33048e34a..d1412c13e89f 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/UserApi.ts @@ -214,7 +214,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -260,7 +260,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -413,7 +413,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts index 5f3cc2bf87b9..0bcb943f31d8 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts @@ -144,7 +144,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -305,7 +305,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -430,7 +430,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -504,7 +504,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}/uploadImage`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts index 5a13cd0fa00c..3e8dcfaccf8d 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts @@ -56,7 +56,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, @@ -145,7 +145,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts index b7a2fd282f6a..fb4979f394fc 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts @@ -214,7 +214,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -260,7 +260,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -413,7 +413,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApi.ts index 05f0a2328e6c..bf88de611202 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApi.ts @@ -55,7 +55,7 @@ export class BehaviorApi extends runtime.BaseAPI { let urlPath = `/fake_behavior/{behavior-id}/permissions`; - urlPath = urlPath.replace(`{${"behavior-id"}}`, encodeURIComponent(String(requestParameters['behaviorId']))); + urlPath = urlPath.replace('{behavior-id}', encodeURIComponent(String(requestParameters['behaviorId']))); return { path: urlPath, @@ -100,7 +100,7 @@ export class BehaviorApi extends runtime.BaseAPI { let urlPath = `/fake_behavior/{behavior-id}/type`; - urlPath = urlPath.replace(`{${"behavior-id"}}`, encodeURIComponent(String(requestParameters['behaviorId']))); + urlPath = urlPath.replace('{behavior-id}', encodeURIComponent(String(requestParameters['behaviorId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApi.ts index 33583194ba17..220dbd36f35d 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApi.ts @@ -173,7 +173,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -450,7 +450,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -497,7 +497,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}/regions`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -602,7 +602,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}/regions`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -675,7 +675,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -749,7 +749,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}/uploadImage`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApi.ts index d2988d06445d..1cfcc4b1c9c4 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApi.ts @@ -60,7 +60,7 @@ export class PetPartApi extends runtime.BaseAPI { let urlPath = `/fake_petParts/{fake_petPart-id}/part-type`; - urlPath = urlPath.replace(`{${"fake_petPart-id"}}`, encodeURIComponent(String(requestParameters['fakePetPartId']))); + urlPath = urlPath.replace('{fake_petPart-id}', encodeURIComponent(String(requestParameters['fakePetPartId']))); return { path: urlPath, @@ -146,7 +146,7 @@ export class PetPartApi extends runtime.BaseAPI { let urlPath = `/fake_petParts/{fake_petPart-id}/matching-parts`; - urlPath = urlPath.replace(`{${"fake_petPart-id"}}`, encodeURIComponent(String(requestParameters['fakePetPartId']))); + urlPath = urlPath.replace('{fake_petPart-id}', encodeURIComponent(String(requestParameters['fakePetPartId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApi.ts index ae3154c8ffad..e3adbb24eeec 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApi.ts @@ -56,7 +56,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, @@ -145,7 +145,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApi.ts index eaa4dd9ddcf2..3c2cd85b9a52 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApi.ts @@ -217,7 +217,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -263,7 +263,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -416,7 +416,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/PetApi.ts index 6023f2567eeb..5205e91abde2 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/PetApi.ts @@ -152,7 +152,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -315,7 +315,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -442,7 +442,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -518,7 +518,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}/uploadImage`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -602,7 +602,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/fake/{petId}/uploadImageWithRequiredFile`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/StoreApi.ts index 3d4b3f1b0c46..4a790524529b 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/StoreApi.ts @@ -56,7 +56,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{order_id}`; - urlPath = urlPath.replace(`{${"order_id"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{order_id}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, @@ -145,7 +145,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{order_id}`; - urlPath = urlPath.replace(`{${"order_id"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{order_id}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/UserApi.ts index 029e2bea4d2b..6580ffc98410 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/UserApi.ts @@ -218,7 +218,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -264,7 +264,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -423,7 +423,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts index fa8cec4ceea6..5f6892fa5b44 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts @@ -147,7 +147,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -310,7 +310,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -438,7 +438,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -514,7 +514,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}/uploadImage`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts index 06fb6b1c2ca6..df3421386bc6 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts @@ -56,7 +56,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, @@ -145,7 +145,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts index c0eb473d38a3..b1aa122074e0 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts @@ -234,7 +234,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -280,7 +280,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -447,7 +447,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts index d231ba57571b..280282a61621 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts @@ -353,7 +353,7 @@ export class PetApi extends runtime.BaseAPI implements PetApiInterface { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -514,7 +514,7 @@ export class PetApi extends runtime.BaseAPI implements PetApiInterface { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -639,7 +639,7 @@ export class PetApi extends runtime.BaseAPI implements PetApiInterface { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -713,7 +713,7 @@ export class PetApi extends runtime.BaseAPI implements PetApiInterface { let urlPath = `/pet/{petId}/uploadImage`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts index 2f33ed6b1254..926e229834ef 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts @@ -158,7 +158,7 @@ export class StoreApi extends runtime.BaseAPI implements StoreApiInterface { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, @@ -247,7 +247,7 @@ export class StoreApi extends runtime.BaseAPI implements StoreApiInterface { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts index 3346ad9825ef..5773663046dd 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts @@ -412,7 +412,7 @@ export class UserApi extends runtime.BaseAPI implements UserApiInterface { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -458,7 +458,7 @@ export class UserApi extends runtime.BaseAPI implements UserApiInterface { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -611,7 +611,7 @@ export class UserApi extends runtime.BaseAPI implements UserApiInterface { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts index 360d2bff6ebc..d5608fc9429c 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts @@ -144,7 +144,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -305,7 +305,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -430,7 +430,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -504,7 +504,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}/uploadImage`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts index 71133d29c3d1..1622c8a87723 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts @@ -56,7 +56,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, @@ -145,7 +145,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts index 9240a2473288..4ce3912a8c8b 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts @@ -214,7 +214,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -260,7 +260,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -413,7 +413,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/PetApi.ts index ff76faf1911b..e0948a445209 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/PetApi.ts @@ -138,7 +138,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -299,7 +299,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -424,7 +424,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, @@ -498,7 +498,7 @@ export class PetApi extends runtime.BaseAPI { let urlPath = `/pet/{petId}/uploadImage`; - urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))); + urlPath = urlPath.replace('{petId}', encodeURIComponent(String(requestParameters['petId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/StoreApi.ts index da0c7d75eb9d..09a7f9cb187c 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/StoreApi.ts @@ -52,7 +52,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, @@ -141,7 +141,7 @@ export class StoreApi extends runtime.BaseAPI { let urlPath = `/store/order/{orderId}`; - urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))); + urlPath = urlPath.replace('{orderId}', encodeURIComponent(String(requestParameters['orderId']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/UserApi.ts index 32183a9e7c9b..2252784f1ee4 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/UserApi.ts @@ -210,7 +210,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -256,7 +256,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, @@ -409,7 +409,7 @@ export class UserApi extends runtime.BaseAPI { let urlPath = `/user/{username}`; - urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))); + urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username']))); return { path: urlPath, diff --git a/samples/client/petstore/typescript-jquery/default/api/PetApi.ts b/samples/client/petstore/typescript-jquery/default/api/PetApi.ts index eb9f34587b53..b9ac0e05e186 100644 --- a/samples/client/petstore/typescript-jquery/default/api/PetApi.ts +++ b/samples/client/petstore/typescript-jquery/default/api/PetApi.ts @@ -131,7 +131,7 @@ export class PetApi { { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/pet/{petId}'.replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + let localVarPath = this.basePath + '/pet/{petId}'.replace('{petId}', encodeURIComponent(String(petId))); let queryParameters: any = {}; let headerParams: any = {}; @@ -353,7 +353,7 @@ export class PetApi { { response: JQueryXHR; body: models.Pet; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/pet/{petId}'.replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + let localVarPath = this.basePath + '/pet/{petId}'.replace('{petId}', encodeURIComponent(String(petId))); let queryParameters: any = {}; let headerParams: any = {}; @@ -498,7 +498,7 @@ export class PetApi { { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/pet/{petId}'.replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + let localVarPath = this.basePath + '/pet/{petId}'.replace('{petId}', encodeURIComponent(String(petId))); let queryParameters: any = {}; let headerParams: any = {}; @@ -588,7 +588,7 @@ export class PetApi { { response: JQueryXHR; body: models.ApiResponse; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/pet/{petId}/uploadImage'.replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + let localVarPath = this.basePath + '/pet/{petId}/uploadImage'.replace('{petId}', encodeURIComponent(String(petId))); let queryParameters: any = {}; let headerParams: any = {}; diff --git a/samples/client/petstore/typescript-jquery/default/api/StoreApi.ts b/samples/client/petstore/typescript-jquery/default/api/StoreApi.ts index 12daa011d6d0..9416fd721d87 100644 --- a/samples/client/petstore/typescript-jquery/default/api/StoreApi.ts +++ b/samples/client/petstore/typescript-jquery/default/api/StoreApi.ts @@ -55,7 +55,7 @@ export class StoreApi { { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/store/order/{orderId}'.replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + let localVarPath = this.basePath + '/store/order/{orderId}'.replace('{orderId}', encodeURIComponent(String(orderId))); let queryParameters: any = {}; let headerParams: any = {}; @@ -177,7 +177,7 @@ export class StoreApi { { response: JQueryXHR; body: models.Order; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/store/order/{orderId}'.replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + let localVarPath = this.basePath + '/store/order/{orderId}'.replace('{orderId}', encodeURIComponent(String(orderId))); let queryParameters: any = {}; let headerParams: any = {}; diff --git a/samples/client/petstore/typescript-jquery/default/api/UserApi.ts b/samples/client/petstore/typescript-jquery/default/api/UserApi.ts index c2469d6ef19a..625d0c945a24 100644 --- a/samples/client/petstore/typescript-jquery/default/api/UserApi.ts +++ b/samples/client/petstore/typescript-jquery/default/api/UserApi.ts @@ -247,7 +247,7 @@ export class UserApi { { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/user/{username}'.replace('{' + 'username' + '}', encodeURIComponent(String(username))); + let localVarPath = this.basePath + '/user/{username}'.replace('{username}', encodeURIComponent(String(username))); let queryParameters: any = {}; let headerParams: any = {}; @@ -308,7 +308,7 @@ export class UserApi { { response: JQueryXHR; body: models.User; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/user/{username}'.replace('{' + 'username' + '}', encodeURIComponent(String(username))); + let localVarPath = this.basePath + '/user/{username}'.replace('{username}', encodeURIComponent(String(username))); let queryParameters: any = {}; let headerParams: any = {}; @@ -502,7 +502,7 @@ export class UserApi { { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/user/{username}'.replace('{' + 'username' + '}', encodeURIComponent(String(username))); + let localVarPath = this.basePath + '/user/{username}'.replace('{username}', encodeURIComponent(String(username))); let queryParameters: any = {}; let headerParams: any = {}; diff --git a/samples/client/petstore/typescript-jquery/npm/api/PetApi.ts b/samples/client/petstore/typescript-jquery/npm/api/PetApi.ts index eb9f34587b53..b9ac0e05e186 100644 --- a/samples/client/petstore/typescript-jquery/npm/api/PetApi.ts +++ b/samples/client/petstore/typescript-jquery/npm/api/PetApi.ts @@ -131,7 +131,7 @@ export class PetApi { { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/pet/{petId}'.replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + let localVarPath = this.basePath + '/pet/{petId}'.replace('{petId}', encodeURIComponent(String(petId))); let queryParameters: any = {}; let headerParams: any = {}; @@ -353,7 +353,7 @@ export class PetApi { { response: JQueryXHR; body: models.Pet; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/pet/{petId}'.replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + let localVarPath = this.basePath + '/pet/{petId}'.replace('{petId}', encodeURIComponent(String(petId))); let queryParameters: any = {}; let headerParams: any = {}; @@ -498,7 +498,7 @@ export class PetApi { { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/pet/{petId}'.replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + let localVarPath = this.basePath + '/pet/{petId}'.replace('{petId}', encodeURIComponent(String(petId))); let queryParameters: any = {}; let headerParams: any = {}; @@ -588,7 +588,7 @@ export class PetApi { { response: JQueryXHR; body: models.ApiResponse; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/pet/{petId}/uploadImage'.replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + let localVarPath = this.basePath + '/pet/{petId}/uploadImage'.replace('{petId}', encodeURIComponent(String(petId))); let queryParameters: any = {}; let headerParams: any = {}; diff --git a/samples/client/petstore/typescript-jquery/npm/api/StoreApi.ts b/samples/client/petstore/typescript-jquery/npm/api/StoreApi.ts index 12daa011d6d0..9416fd721d87 100644 --- a/samples/client/petstore/typescript-jquery/npm/api/StoreApi.ts +++ b/samples/client/petstore/typescript-jquery/npm/api/StoreApi.ts @@ -55,7 +55,7 @@ export class StoreApi { { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/store/order/{orderId}'.replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + let localVarPath = this.basePath + '/store/order/{orderId}'.replace('{orderId}', encodeURIComponent(String(orderId))); let queryParameters: any = {}; let headerParams: any = {}; @@ -177,7 +177,7 @@ export class StoreApi { { response: JQueryXHR; body: models.Order; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/store/order/{orderId}'.replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + let localVarPath = this.basePath + '/store/order/{orderId}'.replace('{orderId}', encodeURIComponent(String(orderId))); let queryParameters: any = {}; let headerParams: any = {}; diff --git a/samples/client/petstore/typescript-jquery/npm/api/UserApi.ts b/samples/client/petstore/typescript-jquery/npm/api/UserApi.ts index c2469d6ef19a..625d0c945a24 100644 --- a/samples/client/petstore/typescript-jquery/npm/api/UserApi.ts +++ b/samples/client/petstore/typescript-jquery/npm/api/UserApi.ts @@ -247,7 +247,7 @@ export class UserApi { { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/user/{username}'.replace('{' + 'username' + '}', encodeURIComponent(String(username))); + let localVarPath = this.basePath + '/user/{username}'.replace('{username}', encodeURIComponent(String(username))); let queryParameters: any = {}; let headerParams: any = {}; @@ -308,7 +308,7 @@ export class UserApi { { response: JQueryXHR; body: models.User; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/user/{username}'.replace('{' + 'username' + '}', encodeURIComponent(String(username))); + let localVarPath = this.basePath + '/user/{username}'.replace('{username}', encodeURIComponent(String(username))); let queryParameters: any = {}; let headerParams: any = {}; @@ -502,7 +502,7 @@ export class UserApi { { response: JQueryXHR; body?: any; }, { response: JQueryXHR; errorThrown: string } > { - let localVarPath = this.basePath + '/user/{username}'.replace('{' + 'username' + '}', encodeURIComponent(String(username))); + let localVarPath = this.basePath + '/user/{username}'.replace('{username}', encodeURIComponent(String(username))); let queryParameters: any = {}; let headerParams: any = {}; diff --git a/samples/client/petstore/typescript-node/3_0/api/advancedApi.ts b/samples/client/petstore/typescript-node/3_0/api/advancedApi.ts index 7a1cb0de90ca..1447ad370d43 100644 --- a/samples/client/petstore/typescript-node/3_0/api/advancedApi.ts +++ b/samples/client/petstore/typescript-node/3_0/api/advancedApi.ts @@ -114,7 +114,7 @@ export class AdvancedApi { */ public async getGroupsGroupId (groupId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Group; }> { const localVarPath = this.basePath + '/groups/{groupId}' - .replace('{' + 'groupId' + '}', encodeURIComponent(String(groupId))); + .replace('{groupId}', encodeURIComponent(String(groupId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); const produces = ['application/json']; @@ -185,7 +185,7 @@ export class AdvancedApi { */ public async getUsersUserId (userId: number, strCode?: string, strCode2?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: User; }> { const localVarPath = this.basePath + '/users/{userId}' - .replace('{' + 'userId' + '}', encodeURIComponent(String(userId))); + .replace('{userId}', encodeURIComponent(String(userId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); const produces = ['application/json']; diff --git a/samples/client/petstore/typescript-node/3_0/api/defaultApi.ts b/samples/client/petstore/typescript-node/3_0/api/defaultApi.ts index 1c324466d47f..9e2c3b0273b6 100644 --- a/samples/client/petstore/typescript-node/3_0/api/defaultApi.ts +++ b/samples/client/petstore/typescript-node/3_0/api/defaultApi.ts @@ -119,7 +119,7 @@ export class DefaultApi { */ public async patchUsersUserId (userId: number, strCode?: string, strCode2?: string, patchUsersUserIdRequest?: PatchUsersUserIdRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: User; }> { const localVarPath = this.basePath + '/users/{userId}' - .replace('{' + 'userId' + '}', encodeURIComponent(String(userId))); + .replace('{userId}', encodeURIComponent(String(userId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); const produces = ['application/json']; diff --git a/samples/client/petstore/typescript-node/default/api/petApi.ts b/samples/client/petstore/typescript-node/default/api/petApi.ts index 45e173378a54..f76f2caa9efc 100644 --- a/samples/client/petstore/typescript-node/default/api/petApi.ts +++ b/samples/client/petstore/typescript-node/default/api/petApi.ts @@ -167,7 +167,7 @@ export class PetApi { */ public async deletePet (petId: number, apiKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> { const localVarPath = this.basePath + '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); let localVarFormParams: any = {}; @@ -384,7 +384,7 @@ export class PetApi { */ public async getPetById (petId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Pet; }> { const localVarPath = this.basePath + '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); const produces = ['application/xml', 'application/json']; @@ -522,7 +522,7 @@ export class PetApi { */ public async updatePetWithForm (petId: number, name?: string, status?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> { const localVarPath = this.basePath + '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); let localVarFormParams: any = {}; @@ -596,7 +596,7 @@ export class PetApi { */ public async uploadFile (petId: number, additionalMetadata?: string, file?: RequestFile, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponse; }> { const localVarPath = this.basePath + '/pet/{petId}/uploadImage' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); const produces = ['application/json']; diff --git a/samples/client/petstore/typescript-node/default/api/storeApi.ts b/samples/client/petstore/typescript-node/default/api/storeApi.ts index f3f5b8ca651a..e6f545c8c8d0 100644 --- a/samples/client/petstore/typescript-node/default/api/storeApi.ts +++ b/samples/client/petstore/typescript-node/default/api/storeApi.ts @@ -101,7 +101,7 @@ export class StoreApi { */ public async deleteOrder (orderId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> { const localVarPath = this.basePath + '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); let localVarFormParams: any = {}; @@ -227,7 +227,7 @@ export class StoreApi { */ public async getOrderById (orderId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Order; }> { const localVarPath = this.basePath + '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); const produces = ['application/xml', 'application/json']; diff --git a/samples/client/petstore/typescript-node/default/api/userApi.ts b/samples/client/petstore/typescript-node/default/api/userApi.ts index fbeb9660bdf5..4588875a0a41 100644 --- a/samples/client/petstore/typescript-node/default/api/userApi.ts +++ b/samples/client/petstore/typescript-node/default/api/userApi.ts @@ -284,7 +284,7 @@ export class UserApi { */ public async deleteUser (username: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> { const localVarPath = this.basePath + '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); let localVarFormParams: any = {}; @@ -345,7 +345,7 @@ export class UserApi { */ public async getUserByName (username: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: User; }> { const localVarPath = this.basePath + '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); const produces = ['application/xml', 'application/json']; @@ -551,7 +551,7 @@ export class UserApi { */ public async updateUser (username: string, body: User, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> { const localVarPath = this.basePath + '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); let localVarFormParams: any = {}; diff --git a/samples/client/petstore/typescript-node/npm/api/petApi.ts b/samples/client/petstore/typescript-node/npm/api/petApi.ts index 45e173378a54..f76f2caa9efc 100644 --- a/samples/client/petstore/typescript-node/npm/api/petApi.ts +++ b/samples/client/petstore/typescript-node/npm/api/petApi.ts @@ -167,7 +167,7 @@ export class PetApi { */ public async deletePet (petId: number, apiKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> { const localVarPath = this.basePath + '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); let localVarFormParams: any = {}; @@ -384,7 +384,7 @@ export class PetApi { */ public async getPetById (petId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Pet; }> { const localVarPath = this.basePath + '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); const produces = ['application/xml', 'application/json']; @@ -522,7 +522,7 @@ export class PetApi { */ public async updatePetWithForm (petId: number, name?: string, status?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> { const localVarPath = this.basePath + '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); let localVarFormParams: any = {}; @@ -596,7 +596,7 @@ export class PetApi { */ public async uploadFile (petId: number, additionalMetadata?: string, file?: RequestFile, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApiResponse; }> { const localVarPath = this.basePath + '/pet/{petId}/uploadImage' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); const produces = ['application/json']; diff --git a/samples/client/petstore/typescript-node/npm/api/storeApi.ts b/samples/client/petstore/typescript-node/npm/api/storeApi.ts index f3f5b8ca651a..e6f545c8c8d0 100644 --- a/samples/client/petstore/typescript-node/npm/api/storeApi.ts +++ b/samples/client/petstore/typescript-node/npm/api/storeApi.ts @@ -101,7 +101,7 @@ export class StoreApi { */ public async deleteOrder (orderId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> { const localVarPath = this.basePath + '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); let localVarFormParams: any = {}; @@ -227,7 +227,7 @@ export class StoreApi { */ public async getOrderById (orderId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Order; }> { const localVarPath = this.basePath + '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); const produces = ['application/xml', 'application/json']; diff --git a/samples/client/petstore/typescript-node/npm/api/userApi.ts b/samples/client/petstore/typescript-node/npm/api/userApi.ts index fbeb9660bdf5..4588875a0a41 100644 --- a/samples/client/petstore/typescript-node/npm/api/userApi.ts +++ b/samples/client/petstore/typescript-node/npm/api/userApi.ts @@ -284,7 +284,7 @@ export class UserApi { */ public async deleteUser (username: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> { const localVarPath = this.basePath + '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); let localVarFormParams: any = {}; @@ -345,7 +345,7 @@ export class UserApi { */ public async getUserByName (username: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: User; }> { const localVarPath = this.basePath + '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); const produces = ['application/xml', 'application/json']; @@ -551,7 +551,7 @@ export class UserApi { */ public async updateUser (username: string, body: User, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> { const localVarPath = this.basePath + '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); let localVarFormParams: any = {}; diff --git a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/PetApi.ts b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/PetApi.ts index e2f23063bb37..dcfe3b327a20 100644 --- a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/PetApi.ts @@ -131,7 +131,7 @@ function deletePetRaw(requestParameters: DeletePetRequest, requestConfig: run meta.authType = ['oauth', ["write:pets", "read:pets"]]; const config: QueryConfig = { - url: `${runtime.Configuration.basePath}/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters.petId))), + url: `${runtime.Configuration.basePath}/pet/{petId}`.replace('{petId}', encodeURIComponent(String(requestParameters.petId))), meta, update: requestConfig.update, queryKey: requestConfig.queryKey, @@ -288,7 +288,7 @@ function getPetByIdRaw(requestParameters: GetPetByIdRequest, requestConfig: r meta.authType = ['api_key', 'header']; const config: QueryConfig = { - url: `${runtime.Configuration.basePath}/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters.petId))), + url: `${runtime.Configuration.basePath}/pet/{petId}`.replace('{petId}', encodeURIComponent(String(requestParameters.petId))), meta, update: requestConfig.update, queryKey: requestConfig.queryKey, @@ -393,7 +393,7 @@ function updatePetWithFormRaw(requestParameters: UpdatePetWithFormRequest, re } const config: QueryConfig = { - url: `${runtime.Configuration.basePath}/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters.petId))), + url: `${runtime.Configuration.basePath}/pet/{petId}`.replace('{petId}', encodeURIComponent(String(requestParameters.petId))), meta, update: requestConfig.update, queryKey: requestConfig.queryKey, @@ -448,7 +448,7 @@ function uploadFileRaw(requestParameters: UploadFileRequest, requestConfig: r } const config: QueryConfig = { - url: `${runtime.Configuration.basePath}/pet/{petId}/uploadImage`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters.petId))), + url: `${runtime.Configuration.basePath}/pet/{petId}/uploadImage`.replace('{petId}', encodeURIComponent(String(requestParameters.petId))), meta, update: requestConfig.update, queryKey: requestConfig.queryKey, diff --git a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/StoreApi.ts b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/StoreApi.ts index ad509b371d49..b5a751479e34 100644 --- a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/StoreApi.ts @@ -51,7 +51,7 @@ function deleteOrderRaw(requestParameters: DeleteOrderRequest, requestConfig: const { meta = {} } = requestConfig; const config: QueryConfig = { - url: `${runtime.Configuration.basePath}/store/order/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters.orderId))), + url: `${runtime.Configuration.basePath}/store/order/{orderId}`.replace('{orderId}', encodeURIComponent(String(requestParameters.orderId))), meta, update: requestConfig.update, queryKey: requestConfig.queryKey, @@ -142,7 +142,7 @@ function getOrderByIdRaw(requestParameters: GetOrderByIdRequest, requestConfi const { meta = {} } = requestConfig; const config: QueryConfig = { - url: `${runtime.Configuration.basePath}/store/order/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters.orderId))), + url: `${runtime.Configuration.basePath}/store/order/{orderId}`.replace('{orderId}', encodeURIComponent(String(requestParameters.orderId))), meta, update: requestConfig.update, queryKey: requestConfig.queryKey, diff --git a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/UserApi.ts b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/UserApi.ts index 5e35989d8864..1e3775637fa1 100644 --- a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/UserApi.ts @@ -212,7 +212,7 @@ function deleteUserRaw(requestParameters: DeleteUserRequest, requestConfig: r const { meta = {} } = requestConfig; const config: QueryConfig = { - url: `${runtime.Configuration.basePath}/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))), + url: `${runtime.Configuration.basePath}/user/{username}`.replace('{username}', encodeURIComponent(String(requestParameters.username))), meta, update: requestConfig.update, queryKey: requestConfig.queryKey, @@ -258,7 +258,7 @@ function getUserByNameRaw(requestParameters: GetUserByNameRequest, requestCon const { meta = {} } = requestConfig; const config: QueryConfig = { - url: `${runtime.Configuration.basePath}/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))), + url: `${runtime.Configuration.basePath}/user/{username}`.replace('{username}', encodeURIComponent(String(requestParameters.username))), meta, update: requestConfig.update, queryKey: requestConfig.queryKey, @@ -413,7 +413,7 @@ function updateUserRaw(requestParameters: UpdateUserRequest, requestConfig: r const { meta = {} } = requestConfig; const config: QueryConfig = { - url: `${runtime.Configuration.basePath}/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))), + url: `${runtime.Configuration.basePath}/user/{username}`.replace('{username}', encodeURIComponent(String(requestParameters.username))), meta, update: requestConfig.update, queryKey: requestConfig.queryKey, diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/browser/apis/PetApi.ts index 01214080a9eb..fbebbccbc5a7 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/apis/PetApi.ts @@ -84,7 +84,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -211,7 +211,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -303,7 +303,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -374,7 +374,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}/uploadImage' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/browser/apis/StoreApi.ts index 2b5905e85276..021d21c80467 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/apis/StoreApi.ts @@ -31,7 +31,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -93,7 +93,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/browser/apis/UserApi.ts index 7d8c29092a3e..34f487a2bd5f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/apis/UserApi.ts @@ -175,7 +175,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -213,7 +213,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -330,7 +330,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); diff --git a/samples/openapi3/client/petstore/typescript/builds/default/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/default/apis/PetApi.ts index dc7173bd06ad..574133b5e91f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/apis/PetApi.ts @@ -86,7 +86,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -213,7 +213,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -305,7 +305,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -376,7 +376,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}/uploadImage' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); diff --git a/samples/openapi3/client/petstore/typescript/builds/default/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/default/apis/StoreApi.ts index 6d8a22d0cbdc..a71e53e432ae 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/apis/StoreApi.ts @@ -33,7 +33,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -95,7 +95,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); diff --git a/samples/openapi3/client/petstore/typescript/builds/default/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/default/apis/UserApi.ts index 1039b443c514..ecc9ed35a4b5 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/apis/UserApi.ts @@ -177,7 +177,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -215,7 +215,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -332,7 +332,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/deno/apis/PetApi.ts index 68c13e6b177e..4de11a6a8433 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/apis/PetApi.ts @@ -84,7 +84,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -211,7 +211,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -303,7 +303,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -374,7 +374,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}/uploadImage' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/deno/apis/StoreApi.ts index 97d14345f73b..fe4505519444 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/apis/StoreApi.ts @@ -31,7 +31,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -93,7 +93,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/deno/apis/UserApi.ts index 81dc11b47da4..04aaef246a2d 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/apis/UserApi.ts @@ -175,7 +175,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -213,7 +213,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -330,7 +330,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); diff --git a/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/PetApi.ts index 68c13e6b177e..4de11a6a8433 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/PetApi.ts @@ -84,7 +84,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -211,7 +211,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -303,7 +303,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -374,7 +374,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}/uploadImage' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); diff --git a/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/StoreApi.ts index 97d14345f73b..fe4505519444 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/StoreApi.ts @@ -31,7 +31,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -93,7 +93,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); diff --git a/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/UserApi.ts index 81dc11b47da4..04aaef246a2d 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/UserApi.ts @@ -175,7 +175,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -213,7 +213,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -330,7 +330,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); diff --git a/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/PetApi.ts index 5b27817edbdc..75f65927662c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/PetApi.ts @@ -86,7 +86,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -213,7 +213,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -305,7 +305,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -376,7 +376,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}/uploadImage' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -454,7 +454,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/fake/{petId}/uploadImageWithRequiredFile' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); diff --git a/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/StoreApi.ts index 2f9d7607fed6..dd5aed087a17 100644 --- a/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/StoreApi.ts @@ -33,7 +33,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{order_id}' - .replace('{' + 'order_id' + '}', encodeURIComponent(String(orderId))); + .replace('{order_id}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -95,7 +95,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{order_id}' - .replace('{' + 'order_id' + '}', encodeURIComponent(String(orderId))); + .replace('{order_id}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); diff --git a/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/UserApi.ts index b6f4a6c226cf..3564b7982f42 100644 --- a/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/UserApi.ts @@ -159,7 +159,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -191,7 +191,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -302,7 +302,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/PetApi.ts index 9972e1423a1d..0c1f9e42baac 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/PetApi.ts @@ -84,7 +84,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -199,7 +199,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -283,7 +283,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -350,7 +350,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}/uploadImage' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/StoreApi.ts index 2bbb54b777bc..26706ce9f247 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/StoreApi.ts @@ -35,7 +35,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -89,7 +89,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/UserApi.ts index 13aca4d0559e..21dfde53f9ba 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/UserApi.ts @@ -167,7 +167,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -201,7 +201,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -306,7 +306,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/PetApi.ts index 01214080a9eb..fbebbccbc5a7 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/PetApi.ts @@ -84,7 +84,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -211,7 +211,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -303,7 +303,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -374,7 +374,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}/uploadImage' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/StoreApi.ts index 2b5905e85276..021d21c80467 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/StoreApi.ts @@ -31,7 +31,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -93,7 +93,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/UserApi.ts index 7d8c29092a3e..34f487a2bd5f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/UserApi.ts @@ -175,7 +175,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -213,7 +213,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -330,7 +330,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/PetApi.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/PetApi.ts index dc7173bd06ad..574133b5e91f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/PetApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/PetApi.ts @@ -86,7 +86,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -213,7 +213,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -305,7 +305,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -376,7 +376,7 @@ export class PetApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/pet/{petId}/uploadImage' - .replace('{' + 'petId' + '}', encodeURIComponent(String(petId))); + .replace('{petId}', encodeURIComponent(String(petId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/StoreApi.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/StoreApi.ts index 6d8a22d0cbdc..a71e53e432ae 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/StoreApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/StoreApi.ts @@ -33,7 +33,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -95,7 +95,7 @@ export class StoreApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/store/order/{orderId}' - .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId))); + .replace('{orderId}', encodeURIComponent(String(orderId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/UserApi.ts index 1039b443c514..ecc9ed35a4b5 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/UserApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/UserApi.ts @@ -177,7 +177,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -215,7 +215,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -332,7 +332,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = '/user/{username}' - .replace('{' + 'username' + '}', encodeURIComponent(String(username))); + .replace('{username}', encodeURIComponent(String(username))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);