Releases: Nicolab/crystal-validator
Releases · Nicolab/crystal-validator
v1.11.0
Release v1.11.0
Check::ValidationError extends Validator::Error (< Exception) instead of directly Exception.
v1.10.1
Release v1.10.1
- Add
h_from_json!
usable with a checkable struct or class.
v1.8.0
Release v1.8.0
- feat(checkable): rules inline
v1.7.0
Release v1.7.0
- feat(validation): be able to define the rules inline (with
property
or getter
or define
)
v1.6.0
Release v1.6.0
- Follow Crystal v1 and Ameba linter
- Use Github Actions instead of Travis
v1.5.0
Release v1.5.0
Checkable:
- Add methods:
check!
, check_{{field}}!
, clean_{{field}}!
- Spec: split tests
v1.4.0
Release v1.4.0
Checkable:
- Adds lifecycle hooks for field validations (example:
before_check_email
and after_check_email
).
format:
(key of clean
rule) accepts Proc
or Symbol
v1.3.0
Release v1.3.0
- Be able to use an Exception (
Check::ValidationError
).
- Be able to convert
Check::Errors
to a Check::ValidationError
.