问题:
postman导入文件的时候提示v1不能导入到v2
错误信息为: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 不再支持集合 v1 格式,所以导入时就会报错
1、输入以下命令以安装 Postman Collection Transformer
npm install -g postman-collection-transformer
2、通过输入以下命令将单个 Postman 集合从 v1 转换为 v2
postman-collection-transformer convert -i F:\post的接口export\postman-transformer\文件名.postman_collection.json -o F:\post的接口export\postman-transformer\v2\文件名.postman_collection.json -j 1.0.0 -p 2.0.0 -P