Created
July 14, 2016 19:38
-
-
Save jacobp100/e9fdd04500ac5f45360824076acef5ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const schema = yup.object().shape({ | |
| name: yup.string().required('You must provide a name'), | |
| age: yup.number().typeError('Must be a number'), | |
| gender: yup.string().oneOf(['male', 'female'], 'Must select a valid gender'), | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment