Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/index.ts>BaseIssue

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface BaseIssue
implements Config<BaseIssue<TInput>>
Re-export
import { type BaseIssue } from "https://deno.land/x/valibot@v0.35.0/src/index.ts";

Schema issue type.

Properties

readonly
kind: "schema" | "validation" | "transformation"

The issue kind.

readonly
type: string

The issue type.

readonly
input: TInput

The raw input data.

readonly
expected: string | null

The expected property.

readonly
received: string

The received property.

readonly
message: string

The error message.

readonly
optional
requirement: unknown

The input requirement.

readonly
optional
path: [IssuePathItem, ...IssuePathItem[]]

The issue path.

TODO: Investigate if it is possible to make the path type safe based on the input.

readonly
optional
issues: [BaseIssue<TInput>, ...BaseIssue<TInput>[]]

The sub issues.