Update schemaUtils.js

This commit is contained in:
Luis Tejeda
2022-07-18 12:41:52 -05:00
parent 99e7f66044
commit 1bdac028ac

View File

@@ -4453,7 +4453,6 @@ module.exports = {
*/
handleExplicitServersPathToMatch: function (pathToMatch, schemaPath) {
let pathTMatchSlice,
fragment = '',
schemaPathArr = _.reject(schemaPath.split('/'), (segment) => {
return segment === '';
}),
@@ -4466,7 +4465,7 @@ module.exports = {
return pathToMatch;
}
pathTMatchSlice = pathToMatchArr.slice(pathToMatchArr.length - schemaPathSegments, pathToMatchArr.length);
return pathTMatchSlice.join('/') + fragment;
return pathTMatchSlice.join('/');
},
/**