diff --git a/src/pyhf/schema/validator.py b/src/pyhf/schema/validator.py index 40094a734f..939ed61e45 100644 --- a/src/pyhf/schema/validator.py +++ b/src/pyhf/schema/validator.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import numbers from pathlib import Path import jsonschema @@ -96,6 +98,10 @@ def validate( Validator = jsonschema.Draft202012Validator + # downgrade Validator for v1.0.0 + if version == '1.0.0': + Validator = jsonschema.Draft6Validator # type: ignore[assignment] + if allow_tensors: type_checker = Validator.TYPE_CHECKER.redefine( "array", _is_array_or_tensor