Validation library with type-safe schemas and rules
This release is mostly about upgrading to dry-core 1.0 and dry-configurable 1.0. One of the outcomes is dropping dependency on dry-container (because it was moved to dry-core). If you happen to use dry-container, please switch to Dry::Core::Container
.
rule_error?
predicate (issue #658 closed via #673) (@moofkit)Contract#call
(issue #674 via #675) (@pyromaniac)key?
within a rule no longer crashes when value is nil
or an empty string (issue #670 fixed via #672) (@alexxty7)key?
helper (see #664 for more info) (@alassek)rule(:foo).each do |index:|
(issue #606 done via #657) (@mrbongiolo).each(:foo)
works as expected when there are errors related to other keys (issue #659 fixed via #660) (@solnic)Result#error?
is now a public API and it takes into consideration both schema and rule errors (issue #655 fixed via #656) (@PragTob)