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

[Feature] Yup support #89

Open
kasperekt opened this issue Apr 18, 2020 · 2 comments
Open

[Feature] Yup support #89

kasperekt opened this issue Apr 18, 2020 · 2 comments

Comments

@kasperekt
Copy link

It would be extremely nice to have this library to support parsing to Yup schema as well. I've a case where I use Joi in the backend and I want to share schemas with frontend. Right now I am using Joi on both sides but Yup is much smaller and works really well with Formik. If I could describe schemas in JSON format and then parse it separately on backend and frontend It would be extremely helpful.

@tlivings
Copy link
Owner

How compatible are their APIs? If they are mostly compatible it should be possible to add in such support.

@kasperekt
Copy link
Author

Look it up here: https://github.com/jquense/yup

They are "heavily inspired by Joi" so the API is quite similar. I think there are some differences but mostly it is almost the same.

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

No branches or pull requests

2 participants