Skip to content

Commit 62400ae

Browse files
committed
Apparently some links have changed.
1 parent 4df52b1 commit 62400ae

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sphinx_json_schema_spec/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from lxml import html
1212

1313

14-
VALIDATION_SPEC = "http://json-schema.org/latest/json-schema-validation.html"
14+
VALIDATION_SPEC = "http://json-schema.org/draft-04/json-schema-validation.html"
1515

1616

1717
def setup(app):
@@ -84,8 +84,10 @@ def docutils_sucks(spec):
8484
"""
8585

8686
base_url = VALIDATION_SPEC
87-
ref_url = "http://json-schema.org/latest/json-schema-core.html#anchor25"
88-
schema_url = "http://json-schema.org/latest/json-schema-core.html#anchor22"
87+
ref_url = "http://json-schema.org/draft-04/json-schema-core.html#rfc.section.4.1"
88+
schema_url = (
89+
"http://json-schema.org/draft-04/json-schema-core.html#rfc.section.6"
90+
)
8991

9092
def validator(name, raw_text, text, lineno, inliner):
9193
"""

0 commit comments

Comments
 (0)