Version 1.1 of TNValidate is backwards compatible with version 1.0. It includes:
- Brazilian Portuguese translations of the errors
- Can denote that something is a validation warning rather than an error, and extract warnings and errors separately
- Each error now has an associated error code, so you can refer to a particular error without having to compare strings. Additionally, there is support for setting that code yourself.
- Refactored ValidatorBase in order to make validators require less code duplication; this opens the door to implementing custom validators outside of TNValidate, which we will document the API for.
Many thanks to Luizbon for feedback and patches, which have played a major part in this release.