open-contracting / standard

Documentation of the Open Contracting Data Standard (OCDS)
http://standard.open-contracting.org/
Other
138 stars 46 forks source link

Review of more recent versions of JSON Schema #1097

Open jpmckinney opened 3 years ago

jpmckinney commented 3 years ago

Discussion

The Draft-04 we're using matches draft-zyp-json-schema-04 / draft-fge-json-schema-validation-00.

http://json-schema.org/draft-06/json-schema-release-notes.html matches draft-wright-json-schema-00, draft-wright-json-schema-01 / draft-wright-json-schema-validation-00, draft-wright-json-schema-validation-01

http://json-schema.org/draft-07/json-schema-release-notes.html matches draft-handrews-json-schema-00, draft-handrews-json-schema-01 / draft-handrews-json-schema-validation-00, draft-handrews-json-schema-validation-01

http://json-schema.org/draft/2019-09/release-notes.html matches draft-handrews-json-schema-02

Changelogs

Proposal

No action. This issue just serves to document relevant changes to JSON Schema. Any further work should consider the effort to update OCDS validators, especially with respect to maintaining clarity in error messages.

jpmckinney commented 3 years ago

To upgrade between draft versions, see https://github.com/ajv-validator/json-schema-migrate

Edit: BODS experience of upgrading: https://github.com/openownership/data-standard/issues/469 https://github.com/openownership/data-standard/pull/485