Skip to content

Commit

Permalink
Update validate_spec.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Dec 7, 2023
1 parent af13e72 commit ae75cf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hdmf/testing/validate_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def __init__(self):
new_resolver = FixResolver()

f_nwb = open(fpath_spec, 'r')
instance = yaml.safe_load(f_nwb)
yaml = YAML(typ='safe', pure=True)
instance = yaml.load(f_nwb)

jsonschema.validate(instance, schema, resolver=new_resolver)

Expand Down

0 comments on commit ae75cf1

Please sign in to comment.