Expand description
Semantic validation of the raw AST into the resolved Schema IR.
The validator walks the ferriorm_core::ast::SchemaFile produced by the
parser and performs the following:
- Resolves field type names to scalars, enums, or model references.
- Infers database table and column names from
@@map/@mapor snake_case conventions. - Checks that every model has a primary key (
@idor@@id). - Detects duplicate model/enum names and unknown type references.
- Resolves relation cardinality and referential actions.
The output is an ferriorm_core::schema::Schema, the canonical IR consumed
by codegen and the migration engine.
Functionsยง
- validate
- Validate a parsed AST and produce a resolved Schema IR.