fix: 解析API数据结构

This commit is contained in:
taojinlong 2023-10-30 15:37:08 +08:00
parent cb9d94639a
commit e5747ba8f5

View File

@ -319,7 +319,7 @@ public class ApiUtils {
} }
} }
for (JsonNode node : jsonArray) { for (JsonNode node : jsonArray) {
handleStr(apiDefinition, node.toString(), childrenField, rootPath + "." + fieldName + "[*]"); handleStr(apiDefinition, node.toString(), childrenField, rootPath + "." + String.format(path, fieldName) + "[*]");
} }
o.put("children", childrenField); o.put("children", childrenField);
o.put("childrenDataType", "LIST"); o.put("childrenDataType", "LIST");