Skip to content

Commit

Permalink
Fix Draft202012Validator format checker casing
Browse files Browse the repository at this point in the history
  • Loading branch information
emersonf committed Dec 7, 2022
1 parent 575a5e9 commit 667ba9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-data-validator/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def validate_data_file_against_schema(data_file: DataFile, schema_file: SchemaFi
resolver = RefResolver(schema_file.schema_id.base_uri, schema_file.data, ref_resolver_store)

# see https://python-jsonschema.readthedocs.io/en/stable/validate/
validate(data_file.data, schema_file.data, resolver=resolver, format_checker=Draft202012Validator.format_checker)
validate(data_file.data, schema_file.data, resolver=resolver, format_checker=Draft202012Validator.FORMAT_CHECKER)

if not data_file.should_pass:
print("Error: The data file '{}' should have failed validation against schema {}, but"
Expand Down

0 comments on commit 667ba9e

Please sign in to comment.