File tree Expand file tree Collapse file tree 7 files changed +6
-10
lines changed Expand file tree Collapse file tree 7 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,6 @@ def validate(
94
94
95
95
Validator = jsonschema .Draft202012Validator
96
96
97
- # downgrade Validator for v1.0.0
98
- if version == '1.0.0' :
99
- Validator = jsonschema .Draft6Validator # type: ignore[assignment]
100
-
101
97
if allow_tensors :
102
98
type_checker = Validator .TYPE_CHECKER .redefine (
103
99
"array" , _is_array_or_tensor
Original file line number Diff line number Diff line change 1
1
{
2
- "$schema" : " http://json-schema.org/draft-06 /schema#" ,
2
+ "$schema" : " http://json-schema.org/draft/2020-12 /schema#" ,
3
3
"$id" : " https://scikit-hep.org/pyhf/schemas/1.0.0/defs.json" ,
4
4
"definitions" : {
5
5
"workspace" : {
Original file line number Diff line number Diff line change 1
1
{
2
- "$schema" : " http://json-schema.org/draft-06 /schema#" ,
2
+ "$schema" : " http://json-schema.org/draft/2020-12 /schema#" ,
3
3
"$id" : " https://scikit-hep.org/pyhf/schemas/1.0.0/jsonpatch.json" ,
4
4
"$ref" : " defs.json#/definitions/jsonpatch"
5
5
}
Original file line number Diff line number Diff line change 1
1
{
2
- "$schema" : " http://json-schema.org/draft-06 /schema#" ,
2
+ "$schema" : " http://json-schema.org/draft/2020-12 /schema#" ,
3
3
"$id" : " https://scikit-hep.org/pyhf/schemas/1.0.0/measurement.json" ,
4
4
"$ref" : " defs.json#/definitions/measurement"
5
5
}
Original file line number Diff line number Diff line change 1
1
{
2
- "$schema" : " http://json-schema.org/draft-06 /schema#" ,
2
+ "$schema" : " http://json-schema.org/draft/2020-12 /schema#" ,
3
3
"$id" : " https://scikit-hep.org/pyhf/schemas/1.0.0/model.json" ,
4
4
"$ref" : " defs.json#/definitions/model"
5
5
}
Original file line number Diff line number Diff line change 1
1
{
2
- "$schema" : " http://json-schema.org/draft-06 /schema#" ,
2
+ "$schema" : " http://json-schema.org/draft/2020-12 /schema#" ,
3
3
"$id" : " https://scikit-hep.org/pyhf/schemas/1.0.0/patchset.json" ,
4
4
"$ref" : " defs.json#/definitions/patchset"
5
5
}
Original file line number Diff line number Diff line change 1
1
{
2
- "$schema" : " http://json-schema.org/draft-06 /schema#" ,
2
+ "$schema" : " http://json-schema.org/draft/2020-12 /schema#" ,
3
3
"$id" : " https://scikit-hep.org/pyhf/schemas/1.0.0/workspace.json" ,
4
4
"$ref" : " defs.json#/definitions/workspace"
5
5
}
You can’t perform that action at this time.
0 commit comments