Appearance
Using Schemas
JSON schemas can be assigned to TOML documents according to the following in priority order starting with the highest priority:
- set manually in the environment, e.g. as a CLI flag or an IDE setting
- schema directives at the top of the document
- as an URL under the
$schema
key in the root of the document - configuration file rule
- default schema set in the configuration file
- contributed by an extension (Visual Studio Code only)
- an association based on a schema catalog