API reference > @kontsedal/olas-core > FormIssue
FormIssue type
A single validation issue, optionally targeting a descendant of a form tree.
- An **empty**
pathmeans the node the validator is attached to itself — for a leafFieldthat's the field; for aForm/FieldArrayit's the node'stopLevelErrors. - A **non-empty**pathroutes themessageto the matching descendant (Formwalks keys,FieldArraywalks numeric indices). Unresolvable paths fall back to the owning node'stopLevelErrorsrather than vanishing.
Segments are object keys (string) or array indices (number). Returned by form-level validators (cross-field rules) and by the Standard-Schemavalidator(...) adapter, which maps each issue.path here. See SPEC §8.3.
Signature:
typescript
type FormIssue = {
path: (string | number)[];
message: string;
};