Schema basics
Define the data shapes used by templates.
Schema basics
Templates rely on schemas to declare the data they expect. Schemas are simple JSON-like structures with types and validation.
Field types
- string, number, boolean
- object (nested fields)
- array (list of objects or primitives)
- image, richtext
Validation
- Define required fields and basic constraints (min/max length, regex).
Tip for editors
Keep schemas minimal and prefer nested objects for repeated groups.