Skip to content

Commit f4764e5

Browse files
committed
check for type on additionalProperties
1 parent e6f52f8 commit f4764e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-core/src/main/java/io/swagger/util/PropertyDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Property propertyFromNode(JsonNode node) {
145145

146146
if (ObjectProperty.isType(type) || node.get("properties") != null) {
147147
detailNode = node.get("additionalProperties");
148-
if (detailNode != null) {
148+
if (detailNode != null && detailNode.getNodeType().equals(JsonNodeType.OBJECT)) {
149149
Property items = propertyFromNode(detailNode);
150150
if (items != null) {
151151
MapProperty mapProperty = new MapProperty(items).description(description);

0 commit comments

Comments
 (0)