Created
June 3, 2019 15:11
-
-
Save luandevpro/c94ec45d61f2fbf762cdb162f634b5fb to your computer and use it in GitHub Desktop.
This file contains 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
import * as Yup from 'yup'; | |
const validate = Yup.object().shape({ | |
languages: Yup.array() | |
.required('Must have languages') | |
.min(2, 'Minimum of 2 languages'), | |
}); | |
export default validate; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment