forked from loafle/openapi-generator-original
JS Client: Allow dot in path parameter name (#6116)
* JS Client: Allow dot in path parameter name * JS Client: Allow dot in path parameter name * Delete ApiClient.js * Delete ApiClient.js Co-authored-by: Nikolai Konovalov <konovalov.nikolai@gmail.com>
This commit is contained in:
@@ -152,7 +152,7 @@ class ApiClient {
|
||||
url = apiBasePath + path;
|
||||
}
|
||||
|
||||
url = url.replace(/\{([\w-]+)\}/g, (fullMatch, key) => {
|
||||
url = url.replace(/\{([\w-\.]+)\}/g, (fullMatch, key) => {
|
||||
var value;
|
||||
if (pathParams.hasOwnProperty(key)) {
|
||||
value = this.paramToString(pathParams[key]);
|
||||
|
||||
Reference in New Issue
Block a user