fix: swagger2响应解析不完整
This commit is contained in:
parent
f72e8dcf62
commit
c3f9c1fc00
|
@ -294,7 +294,14 @@ public class Swagger2Parser extends SwaggerAbstractParser {
|
|||
propertyList.add(new JSONObject());
|
||||
}
|
||||
jsonObject.put(key, propertyList);
|
||||
} else {
|
||||
} else if (items instanceof ObjectProperty) {
|
||||
JSONArray propertyList = new JSONArray();
|
||||
if (items != null) {
|
||||
propertyList.add(getBodyParameters(((ObjectProperty) items).getProperties(), refSet));
|
||||
}
|
||||
jsonObject.put(key, propertyList);
|
||||
}
|
||||
else {
|
||||
jsonObject.put(key, new ArrayList<>());
|
||||
}
|
||||
} else if (value instanceof RefProperty) {
|
||||
|
|
Loading…
Reference in New Issue