Skip to content
masterclass Buddy

Zod · Method

.or

.or() combines two Zod schemas. The result accepts data that matches either schema.

Last updated

Syntax

schema.or(otherSchema)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • parse
  • safeParse
  • parseAsync
  • safeParseAsync
  • ZodType
  • transform
  • pipe

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