Skip to content

Commit bea2d41

Browse files
authored
Merge pull request #298 from qiunju/patch-1
Update UUIDValidator.java
2 parents cf3b4fe + d29cc40 commit bea2d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class UUIDValidator extends BaseJsonValidator implements JsonValidator {
3333
private static final String regex = "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
3434

3535
public UUIDValidator(String schemaPath, JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext, String formatName) {
36-
super(schemaPath, schemaNode, parentSchema, ValidatorTypeCode.DATETIME, validationContext);
36+
super(schemaPath, schemaNode, parentSchema, ValidatorTypeCode.UUID, validationContext);
3737
this.formatName = formatName;
3838
parseErrorCode(getValidatorType().getErrorCodeKey());
3939
}

0 commit comments

Comments
 (0)