mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Update schemaUtils.js
This commit is contained in:
@@ -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('/');
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user