Interface: ValidationResult
Defined in: src/types/validation.ts:80
Validation result for an entire object.
Remarks
Aggregates validation results for all fields in an object. The object is valid only if all fields are valid.
Example
const result: ValidationResult = {
valid: false,
errors: [
{ field: 'title', valid: false, errors: ['Title is required'] },
{ field: 'abstract', valid: true }
]
};
Properties
errors
readonlyerrors: readonlyFieldValidationResult[]
Defined in: src/types/validation.ts:96
Per-field validation results.
Remarks
Contains results for all validated fields, including those that passed.
Filter by valid: false to get only failed validations.
valid
readonlyvalid:boolean
Defined in: src/types/validation.ts:87
Whether all fields passed validation.
Remarks
True only if all fields in errors array have valid: true.