From 67eac63750adee05bf0b712ad4adea0658190c3a Mon Sep 17 00:00:00 2001 From: Davide Trentin Date: Tue, 26 Oct 2021 20:56:56 -0400 Subject: [PATCH] _postman_isSubFolder is sometimes not included in Json when exporting from some versions of Postman --- collection/collection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collection/collection.go b/collection/collection.go index b4a7734..9702b94 100644 --- a/collection/collection.go +++ b/collection/collection.go @@ -144,7 +144,7 @@ func (d *Documentation) build() { // buildSubChildItems builds all the sub folder collections func (d *Documentation) buildSubChildItems(itm Item, c *Collection, pn string) bool { - if itm.IsSubFolder { + if len(itm.Items) > 0 { collection := Collection{} collection.Name = pn + "/" + itm.Name collection.IsSubFolder = true