fix(接口测试): 解决接口测试swagger2导入丢失描述问题

https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001017552
This commit is contained in:
guoyuqi 2022-10-27 17:36:06 +08:00 committed by xiaomeinvG
parent aff77194e6
commit 6f104078e6
1 changed files with 1 additions and 0 deletions

View File

@ -146,6 +146,7 @@ public class Swagger2Parser extends SwaggerAbstractParser {
MsHTTPSamplerProxy request = buildRequest(operation, pathName, method.name());
request.setFollowRedirects(true);
ApiDefinitionWithBLOBs apiDefinition = buildApiDefinition(request.getId(), operation, pathName, method.name(), importRequest);
apiDefinition.setDescription(operation.getDescription());
parseParameters(operation, request);
addBodyHeader(request);
if (StringUtils.isNotBlank(basePath)) {