CRUDUI

Home > @polyspec/crudui-validator > ValidationResult

ValidationResult interface

The result of validating form data: whether it is valid, its errors and the data paths that design.show hides.

Signature:

export interface ValidationResult 

Properties

Property

Modifiers

Type

Description

errors

ValidationError[]

List of all validation errors found; empty when valid is true.

hidden

string[]

Data paths of the fields whose design.show resolves to false, in declaration order (validation-rules.md, "Evaluation"); a path names the field and everything it contains.

valid

boolean

True when every field passed validation; false if any error was collected.