mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 14:40:53 +00:00
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:
parent
64c57e3f52
commit
25c7ccf30c
@ -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]);
|
||||
|
@ -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]);
|
||||
|
@ -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]);
|
||||
|
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user