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

Add alternatives to validationSchema #192

Open
taronaeo opened this issue Jun 27, 2023 · 1 comment
Open

Add alternatives to validationSchema #192

taronaeo opened this issue Jun 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@taronaeo
Copy link

Problem to solve

As a developer, I want to be able to choose my validation library, so that I can have choices. Personally, I prefer using Zod over Yup but there seems to be no official support for alternate validation libraries.

Intended users

Developer.

User experience goal

The developer should be able to use Zod seamlessly with svelte-forms-lib to validate input.

Proposal

I'm unsure yet of how react-hook-form implements, but maybe add a check to see if the code is using Zod or Yup to validate. Then, utilise the validation code accordingly.

Further details

Documentation

Links / references

react-hook-form -- https://www.react-hook-form.com/

@taronaeo taronaeo added the enhancement New feature or request label Jun 27, 2023
@taronaeo
Copy link
Author

I understand that this is a low-priority issue as it boils down to preference. I'll be switching over to Yup while using this library for now as it's a school-based project work.

But if this issue ever gains traction and be implemented, do let me know! It'll be pretty cool :)

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

No branches or pull requests

1 participant