gcanti / tcomb-validation

Validation library based on type combinators
MIT License
400 stars 23 forks source link

Don't run check again for error message #68

Open phorsuedzie opened 6 years ago

phorsuedzie commented 6 years ago

The "solution" to keep check and related error message dry looks more like a workaround.

Issues:

Instead, the check should be able to leave check (failure) details which are provided to (e.g.) getValidationErrorMessage.