postman-collection-transformer icon indicating copy to clipboard operation
postman-collection-transformer copied to clipboard

Items in v2 not getting populated with requests in v1

Open surbhi114 opened this issue 4 years ago • 6 comments

I am trying to transform a few collections from v2 to v1 using CLI: postman-collection-transformer convert -i ~/work/user.json -o ~/work/user2.json -j 1.0.0 -p 2.0.0 --pretty --overwrite --retain-ids the conversion happens successfully but the items don't get populated in the response collection. Please advice!

surbhi114 avatar Feb 08 '21 05:02 surbhi114

@surbhi114 Can you share a scaled-down collection (without sensitive information) that we can use to reproduce this issue?

codenirvana avatar Feb 08 '21 07:02 codenirvana

I can also replicate this using the v1 json at https://triposcert.vantiv.com/api/postman

pristinesource avatar Apr 16 '21 19:04 pristinesource

I found the issue with the example I gave. It is missing the order item. According to the Postman docs at https://schema.postman.com/collection/json/v1.0.0/draft-07/docs/index.html that is a required field and should be an array of uuids. It even states that if it is not in that array, it will not show.

pristinesource avatar Apr 16 '21 20:04 pristinesource

I have the same issue, that convert does nothing, almost. So no requests are passed to v2 file. even if I add order:[] to collection as a required field it does not work.

lykhouzov avatar Jun 10 '21 14:06 lykhouzov

I can confirm this as well. We use some older ServiceStack APIs with the ServiceStack.Api.Swagger package, version 4.5.14.0. The Postman v1 metadata available at http://apiUrl/v1/postman does not contain an order property.

See postman-v1.0.0.zip for an example.

0x326 avatar Dec 30 '22 14:12 0x326

I have same problem here

durnosmih avatar Jan 16 '23 13:01 durnosmih