Skip to content

Commit

Permalink
Add error message when using jsonschema <3.0.0 (see #147) (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdb authored and jag3773 committed May 8, 2020
1 parent 0aa8560 commit e416c89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
import jsonschema


if int(jsonschema.__version__.split('.', 1)[0]) < 3:
raise RuntimeError("Please update jsonschema to 3.0.0 or later.")


schema_uri_prefix = 'https://burrito.bible/schema/'
schema_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'schema')
schema = json.load(open(os.path.join(schema_dir, 'metadata.schema.json')))
Expand Down

0 comments on commit e416c89

Please sign in to comment.