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

Support JSON schema validation #140

Open
dbarnett opened this issue Apr 1, 2024 · 1 comment
Open

Support JSON schema validation #140

dbarnett opened this issue Apr 1, 2024 · 1 comment

Comments

@dbarnett
Copy link

dbarnett commented Apr 1, 2024

Would it ever be possible for jsonnet-language-server to detect JSON schemas and use them to empower completion and warnings?

For instance, at the simplest extreme that could mean that if you have a simple jsonnet file with a "$schema" field, code completion could suggest other valid names for top-level JSON field names from the schema for you, and warn if you use a name that's not defined in the schema.

@nogweii
Copy link

nogweii commented Jun 26, 2024

It would also be nice to support a configuration command to be able to have the editor manually specify the schema in case there isn't a $schema field already.

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