File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,12 @@ def get_jsonschema_csl_validator():
16
16
"""
17
17
Return a jsonschema validator for the CSL Item JSON Schema
18
18
"""
19
- import jsonref
20
19
import jsonschema
20
+ import requests
21
21
22
22
# todo: revert to manubot branch after testing
23
23
url = "https://github.com/dhimmel/csl-schema/raw/19596ab022f220de1239559400b31ee1ef9dc2ad/csl-data.json"
24
- # Use jsonref to workaround https://github.com/Julian/jsonschema/issues/447
25
- schema = jsonref .load_uri (url , jsonschema = True )
24
+ schema = requests .get (url ).json ()
26
25
Validator = jsonschema .validators .validator_for (schema )
27
26
Validator .check_schema (schema )
28
27
return Validator (schema )
Original file line number Diff line number Diff line change 67
67
"errorhandler" ,
68
68
"isbnlib" ,
69
69
"jinja2" ,
70
- "jsonref" ,
71
70
"jsonschema" ,
72
71
"packaging" ,
73
72
"panflute" ,
You can’t perform that action at this time.
0 commit comments