parent
81594428e8
commit
8668715ceb
|
@ -350,8 +350,10 @@ public class Swagger3Parser extends SwaggerAbstractParser {
|
||||||
JsonSchemaItem jsonSchemaItem = parseSchema(schema, refSet);
|
JsonSchemaItem jsonSchemaItem = parseSchema(schema, refSet);
|
||||||
if (jsonSchemaItem == null) {
|
if (jsonSchemaItem == null) {
|
||||||
jsonSchemaItem = new JsonSchemaItem();
|
jsonSchemaItem = new JsonSchemaItem();
|
||||||
|
if (StringUtils.isNotBlank(schema.getType())) {
|
||||||
jsonSchemaItem.setType(schema.getType());
|
jsonSchemaItem.setType(schema.getType());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (MapUtils.isEmpty(jsonSchemaItem.getProperties())) {
|
if (MapUtils.isEmpty(jsonSchemaItem.getProperties())) {
|
||||||
jsonSchemaItem.setProperties(new HashMap<>());
|
jsonSchemaItem.setProperties(new HashMap<>());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue