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

Commit 8648265

Browse files
author
Phil Sturgeon
authored
Merge pull request #196 from handrews/hyper-etc
Update hyper-schema section and make it more prominent
2 parents 58658bc + 7c4f8b0 commit 8648265

File tree

2 files changed

+56
-11
lines changed

2 files changed

+56
-11
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: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ Validators
7070
- [{{ tool.name }}]({{ tool.url }}) [draft {{ tool.draft | join: ", draft " }}] ({{ tool.license | join: ", " }}){% if tool.notes %}
7171
- {{ tool.notes }} {% endif %}{% endfor %}
7272

73-
74-
Validation benchmarks
75-
---------------------
73+
### Benchmarks
7674

7775
- Java
7876
- [json-schema-validator-benchmark](https://github.com/networknt/json-schema-validator-perftest) - compares performance of three JSON schema validator implementations in Java(Apache 2.0)
@@ -87,6 +85,45 @@ Validation benchmarks
8785
- PHP
8886
- [php-json-schema-bench](https://github.com/swaggest/php-json-schema-bench) - comparative benchmark for JSON-schema PHP validators using JSON-Schema Test Suite and z-schema/JSCK (MIT)
8987

88+
Hyper-Schema
89+
---------------------
90+
91+
<nav class="intra" markdown="1">
92+
93+
{% assign hyper-schema-libraries = site.data.hyper-schema-libraries | sort:"name" %}
94+
95+
{% for language in hyper-schema-libraries %}
96+
- [{{ language.name }}](#hyper-schema-{% if language.anchor-name %}{{ language.anchor-name }}{% else %}{{ language.name | downcase }}{% endif %})
97+
{% endfor %}
98+
99+
</nav>
100+
101+
<!-- To add a hyper-schema library, add it in _data/hyper-schema-libraries.yml -->
102+
103+
<ul>
104+
{% for language in hyper-schema-libraries %}
105+
<li>
106+
{{language.name}} <a id="hyper-schema-{% if language.anchor-name %}{{ language.anchor-name }}{% else %}{{ language.name | downcase }}{% endif %}"></a>
107+
<ul>
108+
{% for implementation in language.implementations %}
109+
<li>
110+
<a href="{{implementation.url}}">{{ implementation.name }}</a>
111+
112+
{% if implementation.draft %}
113+
<em>supports draft {{ implementation.draft | join: ", draft " }}</em>
114+
{% endif %}
115+
116+
{{implementation.notes | markdownify | remove: '<p>' | remove: '</p>'}}
117+
({{ implementation.license | join: ", " }})
118+
119+
</li>
120+
{% endfor %}
121+
</ul>
122+
</li>
123+
{% endfor %}
124+
</ul>
125+
126+
90127
Schema generation
91128
-----------------
92129

@@ -169,14 +206,6 @@ Compatibility
169206
- JavaScript
170207
- [JSON Schema Compatibility](https://github.com/geraintluff/json-schema-compatability) - *converts draft 3 to draft 4* (Public Domain)
171208

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-
180209
Documentation generation
181210
------------------------
182211

0 commit comments

Comments
 (0)