Zod · Method
.min
Zod lets you define schemas for data and validate input against them. Its chainable APIs cover primitive values, nested structures, coercion, constraints, and transformations.
Last updated
Syntax
const schema = z.number().int().positive();
schema.parse(data);
schema.safeParse(data);In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
z.objectz.stringz.numberz.coercez.enumz.datez.booleansafeParse