Skip to content

Commit 6b08c5c

Browse files
authored
Merge pull request #283 from networknt/issue281
fixes #281 EmailValidator use ValidatorTypeCode Datetime
2 parents 8832315 + 3d1e9e4 commit 6b08c5c

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)