Skip to main content

Module validate

Module validate 

Source
Expand description

Schema validation for parsed wiki frontmatter.

validate_page is the spine of stoa schema --check. It runs in two passes — first inspect the raw YAML mapping for missing required fields and invalid enum values (so error attribution stays structural, not text-matched), then attempt the typed Frontmatter parse for relationship-level checks.

Functions§

validate_page
Validate a page’s raw frontmatter YAML against schema.