CRUDUI

Home > @polyspec/crudui-validator > ValidationError

ValidationError interface

Single validation error

Signature:

export interface ValidationError 

Properties

Property

Modifiers

Type

Description

field

string

Name of the failing field (last segment of path).

message

string

Human-readable error message for display.

path

string

Full dotted path to the field that failed (e.g., items.0.name).

rule

string

Name of the rule that produced this error (e.g., required, email).

value?

unknown

(Optional) The field value that failed validation, if available.