Skip to content

Commit 75ec414

Browse files
committed
Sort languages and drafts automatically
Several languages and date drafts were out of order. Fix it in code instead of trying to keep the data file consistent.
1 parent 728086e commit 75ec414

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

_data/validator-libraries-modern.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,14 @@
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)