Skip to content
masterclass Buddy

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.

Subscribe
  • z.object
  • z.string
  • z.number
  • z.coerce
  • z.enum
  • z.date
  • z.boolean
  • safeParse

Source: Defining schemas | Zod. Checked 2026-11-03.