Interface: FieldValidationResult
Defined in: src/types/validation.ts:34
Validation result for a single field.
Remarks
Contains validation status and errors for one field in an object or form. Multiple field validation results are combined into a ValidationResult.
Example
const fieldResult: FieldValidationResult = {
field: 'email',
valid: false,
errors: ['Email is required', 'Email must be a valid email address']
};
Properties
errors?
readonlyoptionalerrors: readonlystring[]
Defined in: src/types/validation.ts:57
Error messages for validation failures.
Remarks
Only present when valid is false. Each error message should be
human-readable and suitable for display to users.
Empty array or undefined when field is valid.
field
readonlyfield:string
Defined in: src/types/validation.ts:41
Name of the field that was validated.
Remarks
Use dot notation for nested fields (e.g., 'author.name').
valid
readonlyvalid:boolean
Defined in: src/types/validation.ts:46
Whether the field passed validation.