Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

put a warning in the docs about using zod refine() with vee-validate #4338

Closed
cinderisles opened this issue Jun 29, 2023 · 2 comments
Closed
Labels
📚 docs documentation related

Comments

@cinderisles
Copy link

I started using zod after finding out about it from the vee-validate docs, but now I regret it, because I didn't know that zod's refine() would be pretty much incompatible with a form validation library like this

It works great with vee-validate for simple schemas, but it's completely useless for anything complex

There is good discussion already in these issues, so I don't feel the need to repeat everything.

I understand that this isn't an issue with vee-validate

What do you think of adding a warning to the docs in certain places where zod is mentioned, explaining that refine() wont work as expected? I can probably make a PR for it if you're too busy, but just wanted to get feedback first


since the zod devs have been quiet about this issue, I am currently having to migrate my schemas used with vee-validate to yup, in hopes that the custom validators work better. i might even just use vee-validate rules instead of yup

@logaretm logaretm added the 📚 docs documentation related label Jun 29, 2023
@logaretm
Copy link
Owner

That makes sense, I have added it to parts of the docs where zod schema is used as a form schema. Thanks!

@philipimperato
Copy link

This should be way more prominent. It's borderline incompatible with vee-validate. You can't use the validationSchema without weird, buggy quirks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 docs documentation related
Projects
None yet
Development

No branches or pull requests

3 participants