schema icon indicating copy to clipboard operation
schema copied to clipboard

Upgrade schema to JSON Schema v2020-12

Open jugaadi opened this issue 3 years ago • 3 comments

Using this tool, the existing Draft 7 schema can be converted to v2020-12. The new version has also been adopted as the official version in OpenAPI v3.1.

However, the tooling is yet to catch up with the new version and therefore, I would suggest that we maintain a v2020-12 directory inside the Vega directory for specifying these schemas.

jugaadi avatar Oct 18 '22 03:10 jugaadi

We use https://github.com/vega/ts-json-schema-generator to generate the schema (at least for Vega-Lite) so I think it could make sense to update that when tooling (like vscode and Ajv)are updated.

domoritz avatar Oct 18 '22 04:10 domoritz

Both VSCode and AJV supports v2020-12.

jugaadi avatar Oct 18 '22 04:10 jugaadi

Then should we update the generator?

domoritz avatar Oct 18 '22 12:10 domoritz