Expand description
Error model: accumulated, path-addressed issues. Accumulated, path-addressed validation errors.
FormaError carries every violated constraint from one parse call as an
ordered vector of FormaIssues; each issue is addressed by a
FieldPath, tagged with a stable IssueCode, and parameterized for
deterministic display.
Structs§
- Field
Path - Address of the field a
FormaIssuerefers to. - Forma
Error - Every constraint violated during one parse call, in declaration order (ER-1).
- Forma
Issue - One violated constraint: where (
FieldPath), what (IssueCode), human-readable message, and structured parameters.
Enums§
- Issue
Code - Stable, enumerable identifiers for every builtin constraint (ER-3), plus
IssueCode::Customfor consumer-defined ones. - Param
Value - Scalar parameter values carried by issues — dependency-free and ordered.
- Segment
- One step in a
FieldPath: either an object key or an array index.
Type Aliases§
- Issue
Params - Ordered
(key, value)pairs attached to an issue for deterministic display. - Param
Key - Key of one entry in
IssueParams.