z.enum is a Zod-native way to declare a schema with a fixed set of allowable string values. Pass the array of values directly into z.enum() . Alternatively, use ...
確定! 回上一頁