parent
81594428e8
commit
8668715ceb
|
@ -350,7 +350,9 @@ 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();
|
||||||
jsonSchemaItem.setType(schema.getType());
|
if (StringUtils.isNotBlank(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