Skip to content

Commit 365df51

Browse files
committed
fix: collection/folder docs when importing postman collection
1 parent 539d221 commit 365df51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/bruno-app/src/utils/importers/postman-collection.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ const importPostmanV2CollectionItem = (brunoParent, item, parentAuth, options) =
199199
type: 'folder',
200200
items: [],
201201
root: {
202+
docs: i.description ? i.description : '',
202203
meta: {
203204
name: folderName
204205
},
@@ -226,6 +227,7 @@ const importPostmanV2CollectionItem = (brunoParent, item, parentAuth, options) =
226227

227228
brunoParent.items.push(brunoFolderItem);
228229
folderMap[folderName] = brunoFolderItem;
230+
229231
} else {
230232
if (i.request) {
231233
const baseRequestName = i.name;
@@ -483,6 +485,7 @@ const importPostmanV2Collection = (collection, options) => {
483485
items: [],
484486
environments: [],
485487
root: {
488+
docs: collection.info.description ? collection.info.description :'',
486489
meta: {
487490
name: collection.info.name
488491
},

0 commit comments

Comments
 (0)