问题:
postman导入数据,提示:

1 invalid import format(s)
Postman Collection Format v1 is no longer supported and can not be imported directly. You may convert your collection to Format v2
 and try importing again.

导入接口时,postman报错如下:
在这里插入图片描述

解决方法:
情况1:导入.json文件,提示”invalid import format(s)“
方法:
1、npm安装node
2、windows打开”命令提示符“,执行如下命令:

1、 npm install -g postman-collection-transformer
2、postman-collection-transformer convert -i <path to input Postman collection file> -o <path where the output Postman file will be downloaded> -j 1.0.0 -p 2.0.0 -P

举例:如当前目录有btcs.postman_collection.json,换成v2版本 btcs2.postman_collection.json
执行如下命令:

postman-collection-transformer convert -i btcs.postman_collection.json -o btcs2.postman_collection.json -j 1.0.0 -p 2.0.0 -P

情况2:导入url,提示”invalid import format(s)“
方法:
导入的url的格式需要是V2即可。

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐