Skip to content

Commit ec8ac0e

Browse files
gmabeyGlen M
and
Glen M
authored
prevent exception with older jsonschema versions (#18)
* prevent exception with older jsonschema versions * incremented version to 1.1.2 --------- Co-authored-by: Glen M <[email protected]>
1 parent 0578961 commit ec8ac0e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

sigmf/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# SPDX-License-Identifier: LGPL-3.0-or-later
66

7-
__version__ = '1.1.1'
7+
__version__ = '1.1.2'
88

99
from .archive import SigMFArchive
1010
from .sigmffile import SigMFFile, SigMFCollection

sigmf/validate.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ def validate(metadata, ref_schema=schema.get_schema()):
6565
-------
6666
None, will raise error if invalid.
6767
'''
68-
validator = jsonschema.Draft7Validator(schema=ref_schema)
69-
validator.validate(instance=metadata)
68+
jsonschema.validators.validate(instance=metadata, schema=ref_schema)
7069

7170
# assure capture and annotation order
7271
# TODO: There is a way to do this with just the schema apparently.

0 commit comments

Comments
 (0)