We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0674a3 commit ccca2cfCopy full SHA for ccca2cf
src/pyhf/schema/validator.py
@@ -1,3 +1,5 @@
1
+from __future__ import annotations
2
+
3
import numbers
4
import jsonschema
5
import logging
@@ -92,6 +94,10 @@ def validate(
92
94
93
95
Validator = jsonschema.Draft202012Validator
96
97
+ # downgrade Validator for v1.0.0
98
+ if version == '1.0.0':
99
+ Validator = jsonschema.Draft6Validator # type: ignore[assignment]
100
101
if allow_tensors:
102
type_checker = Validator.TYPE_CHECKER.redefine(
103
"array", _is_array_or_tensor
0 commit comments