mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-07 22:18:33 +00:00
fix: collection/folder docs when importing postman collection (#3745)
* fix: collection/folder docs when importing postman collection * fix
This commit is contained in:
@@ -199,6 +199,7 @@ const importPostmanV2CollectionItem = (brunoParent, item, parentAuth, options) =
|
|||||||
type: 'folder',
|
type: 'folder',
|
||||||
items: [],
|
items: [],
|
||||||
root: {
|
root: {
|
||||||
|
docs: i.description || '',
|
||||||
meta: {
|
meta: {
|
||||||
name: folderName
|
name: folderName
|
||||||
},
|
},
|
||||||
@@ -226,6 +227,7 @@ const importPostmanV2CollectionItem = (brunoParent, item, parentAuth, options) =
|
|||||||
|
|
||||||
brunoParent.items.push(brunoFolderItem);
|
brunoParent.items.push(brunoFolderItem);
|
||||||
folderMap[folderName] = brunoFolderItem;
|
folderMap[folderName] = brunoFolderItem;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (i.request) {
|
if (i.request) {
|
||||||
const baseRequestName = i.name;
|
const baseRequestName = i.name;
|
||||||
@@ -483,6 +485,7 @@ const importPostmanV2Collection = (collection, options) => {
|
|||||||
items: [],
|
items: [],
|
||||||
environments: [],
|
environments: [],
|
||||||
root: {
|
root: {
|
||||||
|
docs: collection.info.description || '',
|
||||||
meta: {
|
meta: {
|
||||||
name: collection.info.name
|
name: collection.info.name
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user