Alokai

ValidationIssue

Represents a validation issue from a Standard Schema compliant validator. Includes the standard message and path fields, plus allows vendor-specific extensions (e.g., zod's code, expected, received, etc.).

interface ValidationIssue {
	readonly message: string;
	readonly path?: readonly string[];
}

Properties

NameRequiredTypeDescription
messageRequiredstringThe validation error message.
pathOptionalreadonly string[]The path to the invalid value, normalized to strings. For nested objects, this will be like ["user", "address", "0", "street"].

On this page