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

Valibot instead of Zod #18

Open
jojojojojoj5564656465465 opened this issue Nov 5, 2024 · 3 comments
Open

Valibot instead of Zod #18

jojojojojoj5564656465465 opened this issue Nov 5, 2024 · 3 comments

Comments

@jojojojojoj5564656465465

Do you think it could be possible to use Valibot instead of Zod ?

@anishshobithps
Copy link

I think, it should be like a plugin system to be able to use both rather than entirely change it ?

@jojojojojoj5564656465465
Copy link
Author

I think, it should be like a plugin system to be able to use both rather than entirely change it ?

You could choose either yes.

Valibot is much lighter at bundle size

@Minhir
Copy link

Minhir commented Dec 29, 2024

@Bekacru I think we can use https://github.com/standard-schema/standard-schema to support validator of user choice (now it could be ArkType, zod or valibot). It shouldn't be a breaking change, since zod will be supported.

I personally want to be able to use valibot in better-auth as well, since I'm already using it as my main validation tool. There is already a community plugin for better-auth https://github.com/Daanish2003/validation-better-auth which can be simplified with Standard Schema as well.

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

No branches or pull requests

3 participants