From 667ba9e4f1c5c68d874977b96bb7aef08cf13ea9 Mon Sep 17 00:00:00 2001 From: Emerson Farrugia Date: Wed, 7 Dec 2022 22:27:43 +0100 Subject: [PATCH] Fix Draft202012Validator format checker casing --- test-data-validator/validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-data-validator/validator.py b/test-data-validator/validator.py index db42d247..59fd9310 100644 --- a/test-data-validator/validator.py +++ b/test-data-validator/validator.py @@ -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"