mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Merge pull request #275 from postmanlabs/feature/fix-root-path-mismatch
Fixed issue where root path was not matched during validation.
This commit is contained in:
@@ -3616,6 +3616,15 @@ module.exports = {
|
||||
}
|
||||
});
|
||||
|
||||
// handle root path '/'
|
||||
if (postmanPath === '/' && schemaPath === '/') {
|
||||
anyMatchFound = true;
|
||||
maxScoreFound = 1; // assign max possible score
|
||||
matchedPathVars = []; // no path variables present
|
||||
fixedMatchedSegments = 0;
|
||||
variableMatchedSegments = 0;
|
||||
}
|
||||
|
||||
if (anyMatchFound) {
|
||||
return {
|
||||
match: true,
|
||||
|
||||
Reference in New Issue
Block a user