Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/mod.ts>BaseIssue

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface BaseIssue
implements Config<BaseIssue<TInput>>
Re-export
import { type BaseIssue } from "https://deno.land/x/valibot@v0.35.0/mod.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.