fix(接口测试): postman文件导入报错问题

--user=郭雨琦
多了个验证
This commit is contained in:
guoyuqi 2022-08-11 18:43:44 +08:00 committed by xiaomeinvG
parent 47bec24cf4
commit 08fcc5d9cb
1 changed files with 0 additions and 5 deletions

View File

@ -29,11 +29,6 @@ public class PostmanDefinitionParser extends PostmanAbstractParserParser<ApiDefi
Object info = jsonObject.get("info");
if (info == null) {
MSException.throwException("wrong format");
} else {
JSONObject jsonObject1 = JSON.parseObject(info.toString());
if (jsonObject1.get("_postman_id") == null) {
MSException.throwException("wrong format");
}
}
PostmanCollection postmanCollection = JSON.parseObject(testStr, PostmanCollection.class, Feature.DisableSpecialKeyDetect);
ApiDefinitionImport apiImport = new ApiDefinitionImport();