fix(接口测试): 修复文档断言,数组格式的数据没有显示索引的缺陷

--bug=1028298 --user=王孝刚 【接口测试】test-断言-文档断言-跟随api定义-数组类型字段名可编辑且为空
https://www.tapd.cn/55049933/s/1403739
This commit is contained in:
wxg0103 2023-08-15 14:01:52 +08:00 committed by 刘瑞斌
parent 46f31912cc
commit 7534a5c1ec

View File

@ -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));
}
}
}