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

Commit a8c4add

Browse files
committed
Merge CLI/web validators into main section
Having these separate took up a lot of space and also made things appear in inconsistent ways. Just treat them as "languages" (which we do in other sections anyway), and remove the sorting by language name so we can keep them at the end. One web tool was not even a validator so move it to the right section.
1 parent f863540 commit a8c4add

File tree

3 files changed

+20
-34
lines changed

3 files changed

+20
-34
lines changed

_data/validator-cli.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

_data/validator-libraries-modern.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,20 @@
7676
notes:
7777
draft: [7, 6, 4]
7878
license: MIT
79+
- name: Web (Online)
80+
implementations:
81+
- name: JSON Schema Validator
82+
url: https://www.jsonschemavalidator.net/
83+
- name: JSON Schema Lint
84+
url: http://jsonschemalint.com/
85+
- name: Command Line
86+
implementations:
87+
- name: ajv-cli
88+
license: MIT
89+
url: 'https://www.npmjs.com/package/ajv-cli'
90+
draft: [7, 6, 4]
91+
- name: Polyglottal JSON Schema Validator
92+
license: MIT
93+
url: 'https://www.npmjs.com/package/pajv'
94+
draft: [6, 4]
95+
notes: can be used with YAML and many other formats besides JSON

implementations.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,17 @@ If you have updates to this list, make a pull request on the [GitHub repo](https
2222
Validators
2323
----------
2424

25-
### Libraries
26-
2725
<nav class="intra" markdown="1">
2826

29-
{% assign validator-libraries = site.data.validator-libraries-modern | sort:"name" %}
27+
{% assign validator-libraries = site.data.validator-libraries-modern %}
3028

3129
{% for language in validator-libraries %}
3230
- [{{ language.name }}](#validator-{% if language.anchor-name %}{{ language.anchor-name }}{% else %}{{ language.name | downcase }}{% endif %})
3331
{% endfor %}
3432

3533
</nav>
3634

37-
<!-- To add a validator library, add it in _data/validator-libraries-modern.yml -->
35+
<!-- To add a validator, add it in _data/validator-libraries-modern.yml -->
3836

3937
<ul>
4038
{% for language in validator-libraries %}
@@ -59,22 +57,6 @@ Validators
5957
{% endfor %}
6058
</ul>
6159

62-
63-
64-
### Online
65-
66-
- [JSON Schema Validator](https://www.jsonschemavalidator.net/) - validate against your own schemas
67-
- [JSON Schema Lint](http://jsonschemalint.com/) - validate against your own schemas
68-
- [quicktype.io](https://app.quicktype.io/#l=schema) - infer JSON Schema from samples, and generate TypeScript, C++, go, Java, C#, Swift, etc. types from JSON Schema
69-
70-
### Command Line
71-
72-
<!-- To add a validator library, add it in _data/validator-libraries-modern.yml -->
73-
74-
{% for tool in site.data.validator-cli %}
75-
- [{{ tool.name }}]({{ tool.url }}) <em>[draft-0{{ tool.draft | join: ", draft-0" }}]</em> ({{ tool.license | join: ", " }}){% if tool.notes %}
76-
- {{ tool.notes }} {% endif %}{% endfor %}
77-
7860
### Benchmarks
7961

8062
Benchmarks that compare at least two implementations supporting draft-06+ may be listed here.
@@ -142,6 +124,7 @@ Generators that produce schemas that are compatible with draft-06+ (e.g. no bool
142124
- [typescript-json-schema](https://github.com/YousefED/typescript-json-schema)
143125
- Online (web tool)
144126
- [jsonschema.net](http://www.jsonschema.net) - generates schemas from example data
127+
- [quicktype.io](https://app.quicktype.io/#l=schema) - infer JSON Schema from samples, and generate TypeScript, C++, go, Java, C#, Swift, etc. types from JSON Schema
145128

146129
Data parsing and code generation
147130
--------------------------------

0 commit comments

Comments
 (0)