Schema validation lets you enforce structure on pages by type. When enabled, every write validates the page’s frontmatter against a JSON Schema before committing. This prevents agents and users from creating malformed pages.Documentation Index
Fetch the complete documentation index at: https://docs.kiwifs.com/llms.txt
Use this file to discover all available pages before exploring further.
How it works
- A page is written with a
typefield in its frontmatter. - KiwiFS looks up
.kiwi/schemas/{type}.json. - If the schema exists and enforcement is on, the frontmatter is validated.
- Invalid pages are rejected before they reach git.
Enabling enforcement
enforce = false (default), schemas are stored but not checked on writes.
Creating schemas
Schemas live in.kiwi/schemas/ as standard JSON Schema files. The filename (minus .json) matches the frontmatter type field.
type: runbook in its frontmatter must have title, status, and owner:
Listing schemas
Reading a schema
Validation errors
When a write fails validation, you get a400 response with details: