From 70fbb0cd1219b12bd263aba29520720b5ad537f0 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Sat, 22 Jan 2022 15:38:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Dswagger=E5=AF=BC=E5=85=A5case=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1009878 --user=刘瑞斌 【接口测试】接口定义,swagger导入报错 https://www.tapd.cn/55049933/s/1096270 --- .../api/dto/definition/parse/ApiDefinitionImport.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/parse/ApiDefinitionImport.java b/backend/src/main/java/io/metersphere/api/dto/definition/parse/ApiDefinitionImport.java index bf17ae66f8..80761bc1fc 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/parse/ApiDefinitionImport.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/parse/ApiDefinitionImport.java @@ -7,6 +7,7 @@ import io.metersphere.base.domain.ApiTestCaseWithBLOBs; import io.metersphere.base.domain.EsbApiParamsWithBLOBs; import lombok.Data; +import java.util.ArrayList; import java.util.List; import java.util.Map; @@ -17,7 +18,7 @@ public class ApiDefinitionImport { private List data; // 新版本带用例导出 - private List cases; + private List cases = new ArrayList<>(); //ESB文件导入的附属数据类 private Map esbApiParamsMap;