mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
use (root) as folder name in case two requests are present under the / path
This commit is contained in:
@@ -299,7 +299,7 @@ module.exports = {
|
||||
|
||||
// split the path into indiv. segments for trie generation
|
||||
// unless path it the root endpoint
|
||||
currentPath = path === '' ? [''] : path.split('/').filter((pathItem) => {
|
||||
currentPath = path === '' ? ['(root)'] : path.split('/').filter((pathItem) => {
|
||||
// remove any empty pathItems that might have cropped in
|
||||
// due to trailing or double '/' characters
|
||||
return pathItem !== '';
|
||||
|
||||
Reference in New Issue
Block a user