dry-validation v0.9.0 Release Notes
Release Date: 2016-07-08 // over 7 years ago-
โ Added
- ๐ Support for defining maybe-schemas via
maybe { schema { .. } }
(solnic) - ๐ Support for interpolation of custom failure messages for custom rules (solnic)
- Support for defining a base schema class with config and rules (solnic)
- ๐ Support for more than 1 predicate in
input
macro (solnic) - Class-level
define!
API for defining rules on a class (solnic) - ๐
:i18n
messages support merging from other paths viamessages_file
setting (solnic) - ๐ Support for message token transformations in custom predicates (fran-worley)
- [EXPERIMENTAL] Ability to compose predicates that accept dynamic args provided by the schema (solnic)
๐ Fixed
- Duped key names in nested schemas no longer result in invalid error messages structure (solnic)
- Error message structure for deeply nested each/schema rules (solnic)
- Values from
option
are passed down to nested schemas when usingSchema#with
(solnic) - Hints now work with array elements too (solnic)
- Hints for elements are no longer provided for an array when the value is not an array (solnic)
input
macro no longer messes up error messages for nested structures (solnic)
๐ Changed
- Tokens for
size?
were renamedleft
=>size_left
andright
=>size_right
(fran-worley)
- ๐ Support for defining maybe-schemas via