dry-validation v0.3.0 Release Notes
Release Date: 2015-12-07 // over 8 years ago-
โ Added
- ๐ I18n messages support (solnic)
- ๐ง Ability to configure
messages
viaconfigure { config.messages = :i18n }
(solnic) rule
interface in DSL for defining rules that depend on other rules (solnic)confirmation
interface as a shortcut for defining "confirmation of" rule (solnic)- Error messages can be now matched by input value type too (solnic)
๐ Fixed
optional
rule with coercions work correctly with|
+ multiple&
s (solnic)- 0๏ธโฃ
Schema#[]
checks registered predicates first before defaulting to its own predicates (solnic)
๐ Changed
Schema#messages(input)
=>Schema#call(input).messages
(solnic)Schema#call
returnsSchema::Result
which has access to all rule results, errors and messagesSchema::Result#messages
returns a hash with rule names, messages and input values (solnic)