Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
VS Code supports code completion for JSON files based on JSON Schema.
Code completion in VS Code picks up a schema for any JSON file if the schema is
specified as
"$schema": "<URL to schema>"
.It automatically picks up certain JSON Schemas by file name (ie:
package.json
) and you can configure your own associations via (workspace)settings.json
like this:Alternatively VS Code supports the
$schema
key in JSON files itself.So in a
resume.json
we could add the JSON Resume schema to get code completion without touching the VS Code settings:So please JSON Schema authors allow the specification of the schema in your JSON Schema like this:
XML had a similar feature where you could specify an XSD in the XML pre-processing tags to validate the syntax and data (to some extent) of the XML.