-
Notifications
You must be signed in to change notification settings - Fork 935
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
Joi vs Yup comparison of core schemas #1800
Comments
I have also found a bug with nonNullable as it is unavailable. Yup version : ^0.32.11 const Yup = require('yup')
Yup.number().nonNullable() // throws nonNullable is not a function (it's value is undefined)
Yup.number().nullable().nonNullable() // throws nonNullable is not a function (it's value is undefined) |
does this bug exist in the v1? |
No not anymore, but the array to number bug is still there:
|
Do you want to try and put up a PR to address that bug? |
Yes |
I finally had the time to take care of this, check out the pull request. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have done a comparison of Joi and Yup core schemas. I have noticed a few things :
I think it would be cool if it was possible to add a way to be strict on the type testing while allowing parsing (maybe there is already).
Here's the comparison : https://github.com/HamzaM3/joi-yup-comparison
Thank you all for your work
The text was updated successfully, but these errors were encountered: