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

Commit bf7b5d9

Browse files
authored
Merge pull request #470 from handrews/ordering
Sort languages and drafts automatically
2 parents 6616439 + 822ad48 commit bf7b5d9

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

_data/validator-libraries-modern.yml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -134,23 +134,6 @@
134134
date-draft:
135135
draft: [7, 6, 4]
136136
license: Apache License 2.0
137-
- name: Kotlin
138-
implementations:
139-
- name: Medeia-validator
140-
url: https://github.com/worldturner/medeia-validator
141-
notes: streaming validator for Kotlin and Java clients; works with Jackson and Gson
142-
date-draft:
143-
draft: [7, 6, 4]
144-
license: Apache License 2.0
145-
- name: json-kotlin-schema
146-
url: https://github.com/pwall567/json-kotlin-schema
147-
notes: |
148-
Kotlin implementation of JSON Schema.
149-
(Currently supports most of Draft 7; see the README for details.
150-
Full compliance with Draft 7 and later drafts in progress.)
151-
date-draft:
152-
draft: [7]
153-
license: MIT
154137
- name: JavaScript
155138
implementations:
156139
- name: Hyperjump JSV
@@ -188,17 +171,36 @@
188171
date-draft:
189172
draft: [6]
190173
license: MIT
174+
- name: Kotlin
175+
implementations:
176+
- name: Medeia-validator
177+
url: https://github.com/worldturner/medeia-validator
178+
notes: streaming validator for Kotlin and Java clients; works with Jackson and Gson
179+
date-draft:
180+
draft: [7, 6, 4]
181+
license: Apache License 2.0
182+
- name: json-kotlin-schema
183+
url: https://github.com/pwall567/json-kotlin-schema
184+
notes: |
185+
Kotlin implementation of JSON Schema.
186+
(Currently supports most of Draft 7; see the README for details.
187+
Full compliance with Draft 7 and later drafts in progress.)
188+
date-draft:
189+
draft: [7]
190+
license: MIT
191191
- name: Perl
192192
implementations:
193193
- name: JSON::Schema::Modern
194194
url: https://github.com/karenetheridge/JSON-Schema-Modern
195195
notes:
196-
date-draft: [7, 2019-09, 2020-12]
196+
date-draft: [2019-09, 2020-12]
197+
draft: [7]
197198
license: "GNU General Public License, Version 1 + The Artistic License 1.0"
198199
- name: JSON::Schema::Tiny
199200
url: https://github.com/karenetheridge/JSON-Schema-Tiny
200201
notes:
201-
date-draft: [7, 2019-09, 2020-12]
202+
date-draft: [2019-09, 2020-12]
203+
draft: [7]
202204
license: "GNU General Public License, Version 1 + The Artistic License 1.0"
203205
- name: JSON::Validator
204206
url: https://github.com/mojolicious/json-validator
@@ -336,8 +338,8 @@
336338
- name: valbuddy
337339
license: Free and commercial versions (proprietary)
338340
url: 'https://www.json-buddy.com/json-validator-command-line-tool.htm'
339-
date-draft:
340-
draft: [2019-09, 7, 6, 4]
341+
date-draft: [2019-09]
342+
draft: [7, 6, 4]
341343
notes: JSONBuddy cli tool. Windows platform. Support for large data and streaming validation.
342344
- name: ajv-cli
343345
license: MIT

implementations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Validators
2626

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

29-
{% assign validator-libraries = site.data.validator-libraries-modern %}
29+
{% assign validator-libraries = site.data.validator-libraries-modern | sort: 'name' %}
3030

3131
{% for language in validator-libraries %}
3232
- [{{ language.name }}](#validator-{% if language.anchor-name %}{{ language.anchor-name }}{% else %}{{ language.name | downcase }}{% endif %})
@@ -50,10 +50,10 @@ Validators
5050

5151
<em>
5252
{% if implementation.date-draft %}
53-
{{ implementation.date-draft | join: ", "}}{% if implementation.draft %}, {% endif %}
53+
{{ implementation.date-draft | sort | reverse | join: ", "}}{% if implementation.draft %}, {% endif %}
5454
{% endif %}
5555
{% if implementation.draft %}
56-
draft-0{{ implementation.draft | join: ", -0" }}
56+
draft-0{{ implementation.draft | sort | reverse | join: ", -0" }}
5757
{% endif %}
5858
</em>
5959

0 commit comments

Comments
 (0)