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

Commit 168e8b1

Browse files
committed
Update hyper-schema section
Make a _data YAML file for it (sadly Jekyll insists on .yml) and move it up directly under validation.
1 parent 58658bc commit 168e8b1

File tree

2 files changed

+54
-8
lines changed

2 files changed

+54
-8
lines changed

_data/hyper-schema-libraries.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
- name: JavaScript
2+
implementations:
3+
- name: mokkabonna/json-hyper-schema
4+
url: "https://github.com/mokkabonna/json-hyper-schema"
5+
license: MIT
6+
draft: [7]
7+
- name: Jsonary
8+
url: "http://jsonary.com/"
9+
license: MIT
10+
draft: [4]
11+
- name: Python
12+
implementations:
13+
- name: Core API Hyper-Schema codec
14+
url: "https://github.com/core-api/python-jsonhyperschema-codec"
15+
draft: [4]
16+
license: BSD-2-Clause

implementations.md

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,44 @@ Validators
7070
- [{{ tool.name }}]({{ tool.url }}) [draft {{ tool.draft | join: ", draft " }}] ({{ tool.license | join: ", " }}){% if tool.notes %}
7171
- {{ tool.notes }} {% endif %}{% endfor %}
7272

73+
Hyper-Schema
74+
---------------------
75+
76+
<nav class="intra" markdown="1">
77+
78+
{% assign hyper-schema-libraries = site.data.hyper-schema-libraries | sort:"name" %}
79+
80+
{% for language in hyper-schema-libraries %}
81+
- [{{ language.name }}](#hyper-schema-{% if language.anchor-name %}{{ language.anchor-name }}{% else %}{{ language.name | downcase }}{% endif %})
82+
{% endfor %}
83+
84+
</nav>
85+
86+
<!-- To add a hyper-schema library, add it in _data/hyper-schema-libraries.yml -->
87+
88+
<ul>
89+
{% for language in hyper-schema-libraries %}
90+
<li>
91+
{{language.name}} <a id="hyper-schema-{% if language.anchor-name %}{{ language.anchor-name }}{% else %}{{ language.name | downcase }}{% endif %}"></a>
92+
<ul>
93+
{% for implementation in language.implementations %}
94+
<li>
95+
<a href="{{implementation.url}}">{{ implementation.name }}</a>
96+
97+
{% if implementation.draft %}
98+
<em>supports draft {{ implementation.draft | join: ", draft " }}</em>
99+
{% endif %}
100+
101+
{{implementation.notes | markdownify | remove: '<p>' | remove: '</p>'}}
102+
({{ implementation.license | join: ", " }})
103+
104+
</li>
105+
{% endfor %}
106+
</ul>
107+
</li>
108+
{% endfor %}
109+
</ul>
110+
73111

74112
Validation benchmarks
75113
---------------------
@@ -169,14 +207,6 @@ Compatibility
169207
- JavaScript
170208
- [JSON Schema Compatibility](https://github.com/geraintluff/json-schema-compatability) - *converts draft 3 to draft 4* (Public Domain)
171209

172-
Hyper-schema handling
173-
---------------------
174-
175-
- JavaScript
176-
- [Jsonary](http://jsonary.com/) - *supports draft 4* (MIT)
177-
- Python
178-
- [Core API Hyper-Schema codec](https://github.com/core-api/python-jsonhyperschema-codec) - *supports draft 4* (BSD-2-Clause)
179-
180210
Documentation generation
181211
------------------------
182212

0 commit comments

Comments
 (0)