There are language servers that use schemas from SchemaStore.
redhat-developer/yaml-language-server
- Used by the VSCode Red Hat YAML extension
tamasfe/taplo
- Used by the VSCode Even Better TOML extension
- Reads the
x-taplo
field to enhance the editing experience.
allowTrailingCommas
defaultSnippets
markdownDescription
Visual Studio Code allows specifying whether trailing commas are allowed in the schema itself. Use the allowTrailingCommas
field. See this PR if you wish to add this for your schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"allowTrailingCommas": true,
...
}
x-taplo
x-taplo-info
More information here.
x-intellij-language-injection
x-intellij-html-description
x-intellij-enum-metadata
x-for
Consider the following schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"first": {
"title": "first",
"type": "object"
}
},
"title": "schema title"
}
If integer or another incorrect value is passed to first
, then Incorrect type. Expected "first".
error is shown. If title
for this property is removed, then Incorrect type. Expected "schema title".
is displayed. The most nested title
is used for the error message.