Schema validation
EngineSchema
form0-core validates schemas before running the engine. Validation focuses on structure and attribute correctness, not UI concerns.
What is validated
- Required attributes per field type
- Allowed values for attributes (for example,
displayoptions) - Unique
keyanddata_name data_nameformat (lowercase a-z, 0-9, underscore, max length 42)- Default values match field type rules
- Condition operators are valid for the referenced field type
- AI metadata shape and allowed keys
Runtime validation
At runtime, fields also validate their values when the engine evaluates:
- Numeric min/max checks
- Pattern matches for text fields
- Choice values must match defined choices
Typical errors
- Missing required attributes
- Duplicate
keyordata_name - Invalid operators (for example,
containson a numeric field) - Default values that do not match the field type
Last modified on