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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -163,7 +163,7 @@
}
var _this = this;
url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) {
url = url.replace(/\{([\w-\.]+)\}/g, function(fullMatch, key) {
var value;
if (pathParams.hasOwnProperty(key)) {
value = _this.paramToString(pathParams[key]);

View File

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

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

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