Zod overrides react-hook-form validation
I have the following form scheme. When I specify rules={{required: true}} on the field it doesn't work because of zod validation scheme.
I want to be able to override Zod or being able to make field required based on api response (later on).
I want to be able to override Zod or being able to make field required based on api response (later on).
Solution
And as you mentioned you can make it required based on api response, you can use a discriminated union to make things required depending on some data from the api https://zod.dev/?id=discriminated-unions
