Skip to content

Zod validator calls refine and ignoring other validators #3060

Answered by JacobWeisenburger
hexwit asked this question in Q&A
Discussion options

You must be logged in to vote

Zod tries to run all of the validation "chain", so that you would get as many of the errors as possible. Therefore, it will run a refine even if the prior checks failed.

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
8 replies
@jedwards1211
Comment options

@colinhacks
Comment options

@jedwards1211
Comment options

@jedwards1211
Comment options

@jedwards1211
Comment options

Answer selected by JacobWeisenburger
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JacobWeisenburger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #3055 on December 15, 2023 21:14.