fix(接口测试): 修复swagger3导出后再导入postman失败问题

https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001018280
--user=郭雨琦
This commit is contained in:
guoyuqi 2022-10-18 10:39:49 +08:00 committed by xiaomeinvG
parent 62660667ce
commit 0556a44c4d
1 changed files with 1 additions and 2 deletions

View File

@ -615,12 +615,11 @@ public class Swagger3Parser extends SwaggerAbstractParser {
result.setOpenapi("3.0.1");
SwaggerInfo swaggerInfo = new SwaggerInfo();
swaggerInfo.setVersion("1.0.1");
swaggerInfo.setVersion("1.0");
swaggerInfo.setTitle("ms-" + project.getName());
swaggerInfo.setDescription("");
swaggerInfo.setTermsOfService("");
result.setInfo(swaggerInfo);
result.setInfo(new SwaggerInfo());
result.setServers(new ArrayList<>());
result.setTags(new ArrayList<>());
result.setComponents(JSONUtil.createObj());