Skip to content

Commit 96b5569

Browse files
committed
Redirect the standard vocabulary URIs
We've already had one person confused that these URIs 404, even though the spec says to expect that. Let's generate HTML stubs to redirect to the appropriate spec section for each vocabulary (or the whole spec for Hyper-Schema). No media type restrictions are given at this time for vocabulary documents, so having HTML here is fine. Jekyll (at least the local version, production sometimes differs) will do the redirect on URIs without the .html suffix, which is what we need. It will also do it with .html, but I think that's fine.
1 parent 4b2bc46 commit 96b5569

File tree

7 files changed

+28
-0
lines changed

7 files changed

+28
-0
lines changed

draft/2019-09/vocab/applicator.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
redirect_to: /draft/2019-09/json-schema-core.html#rfc.section.9
3+
title: A Vocabulary for Applying Subschemas
4+
---

draft/2019-09/vocab/content.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
redirect_to: /draft/2019-09/json-schema-validation.html#rfc.section.8
3+
title: A Vocabulary for the Contents of String-Encoded Data
4+
---

draft/2019-09/vocab/core.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
redirect_to: /draft/2019-09/json-schema-core.html#rfc.section.8
3+
title: The JSON Schema Core Vocabulary
4+
---

draft/2019-09/vocab/format.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
redirect_to: /draft/2019-09/json-schema-validation.html#rfc.section.7
3+
title: A Vocabulary for Semantic Content with "format"
4+
---

draft/2019-09/vocab/hyper-schema.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
redirect_to: /draft/2019-09/json-schema-hypermedia.html
3+
title: "JSON Hyper-Schema: A Vocabulary for Hypermedia Annotation of JSON"
4+
---

draft/2019-09/vocab/meta-data.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
redirect_to: /draft/2019-09/json-schema-validation.html#rfc.section.9
3+
title: A Vocabulary for Basic Meta-Data Annotations
4+
---

draft/2019-09/vocab/validation.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
redirect_to: /draft/2019-09/json-schema-validation.html#rfc.section.6
3+
title: A Vocabulary for Structural Validation
4+
---

0 commit comments

Comments
 (0)