From 7534a5c1ecfc1832df5070dd22bd44f031602702 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 15 Aug 2023 14:01:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E6=A1=A3=E6=96=AD=E8=A8=80=EF=BC=8C?= =?UTF-8?q?=E6=95=B0=E7=BB=84=E6=A0=BC=E5=BC=8F=E7=9A=84=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=98=BE=E7=A4=BA=E7=B4=A2=E5=BC=95=E7=9A=84?= =?UTF-8?q?=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1028298 --user=王孝刚 【接口测试】test-断言-文档断言-跟随api定义-数组类型字段名可编辑且为空 https://www.tapd.cn/55049933/s/1403739 --- .../java/io/metersphere/commons/utils/JSONToDocumentUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-test/backend/src/main/java/io/metersphere/commons/utils/JSONToDocumentUtil.java b/api-test/backend/src/main/java/io/metersphere/commons/utils/JSONToDocumentUtil.java index f7b962eab5..42664566d5 100644 --- a/api-test/backend/src/main/java/io/metersphere/commons/utils/JSONToDocumentUtil.java +++ b/api-test/backend/src/main/java/io/metersphere/commons/utils/JSONToDocumentUtil.java @@ -33,7 +33,7 @@ public class JSONToDocumentUtil { if (value != null) { type = DocumentUtils.getType(value); } - children.add(new DocumentElement(StringUtils.EMPTY, type, value, null)); + children.add(new DocumentElement(String.valueOf(i), type, value, null)); } } }