Skip to content

Commit 0564d9b

Browse files
committed
added type check
1 parent 2aaac12 commit 0564d9b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/io/swagger/validator/models/SchemaValidationError.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,9 @@ public SchemaValidationError(JsonNode node) {
6161
}
6262

6363
prop = node.get("required");
64-
if (prop != null) {
64+
if (prop != null && prop.isArray()) {
6565
ArrayNode an = (ArrayNode) prop;
6666
}
67-
6867
}
6968

7069
public String getLevel() {

0 commit comments

Comments
 (0)