Skip to content

Commit 9ab3898

Browse files
committed
switch to draft/2020-12 default
1 parent ea2774e commit 9ab3898

File tree

7 files changed

+6
-10
lines changed

7 files changed

+6
-10
lines changed

src/pyhf/schema/validator.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ def validate(
9696

9797
Validator = jsonschema.Draft202012Validator
9898

99-
# downgrade Validator for v1.0.0
100-
if version == '1.0.0':
101-
Validator = jsonschema.Draft6Validator # type: ignore[assignment]
102-
10399
if allow_tensors:
104100
type_checker = Validator.TYPE_CHECKER.redefine(
105101
"array", _is_array_or_tensor

src/pyhf/schemas/1.0.0/defs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-06/schema#",
2+
"$schema": "http://json-schema.org/draft/2020-12/schema#",
33
"$id": "https://scikit-hep.org/pyhf/schemas/1.0.0/defs.json",
44
"definitions": {
55
"workspace": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-06/schema#",
2+
"$schema": "http://json-schema.org/draft/2020-12/schema#",
33
"$id": "https://scikit-hep.org/pyhf/schemas/1.0.0/jsonpatch.json",
44
"$ref": "defs.json#/definitions/jsonpatch"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-06/schema#",
2+
"$schema": "http://json-schema.org/draft/2020-12/schema#",
33
"$id": "https://scikit-hep.org/pyhf/schemas/1.0.0/measurement.json",
44
"$ref": "defs.json#/definitions/measurement"
55
}

src/pyhf/schemas/1.0.0/model.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-06/schema#",
2+
"$schema": "http://json-schema.org/draft/2020-12/schema#",
33
"$id": "https://scikit-hep.org/pyhf/schemas/1.0.0/model.json",
44
"$ref": "defs.json#/definitions/model"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-06/schema#",
2+
"$schema": "http://json-schema.org/draft/2020-12/schema#",
33
"$id": "https://scikit-hep.org/pyhf/schemas/1.0.0/patchset.json",
44
"$ref": "defs.json#/definitions/patchset"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-06/schema#",
2+
"$schema": "http://json-schema.org/draft/2020-12/schema#",
33
"$id": "https://scikit-hep.org/pyhf/schemas/1.0.0/workspace.json",
44
"$ref": "defs.json#/definitions/workspace"
55
}

0 commit comments

Comments
 (0)