enjoi icon indicating copy to clipboard operation
enjoi copied to clipboard

[Feature] Yup support

Open kasperekt opened this issue 4 years ago • 2 comments

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.

kasperekt avatar Apr 18 '20 15:04 kasperekt

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

tlivings avatar Apr 18 '20 16:04 tlivings

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.

kasperekt avatar Apr 18 '20 17:04 kasperekt