Expand description
Schema loader — reads on-disk schema directories (or in-memory YAML) into
validated Schema values with edge_weights resolved.
Three validation layers coordinate here:
- Structural (serde +
deny_unknown_fields) — handled by the deserialize. - Semantic (this module) — cross-field rules listed in
SchemaLoadError. - Editor (JSON Schemas) — generated by
emit_json_schemas, consumed by schema authors via# yaml-language-server: $schema=....
Enums§
Functions§
- load_
schema_ from_ dir - Load a schema from a directory containing
schema.yamlandtypes/*.yaml. - load_
schema_ from_ memory - Load a schema from in-memory YAML strings.
- reserved_
metadata_ field_ keys - Engine-invariant metadata-field keys reserved against schema use.
typeis the engine-set frontmatter discriminator. - reserved_
section_ keys - Engine-invariant section keys reserved against schema use. The
parser’s auto-managed
## Relationshipssection is the only entry today. - validate_
schema_ name - Author-time access to the schema-name shape rule — the same check
the loader runs on a manifest’s
name:. Exposed so scaffolding tooling (memstead schema new) can refuse a bad name up front with the loader’s own reason string instead of a drifting copy of the grammar.