Skip to content

Commit 3d1e9e4

Browse files
committed
fixes #281 EmailValidator use ValidatorTypeCode Datetime
1 parent 8832315 commit 3d1e9e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/networknt/schema/format/EmailValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ protected boolean isValidUser(String user) {
136136
}
137137

138138
public EmailValidator(String schemaPath, JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext, String formatName) {
139-
super(schemaPath, schemaNode, parentSchema, ValidatorTypeCode.DATETIME, validationContext);
139+
super(schemaPath, schemaNode, parentSchema, ValidatorTypeCode.FORMAT, validationContext);
140140
this.formatName = formatName;
141141
parseErrorCode(getValidatorType().getErrorCodeKey());
142142
}

0 commit comments

Comments
 (0)