enjoi
enjoi copied to clipboard
[Feature] Yup support
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.
How compatible are their APIs? If they are mostly compatible it should be possible to add in such support.
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.