Hwaro::Content::FrontMatterSchema
Constants
Instance methods
Check one regular page. source is the page's whole source text
(front matter + body); extra the page's extra (with or without
cascaded keys — cascade, the merged ancestor cascade, fills in
whatever it lacks). A field name without the extra. prefix names a
known front-matter field, or else the extra key the parser stores
an unknown top-level key under. taxonomies are the configured
taxonomy names, which strict accepts as top-level keys.
Lookups test presence (fetch), never truthiness: an explicit
false is a value, so it meets required and keeps its default out.
Top-level front-matter keys the config declares beyond the built-in
ones: taxonomy names and bare [[content.schema]] field names. The
parser's typo warning skips them.
Fail the build (HWARO_E_CONTENT) with every violation, sorted by file.
The first schema (config order) whose sections match, like
[permalinks]; nil when the page is not validated.