fix(接口定义): 修复swagger导入case为空的问题

--bug=1009878 --user=刘瑞斌 【接口测试】接口定义,swagger导入报错 https://www.tapd.cn/55049933/s/1096270
This commit is contained in:
CaptainB 2022-01-22 15:38:48 +08:00 committed by xiaomeinvG
parent 0899186dc6
commit 70fbb0cd12
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import io.metersphere.base.domain.ApiTestCaseWithBLOBs;
import io.metersphere.base.domain.EsbApiParamsWithBLOBs; import io.metersphere.base.domain.EsbApiParamsWithBLOBs;
import lombok.Data; import lombok.Data;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -17,7 +18,7 @@ public class ApiDefinitionImport {
private List<ApiDefinitionWithBLOBs> data; private List<ApiDefinitionWithBLOBs> data;
// 新版本带用例导出 // 新版本带用例导出
private List<ApiTestCaseWithBLOBs> cases; private List<ApiTestCaseWithBLOBs> cases = new ArrayList<>();
//ESB文件导入的附属数据类 //ESB文件导入的附属数据类
private Map<String,EsbApiParamsWithBLOBs> esbApiParamsMap; private Map<String,EsbApiParamsWithBLOBs> esbApiParamsMap;