You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello, I hope this is a bug.
var matches = pattern.exec(url);
and we want to use the matches.length but sometimes we got a null because the matches hasn't lenght.
If you have time please check this in apidocToSwagger.js file.
so I corrected myself locally:
if(matches) {
for (var j = 1; j < matches.length; j++) {
var key = matches[j].substr(1);
url = url.replace(matches[j], "{" + key + "}");
pathKeys.push(key);
}
}
The text was updated successfully, but these errors were encountered:
hello, I hope this is a bug.
var matches = pattern.exec(url);
and we want to use the matches.length but sometimes we got a null because the matches hasn't lenght.
If you have time please check this in apidocToSwagger.js file.
so I corrected myself locally:
if(matches) {
for (var j = 1; j < matches.length; j++) {
var key = matches[j].substr(1);
url = url.replace(matches[j], "{" + key + "}");
pathKeys.push(key);
}
}
The text was updated successfully, but these errors were encountered: