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:
nitoqq
2020-12-04 09:27:44 +05:00
committed by GitHub
parent 64c57e3f52
commit 25c7ccf30c
4 changed files with 4 additions and 4 deletions

View File

@@ -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]);