提交 44b0d7f6 编写于 作者: C chenjianxing

fix: swagger3 空指针

上级 a2faa2bc
......@@ -320,6 +320,9 @@ public class Swagger3Parser extends SwaggerAbstractParser {
}
private Object parseSchema(Schema schema, Set<String> refSet, Map<String, Schema> infoMap) {
if (schema == null) {
return new JSONObject();
}
infoMap.put(schema.getName(), schema);
if (StringUtils.isNotBlank(schema.get$ref())) {
if (refSet.contains(schema.get$ref())) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册