Skip to content

Override

A source of schemas that outranks another in schema resolution, such as a config overrides entry for the files matching its glob.

It lets one repository hold each folder to its own schemas, instead of forcing one rule on every page.

In manni meta, “override” has two related senses:

  • A config overrides entry assigns a schema set to files matching a glob, so different folders can use different schemas. See Apply different schemas to different folders.
  • More broadly, schema resolution is a chain of overrides. A --schema flag overrides a document’s $schema. That overrides config overrides, which override config schemas. The first source that yields a schema wins. Config schemas join the built-in default set rather than override it, and so does an override that sets defaults: true. See Precedence.