interface ValidationIssue
Since 0.1.0

A single validation failure.

Properties

readonly
path: string

Dot-path of the offending field (e.g. "address.zip").

readonly
message: string

Human-readable description of the failure.

readonly
optional
code: string

Machine-readable failure code, when the validator provides one.

Usage

import { type ValidationIssue } from "common/src/index.ts";