Skip to main content

Module validation

Module validation 

Source
Expand description

Validation at write time: types, nesting, and field constraints (0.6+).

See docs/07_record_encoding_v2.md and ROADMAP.md.

Functions§

allows_absent_root
Whether a missing map key is treated as absent (Optional only).
ensure_pk_type_primitive
Primary key types must be flat primitives (not optional/composite).
validate_multiseg_row
Validate a row against a multi-segment schema (types, constraints, and unknown paths).
validate_top_level_row
Validate top-level insert row: unknown fields, missing fields, types, constraints. row must contain every top-level field (including the primary key).
validate_value
Validate a row value against ty and apply constraints.