Skip to content

Commit 0ff98e9

Browse files
committed
fixes #92 rollback type validator for null value as it is against json scheme spec
1 parent 09fdcda commit 0ff98e9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/java/com/networknt/schema/TypeValidator.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ public Set<ValidationMessage> validate(JsonNode node, JsonNode rootNode, String
5252
if (schemaType == JsonType.ANY ) {
5353
return Collections.emptySet();
5454
}
55-
if (schemaType == JsonType.NULL ) {
56-
return Collections.emptySet();
57-
}
5855
if (schemaType == JsonType.NUMBER && nodeType == JsonType.INTEGER) {
5956
return Collections.emptySet();
6057
}

0 commit comments

Comments
 (0)