-
Notifications
You must be signed in to change notification settings - Fork 8
Changelog
Oscar edited this page Jan 5, 2019
·
14 revisions
Fixed minor issues and npm dependencies.
Added tests, current coverage 100%
Validating now uses promises instead of passing callbacks as parameters.
The path to validate is not a string anymore.
You can add you own validators and messages.
It also validates computed values.
Custom rules now just return true
, false
, or an error message.
You can use links to concat validations.
Performance improved.
Better handling of wrong paths.
Error messages more customizable.
Clever dynamic data handling.
Added options: validateOnType
, skipValidationsOnError
and skipRulesOnError
.
Added path properties:
- $validated
- $hasError
- $error
- $errors