zod unions and refines #4040
-
I have a large form that also need some cross field validation. I use a zod schema in the way that I have a zod object for the form and that zod object has properties with primitives and so on. But there are also fields that are also other schemas or another zod object or I have other schemas that are concatenated with .and() in the way that I can refine those seperately like valdid from date and valid to date and they have some rules. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Or is there maybe a way to have a link from the form fields to the validation rules in the dev tools? |
Beta Was this translation helpful? Give feedback.
Or is there maybe a way to have a link from the form fields to the validation rules in the dev tools?