Skip to content

Commit d29cc40

Browse files
authored
Update UUIDValidator.java
Fix ValidationContext from ValidatorTypeCode.DATETIME to ValidatorTypeCode.UUID due to it's UUIDValidator
1 parent cf3b4fe commit d29cc40

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)