Zod · Type Alias
ZodEnum
ZodEnum validates a fixed set of allowed values. You can also create one from the keys of an object schema with .keyof().
Last updated
Syntax
z.enum([value1, value2, ...])In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ZodZodEnumkeyof()object schemasparse()