fix: 解析API数据结构

This commit is contained in:
taojinlong 2023-10-30 15:36:00 +08:00
parent 8337b95b73
commit 428197bb04

View File

@ -281,7 +281,7 @@ public class ApiProvider extends Provider {
JSONArray jsonArray = jsonObject.getJSONArray(s);
List<JSONObject> childrenField = new ArrayList<>();
for (Object object : jsonArray) {
handleStr(apiDefinition, JSON.toJSONString(object, SerializerFeature.WriteMapNullValue), childrenField, rootPath + "." + s + "[*]");
handleStr(apiDefinition, JSON.toJSONString(object, SerializerFeature.WriteMapNullValue), childrenField, rootPath + "." + String.format(path, s) + "[*]");
}
o.put("children", childrenField);
o.put("childrenDataType", "LIST");