From 58dfe085e44e930b1bcac6ab488d7976ca78c083 Mon Sep 17 00:00:00 2001 From: Henry Andrews Date: Mon, 14 May 2018 12:18:40 -0700 Subject: [PATCH] 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. Also compress the draft support wording/formatting as it was taking up a lot of space. All notes should be unformatted (not italicized) Don't show empty () if there's no license given. One web tool was not even a validator so move it to the right section. A Go tool from another section is also a validator, so add it. --- _data/validator-cli.yaml | 14 ------------- _data/validator-libraries-modern.yml | 26 +++++++++++++++++++++++- implementations.md | 30 ++++++++-------------------- 3 files changed, 33 insertions(+), 37 deletions(-) delete mode 100644 _data/validator-cli.yaml diff --git a/_data/validator-cli.yaml b/_data/validator-cli.yaml deleted file mode 100644 index 887d5b1c..00000000 --- a/_data/validator-cli.yaml +++ /dev/null @@ -1,14 +0,0 @@ -- name: ajv-cli - license: MIT - url: 'https://www.npmjs.com/package/ajv-cli' - draft: - - 7 - - 6 - - 4 -- name: Polyglottal JSON Schema Validator - license: MIT - url: 'https://www.npmjs.com/package/pajv' - draft: - - 6 - - 4 - notes: can be used with YAML and many other formats besides JSON diff --git a/_data/validator-libraries-modern.yml b/_data/validator-libraries-modern.yml index 1ca88375..ec1a67e7 100644 --- a/_data/validator-libraries-modern.yml +++ b/_data/validator-libraries-modern.yml @@ -27,6 +27,11 @@ notes: draft: [7, 6, 4] license: BSD-3-Clause + - name: qri-io/jsonschema + url: https://github.com/qri-io/jsonschema + draft: [7] + license: MIT + notes: includes custom validator support, rich error returns - name: Java implementations: - name: everit-org/json-schema @@ -38,7 +43,7 @@ implementations: - name: ajv url: https://github.com/epoberezkin/ajv - notes: "for Node.js and browsers - *supports [custom keywords](https://github.com/epoberezkin/ajv-keywords) and [$data reference](https://github.com/json-schema-org/json-schema-spec/issues/51)*" + notes: "for Node.js and browsers - supports [custom keywords](https://github.com/epoberezkin/ajv-keywords) and [$data reference](https://github.com/json-schema-org/json-schema-spec/issues/51)" draft: [7, 6, 4] license: MIT - name: djv @@ -76,3 +81,22 @@ notes: draft: [7, 6, 4] license: MIT +- name: Web (Online) + implementations: + - name: JSON Schema Validator + url: https://www.jsonschemavalidator.net/ + draft: [7, 6, 4, 3] + - name: JSON Schema Lint + url: http://jsonschemalint.com/ + draft: [6, 4, 3, 2, 1] +- name: Command Line + implementations: + - name: ajv-cli + license: MIT + url: 'https://www.npmjs.com/package/ajv-cli' + draft: [7, 6, 4] + - name: Polyglottal JSON Schema Validator + license: MIT + url: 'https://www.npmjs.com/package/pajv' + draft: [6, 4] + notes: can be used with YAML and many other formats besides JSON diff --git a/implementations.md b/implementations.md index 46961f3f..58a1257c 100644 --- a/implementations.md +++ b/implementations.md @@ -22,11 +22,9 @@ If you have updates to this list, make a pull request on the [GitHub repo](https Validators ---------- -### Libraries - - + - - -### Online - -- [JSON Schema Validator](https://www.jsonschemavalidator.net/) - validate against your own schemas -- [JSON Schema Lint](http://jsonschemalint.com/) - validate against your own schemas -- [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 - -### Command Line - - - -{% for tool in site.data.validator-cli %} -- [{{ tool.name }}]({{ tool.url }}) [draft-0{{ tool.draft | join: ", draft-0" }}] ({{ tool.license | join: ", " }}){% if tool.notes %} - - {{ tool.notes }} {% endif %}{% endfor %} - ### Benchmarks Benchmarks that compare at least two implementations supporting draft-06+ may be listed here. @@ -142,6 +127,7 @@ Generators that produce schemas that are compatible with draft-06+ (e.g. no bool - [typescript-json-schema](https://github.com/YousefED/typescript-json-schema) - Online (web tool) - [jsonschema.net](http://www.jsonschema.net) - generates schemas from example data + - [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 Data parsing and code generation --------------------------------