diff --git a/sigmf/__init__.py b/sigmf/__init__.py index 5857987..42e2136 100644 --- a/sigmf/__init__.py +++ b/sigmf/__init__.py @@ -4,7 +4,7 @@ # # SPDX-License-Identifier: LGPL-3.0-or-later -__version__ = '1.1.1' +__version__ = '1.1.2' from .archive import SigMFArchive from .sigmffile import SigMFFile, SigMFCollection diff --git a/sigmf/validate.py b/sigmf/validate.py index f7a13d5..a251bdd 100644 --- a/sigmf/validate.py +++ b/sigmf/validate.py @@ -65,8 +65,7 @@ def validate(metadata, ref_schema=schema.get_schema()): ------- None, will raise error if invalid. ''' - validator = jsonschema.Draft7Validator(schema=ref_schema) - validator.validate(instance=metadata) + jsonschema.validators.validate(instance=metadata, schema=ref_schema) # assure capture and annotation order # TODO: There is a way to do this with just the schema apparently.