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
[json] support JSON schema draft 7 #46322
Comments
I'd take a stab at implementing this. I just need to be pointed in the right direction. |
The schema validation happens here: |
Here's an example of a test: The easiest is to develop this using the tests.
|
Excellent, thanks :) Update: This is still on my to-do list. I just haven't gotten around to it yet. |
Seems like you guys are writing your own schema validation. Why not use a library like ajv (https://github.com/epoberezkin/ajv-errors) |
@shawnmclean We also use it to drive code completion |
This appears to have been started in: microsoft/vscode-json-languageservice#24. which was merged in 8229aed. I don't know what other features were added in draft-07, so more changes are probably needed. |
Does it mean that IF/THEN/ELSE part of Draft-07 is supported now? |
added for august |
Issue Type: Feature Request
Hi,
I'm watching JSON schema specification progress for a few months as it is adding a great feature:
"if", "then", "else"
support.I have noticed Draft-07 of JSON schema specification was released a few days ago: http://json-schema.org/draft-07/json-schema-release-notes.html
I hope that Draft-07 will be supported in VS Code in future :-)
Regards,
Martin
VS Code version: Code 1.21.1 (79b44aa, 2018-03-14T14:46:30.761Z)
OS version: Linux x64 4.13.0-37-generic
The text was updated successfully, but these errors were encountered: