Skip to content

Add alternatives to validationSchemaΒ #192

@taronaeo

Description

@taronaeo

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions