Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade schema to JSON Schema v2020-12 #7

Open
jugaadi opened this issue Oct 18, 2022 · 3 comments
Open

Upgrade schema to JSON Schema v2020-12 #7

jugaadi opened this issue Oct 18, 2022 · 3 comments

Comments

@jugaadi
Copy link

jugaadi commented Oct 18, 2022

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 jugaadi changed the title Upgrade schema to JSON Schema 2020-12 Upgrade schema to JSON Schema v2020-12 Oct 18, 2022
@domoritz
Copy link
Member

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.

@jugaadi
Copy link
Author

jugaadi commented Oct 18, 2022

Both VSCode and AJV supports v2020-12.

@domoritz
Copy link
Member

Then should we update the generator?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants