问题:
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即可。