Skip to main content

document_rules

Function document_rules 

Source
pub fn document_rules(
    config: &WorkspaceConfig,
    vocabularies: &BTreeMap<String, Vocabulary>,
) -> Vec<FieldRule> 
Expand description

schema_from_config’s rules, before they become a schema — the composition point for an application overlay, and the peer of config_rules one document over.

A Schema resolves a path by first match wins, so an app that governs its own frontmatter keys prepends its rules to these. See crate::rules for why the order is that way round.