Skip to content

Commit 1fd4883

Browse files
committed
date validation
1 parent 18949d8 commit 1fd4883

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

helpers.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -658,18 +658,6 @@ def validate_against_schema(data, row, project_id):
658658
# Collect all validation errors for this specific row
659659
for error in validator.iter_errors(data):
660660

661-
field_name = ".".join(str(x) for x in error.path) if error.path else "root"
662-
663-
is_date_pattern_error = (
664-
error.schema.get("format") == "date" and
665-
"pattern" in error.schema and
666-
"does not match" in error.message
667-
)
668-
669-
if is_date_pattern_error:
670-
print(f"Skipping date pattern validation error for field {field_name}: {error.message}")
671-
continue # Skip this error
672-
673661
error_info = {
674662
"row": row,
675663
"field": ".".join(str(x) for x in error.path) if error.path else "root",

0 commit comments

Comments
 (0)