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

Use yup for form validation #1149

Open
verdverm opened this issue Aug 27, 2019 · 1 comment
Open

Use yup for form validation #1149

verdverm opened this issue Aug 27, 2019 · 1 comment

Comments

@verdverm
Copy link
Contributor

There is an internal validation which is limited, Formik recommends using the yup validation library which supports more complex possibilities.

https://jaredpalmer.com/formik/docs/guides/validation#validationschema

@larixer
Copy link
Member

larixer commented Aug 31, 2019

@verdverm yup-like validation syntax and more complex possibilities is a good idea, thank you for raising it Tony. We need not only validation, we need single source of truth schema, which can be used for GraphQL-types generation, SQL tables generation, SQL queries building, forms generation, etc, etc. Partly we work on this here:
#524
and here:
https://github.com/sysgears/domain-schema

We don't have yup-like syntax yet in domain-schema, but we think about adding it. We will not be able to use yup itself, because we need more than just complex validation, but the idea about its syntax is great.

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

2 participants