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

Update hyper-schema section and make it more prominent #196

Merged
merged 2 commits into from
Mar 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions _data/hyper-schema-libraries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- name: JavaScript
implementations:
- name: mokkabonna/json-hyper-schema
url: "https://github.com/mokkabonna/json-hyper-schema"
license: MIT
draft: [7]
- name: Jsonary
url: "http://jsonary.com/"
license: MIT
draft: [4]
- name: Python
implementations:
- name: Core API Hyper-Schema codec
url: "https://github.com/core-api/python-jsonhyperschema-codec"
draft: [4]
license: BSD-2-Clause
51 changes: 40 additions & 11 deletions implementations.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ Validators
- [{{ tool.name }}]({{ tool.url }}) [draft {{ tool.draft | join: ", draft " }}] ({{ tool.license | join: ", " }}){% if tool.notes %}
- {{ tool.notes }} {% endif %}{% endfor %}


Validation benchmarks
---------------------
### Benchmarks

- Java
- [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)
Expand All @@ -87,6 +85,45 @@ Validation benchmarks
- PHP
- [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)

Hyper-Schema
---------------------

<nav class="intra" markdown="1">

{% assign hyper-schema-libraries = site.data.hyper-schema-libraries | sort:"name" %}

{% for language in hyper-schema-libraries %}
- [{{ language.name }}](#hyper-schema-{% if language.anchor-name %}{{ language.anchor-name }}{% else %}{{ language.name | downcase }}{% endif %})
{% endfor %}

</nav>

<!-- To add a hyper-schema library, add it in _data/hyper-schema-libraries.yml -->

<ul>
{% for language in hyper-schema-libraries %}
<li>
{{language.name}} <a id="hyper-schema-{% if language.anchor-name %}{{ language.anchor-name }}{% else %}{{ language.name | downcase }}{% endif %}"></a>
<ul>
{% for implementation in language.implementations %}
<li>
<a href="{{implementation.url}}">{{ implementation.name }}</a>

{% if implementation.draft %}
<em>supports draft {{ implementation.draft | join: ", draft " }}</em>
{% endif %}

{{implementation.notes | markdownify | remove: '<p>' | remove: '</p>'}}
({{ implementation.license | join: ", " }})

</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>


Schema generation
-----------------

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

Hyper-schema handling
---------------------

- JavaScript
- [Jsonary](http://jsonary.com/) - *supports draft 4* (MIT)
- Python
- [Core API Hyper-Schema codec](https://github.com/core-api/python-jsonhyperschema-codec) - *supports draft 4* (BSD-2-Clause)

Documentation generation
------------------------

Expand Down