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