fix(接口测试): 修复swagger导入有大量error日志输出的缺陷
--bug=1025939 --user=王孝刚 【接口测试】接口导入-swagger格式-导入成功-后端大量error日志 https://www.tapd.cn/55049933/s/1367809
This commit is contained in:
parent
1281fe7044
commit
58878f9c29
|
@ -72,9 +72,6 @@ public class Swagger3Parser extends SwaggerAbstractParser {
|
|||
MSException.throwException(Translator.get(CollectionUtils.isEmpty(auths) ? "swagger_parse_error" : "swagger_parse_error_with_auth"));
|
||||
}
|
||||
OpenAPI openAPI = result.getOpenAPI();
|
||||
if (result.getMessages() != null) {
|
||||
result.getMessages().forEach(msg -> LogUtil.error(msg)); // validation errors and warnings
|
||||
}
|
||||
ApiDefinitionImport definitionImport = new ApiDefinitionImport();
|
||||
this.projectId = request.getProjectId();
|
||||
definitionImport.setData(parseRequests(openAPI, request));
|
||||
|
|
Loading…
Reference in New Issue