forked from loafle/openapi-generator-original
Include support to Mojolicious relaxed placeholders (#17633)
This commit is contained in:
@@ -160,7 +160,7 @@ class ApiClient {
|
|||||||
url = apiBasePath + path;
|
url = apiBasePath + path;
|
||||||
}
|
}
|
||||||
|
|
||||||
url = url.replace(/\{([\w-\.]+)\}/g, (fullMatch, key) => {
|
url = url.replace(/\{([\w-\.#]+)\}/g, (fullMatch, key) => {
|
||||||
var value;
|
var value;
|
||||||
if (pathParams.hasOwnProperty(key)) {
|
if (pathParams.hasOwnProperty(key)) {
|
||||||
value = this.paramToString(pathParams[key]);
|
value = this.paramToString(pathParams[key]);
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ class ApiClient {
|
|||||||
url = apiBasePath + path;
|
url = apiBasePath + path;
|
||||||
}
|
}
|
||||||
|
|
||||||
url = url.replace(/\{([\w-\.]+)\}/g, (fullMatch, key) => {
|
url = url.replace(/\{([\w-\.#]+)\}/g, (fullMatch, key) => {
|
||||||
var value;
|
var value;
|
||||||
if (pathParams.hasOwnProperty(key)) {
|
if (pathParams.hasOwnProperty(key)) {
|
||||||
value = this.paramToString(pathParams[key]);
|
value = this.paramToString(pathParams[key]);
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ class ApiClient {
|
|||||||
url = apiBasePath + path;
|
url = apiBasePath + path;
|
||||||
}
|
}
|
||||||
|
|
||||||
url = url.replace(/\{([\w-\.]+)\}/g, (fullMatch, key) => {
|
url = url.replace(/\{([\w-\.#]+)\}/g, (fullMatch, key) => {
|
||||||
var value;
|
var value;
|
||||||
if (pathParams.hasOwnProperty(key)) {
|
if (pathParams.hasOwnProperty(key)) {
|
||||||
value = this.paramToString(pathParams[key]);
|
value = this.paramToString(pathParams[key]);
|
||||||
|
|||||||
Reference in New Issue
Block a user