Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit f5038e6

Browse files
authored
Merge pull request #300 from handrews/schema-redirect
Redirect unversioned meta-schemas
2 parents 821bb77 + 7d53bd2 commit f5038e6

File tree

8 files changed

+30
-4
lines changed

8 files changed

+30
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ before_script:
88
- PATH="./node_modules/.bin/:$PATH"
99
script:
1010
- bundle exec jekyll build
11-
- ajv test -s schema -d "learn/examples/*.json" --valid
11+
- ajv test -s draft-07/schema -d "learn/examples/*.json" --valid

_layouts/redirect.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en-US">
3+
<meta charset="utf-8">
4+
<title>Redirecting&hellip;</title>
5+
<link rel="canonical" href="{{ page.redirect.to }}">
6+
<meta http-equiv="refresh" content="0; url={{ page.redirect.to }}">
7+
<meta name="robots" content="noindex">
8+
<h1>Redirecting&hellip;</h1>
9+
<p>
10+
Several redirections on json-schema.org are special cases:
11+
</p>
12+
<ul>
13+
<li>The unversioned meta-schema URIs should no longer be used.</li>
14+
<li>The vocabularies are represented by their specification text.</li>
15+
<li>The "latest" specification URIs are for convenice of browser
16+
bookmarking only.</li>
17+
</ul>
18+
<a href="{{ page.redirect.to }}">Click here if you are not redirected.</a>
19+
<script>location="{{ page.redirect.to }}"</script>
20+
</html>

hyper-schema

Lines changed: 0 additions & 1 deletion
This file was deleted.

hyper-schema.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
redirect_to: /draft/2019-09/hyper-schema
3+
---

links

Lines changed: 0 additions & 1 deletion
This file was deleted.

links.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
redirect_to: /draft/2019-09/links
3+
---

schema

Lines changed: 0 additions & 1 deletion
This file was deleted.

schema.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
redirect_to: /draft/2019-09/schema
3+
---

0 commit comments

Comments
 (0)