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