mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-29 18:48:13 +08:00
fix: swagger3 空指针
This commit is contained in:
parent
1566f8c79b
commit
625085c0a6
@ -333,6 +333,9 @@ public class Swagger3Parser extends SwaggerAbstractParser {
|
||||
}
|
||||
|
||||
private Object parseSchemaProperties(Schema schema, Set<String> refSet, Map<String, Schema> infoMap) {
|
||||
if (schema == null) {
|
||||
return null;
|
||||
}
|
||||
Map<String, Schema> properties = schema.getProperties();
|
||||
if (MapUtils.isEmpty(properties)) {
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user