Created
February 16, 2018 16:22
-
-
Save cannap/01e0fbf8e1b5643c435a7fc9ce74326c 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
| let inputErrors = [] | |
| if (this.schema.validator) { | |
| inputErrors = inputErrors.concat( | |
| ...validator(this.schema.validator) | |
| .map(validator => { | |
| return validator.validate( | |
| this.value, | |
| this.schema, | |
| this.model, | |
| validator.message | |
| ) | |
| }) | |
| .filter(val => { | |
| return val | |
| }) | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment