draft-04 is no longer the most broadly implemented draft

Open
#2,427 11 comments 5 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
json
Domain
documentation

Research direction

Review the contributing guidelines and README, and verify the implementation counts in _data/validator-libraries-modern.yml alongside the editor support listed in the issue. Resolve whether the project should recommend draft-07, then update the agreed guidance; the work is done when the policy is decided and the documentation reflects it.

Written by the indexing model from the issue text.

Description

Build Server
Description of the feature / enhancement.

The contributing guidelines say:

Use the lowest possible schema draft needed, preferably Draft v4, to ensure interoperability with as many supported editors, IDEs and parsers as possible.

However, among actively maintained implementations (which is what the "modern" part of the filename below means), draft-04 comes in 3rd place (grepping the source for json-schema.org's implementations page):

bash % grep 'draft.*3' _data/validator-libraries-modern.yml | wc -l     7 
bash % grep 'draft.*4' _data/validator-libraries-modern.yml | wc -l    35
bash % grep 'draft.*6' _data/validator-libraries-modern.yml | wc -l    38
bash % grep 'draft.*7' _data/validator-libraries-modern.yml | wc -l    48
bash % grep 'draft.*19' _data/validator-libraries-modern.yml | wc -l   21
bash % grep 'draft.*20' _data/validator-libraries-modern.yml | wc -l   21

As for IDEs, that part of the implementations page is done in markdown so not as easy to grep, but after checking the various relevant projects to make sure things are up-to-date, we have:

Altova XMLSpy 2019r3 - 6, 7 appears to now support 2019-09 and 2020-12
Dashjoin JSON Schema editor - (not fully compliant with any draft, partial draft-06)
Hackolade Studio - 4, 6, 7, 2019-09, 2020-12
JSONBuddy - 4, 6, 7, 2019-09
JSONEditor Online - 4, 6, 7
Liquid JSON Schema Editor - 4, 6, 7, 2019-09
Oxygen JSON Editor - 4, 6, 7
Stoplight Studio - 4, 6, 7 now supports OAS 3.1 so presumably JSON Schema 2020-12
Visual Studio Code - 4, 6, 7, 2019-09, 2020-12
WebStorm, IntelliJ IDEA, and other JetBrains IDEs - 4, 6, 7, 2020-12 support is being tracked
Eclipse IDE - (seems to support JSON Schema through various plugins, and I can't figure out what is th emost common setup)

Discarding the editor that doesn't completely support anything, every implementation supports draft-07. Most but not all support draft-04. A few support 2020-12 or are working on it, but not as many as support draft-04.

So, across both categories, the most broadly implemented draft is now draft-07. A draft-07 schema will be usable with 37% more validators than draft-04, and with all of the listed editors that have clear support statements.

At what point can the contribution guidelines be updates to reflect this?

[NOTE: I couldn't figure out what to say about the PR question. I would be happy to make a PR for the README, as that would be trivial, but this is really a policy question for folks to decide, so of course I'm not going to submit a PR for an undecided point that might be rejected.]

Are you making a PR for this?

Yes, I will create a PR.

Dominant language
JavaScript
Stars
3.9k
Forks
2.4k
Avg merge
12h 34m
Merged PRs (30d)
134

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SchemaStore/schemastore

All issues in SchemaStore/schemastore

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.