Skip to content

Using Schemas

JSON schemas can be assigned to TOML documents according to the following in priority order starting with the highest priority:

  1. set manually in the environment, e.g. as a CLI flag or an IDE setting
  2. schema directives at the top of the document
  3. as an URL under the $schema key in the root of the document
  4. configuration file rule
  5. default schema set in the configuration file
  6. contributed by an extension (Visual Studio Code only)
  7. an association based on a schema catalog