Skip to content

length is null #34

@krausz23

Description

@krausz23

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions