diff --git a/src/pyhf/schema/validator.py b/src/pyhf/schema/validator.py index 3860690a11..7928e6dfce 100644 --- a/src/pyhf/schema/validator.py +++ b/src/pyhf/schema/validator.py @@ -96,10 +96,6 @@ 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 diff --git a/src/pyhf/schemas/1.0.0/defs.json b/src/pyhf/schemas/1.0.0/defs.json index 3f67d9d687..d66e2a1528 100644 --- a/src/pyhf/schemas/1.0.0/defs.json +++ b/src/pyhf/schemas/1.0.0/defs.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft-06/schema#", + "$schema": "http://json-schema.org/draft/2020-12/schema#", "$id": "https://scikit-hep.org/pyhf/schemas/1.0.0/defs.json", "definitions": { "workspace": { diff --git a/src/pyhf/schemas/1.0.0/jsonpatch.json b/src/pyhf/schemas/1.0.0/jsonpatch.json index e860625482..e4d83cab9c 100644 --- a/src/pyhf/schemas/1.0.0/jsonpatch.json +++ b/src/pyhf/schemas/1.0.0/jsonpatch.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft-06/schema#", + "$schema": "http://json-schema.org/draft/2020-12/schema#", "$id": "https://scikit-hep.org/pyhf/schemas/1.0.0/jsonpatch.json", "$ref": "defs.json#/definitions/jsonpatch" } diff --git a/src/pyhf/schemas/1.0.0/measurement.json b/src/pyhf/schemas/1.0.0/measurement.json index 7ee2c88880..27ce1e3f6d 100644 --- a/src/pyhf/schemas/1.0.0/measurement.json +++ b/src/pyhf/schemas/1.0.0/measurement.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft-06/schema#", + "$schema": "http://json-schema.org/draft/2020-12/schema#", "$id": "https://scikit-hep.org/pyhf/schemas/1.0.0/measurement.json", "$ref": "defs.json#/definitions/measurement" } diff --git a/src/pyhf/schemas/1.0.0/model.json b/src/pyhf/schemas/1.0.0/model.json index b3e6c3d44b..37ae8e31e3 100644 --- a/src/pyhf/schemas/1.0.0/model.json +++ b/src/pyhf/schemas/1.0.0/model.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft-06/schema#", + "$schema": "http://json-schema.org/draft/2020-12/schema#", "$id": "https://scikit-hep.org/pyhf/schemas/1.0.0/model.json", "$ref": "defs.json#/definitions/model" } diff --git a/src/pyhf/schemas/1.0.0/patchset.json b/src/pyhf/schemas/1.0.0/patchset.json index cf948269b2..620d633ade 100644 --- a/src/pyhf/schemas/1.0.0/patchset.json +++ b/src/pyhf/schemas/1.0.0/patchset.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft-06/schema#", + "$schema": "http://json-schema.org/draft/2020-12/schema#", "$id": "https://scikit-hep.org/pyhf/schemas/1.0.0/patchset.json", "$ref": "defs.json#/definitions/patchset" } diff --git a/src/pyhf/schemas/1.0.0/workspace.json b/src/pyhf/schemas/1.0.0/workspace.json index 693d6f1648..d50d231985 100644 --- a/src/pyhf/schemas/1.0.0/workspace.json +++ b/src/pyhf/schemas/1.0.0/workspace.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft-06/schema#", + "$schema": "http://json-schema.org/draft/2020-12/schema#", "$id": "https://scikit-hep.org/pyhf/schemas/1.0.0/workspace.json", "$ref": "defs.json#/definitions/workspace" }