Skip to content

Commit 2e9c2e1

Browse files
committed
remove jsonref
hoping python-jsonschema/jsonschema#447 is resolved
1 parent c9bccc9 commit 2e9c2e1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

manubot/cite/citeproc.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ def get_jsonschema_csl_validator():
1616
"""
1717
Return a jsonschema validator for the CSL Item JSON Schema
1818
"""
19-
import jsonref
2019
import jsonschema
20+
import requests
2121

2222
# todo: revert to manubot branch after testing
2323
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()
2625
Validator = jsonschema.validators.validator_for(schema)
2726
Validator.check_schema(schema)
2827
return Validator(schema)

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
"errorhandler",
6868
"isbnlib",
6969
"jinja2",
70-
"jsonref",
7170
"jsonschema",
7271
"packaging",
7372
"panflute",

0 commit comments

Comments
 (0)