Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Zod - how to define schema for number that can be one of few values - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
1 reply
Mugetsu
Zod - how to define schema for number that can be one of few values
How can I define a schema that would accept a number which would be one of these values 10
,25
,50
,100
Theo's Typesafe Cult
Join
26,131
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
env schema.mjs reading values as number
TTC
Theo's Typesafe Cult / questions
4y ago
I have spaces that can have many members and one author how do i define my schema
TTC
Theo's Typesafe Cult / questions
3y ago
Zod one or more values from an array
TTC
Theo's Typesafe Cult / questions
4y ago
Zod - sort schema
TTC
Theo's Typesafe Cult / questions
4y ago