Skip to content

Commit 8927433

Browse files
authored
Merge pull request #66 from ehrmann/pattern-strings
Only apply pattern validation on strings
2 parents 8b640f9 + 3b36f38 commit 8927433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public Set<ValidationMessage> validate(JsonNode node, JsonNode rootNode, String
4848
debug(logger, node, rootNode, at);
4949

5050
JsonType nodeType = TypeFactory.getValueNodeType(node);
51-
if (nodeType != JsonType.STRING && nodeType != JsonType.NUMBER && nodeType != JsonType.INTEGER) {
51+
if (nodeType != JsonType.STRING) {
5252
return Collections.emptySet();
5353
}
5454

0 commit comments

Comments
 (0)