Skip to content

Minima.js API


Minima.js API / @minimajs/schema / / ValidatorErrorOptions

Interface: ValidatorErrorOptions ​

Options for creating a validation error. Extends HTTP error options with validation-specific properties.

Extends ​

Properties ​

base? ​

ts
optional base?: unknown;

The base error


cause? ​

ts
optional cause?: unknown;

Inherited from ​

ts
Omit.cause

code? ​

ts
optional code?: string;

Inherited from ​

ts
Omit.code

headers? ​

ts
optional headers?: HeadersInit;

Inherited from ​

ts
Omit.headers

issues? ​

ts
optional issues?: $ZodIssue[];

Array of zod issues


message? ​

ts
optional message?: string;

Inherited from ​

ts
Omit.message

name? ​

ts
optional name?: string;

Inherited from ​

ts
Omit.name