Skip to content

Validation Array / Better DX #651

Closed Answered by crutchcorn
fourgates asked this question in Ideas
Discussion options

You must be logged in to vote

Zod is actually able to chain errors together! 😄

z.string().min(3, 'First name must be at least 3 characters').max(100, 'First name must less than 100 characters')

This should work!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by crutchcorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants