Releases: dry-rb/dry-validation
Releases · dry-rb/dry-validation
v1.5.4
v1.5.3
Added
- You can now access current value's index via
rule(:foo).each do |index:|
(issue #606 done via #657) (@mrbongiolo)
Fixed
- Using
.each(:foo)
works as expected when there are errors related to other keys (issue #659 fixed via #660) (@solnic)
Changed
v1.5.2
v1.5.1
v1.5.0
Added
schema_error?
rule helper (@waiting-for-dev)rule_error?
rule helper (@waiting-for-dev)
Changed
v1.4.1
Added
- Pattern matching on result values (@flash-gordon)
Fixed
- List tokens are correctly interpolated as a comma-separated list in rule messages (see #611) (@waiting-for-dev)
- Warnings about delegated keywords (@flash-gordon)
v1.4.0
Added
- Support for multi-schema inheritance (@ianwhite)
Fixed
- Keyword warnings reported by Ruby 2.7 (@flash-gordon)
- Fixed an issue where
MessageSet
would be marked as empty too early (@ianwhite) - Messages are correctly generated when there are errors for both an array and one or more of its elements (see #599) (@Bugagazavr)
Changed
- A meaningful exception is raised when failure options are not valid (@MatElGran)
- [internal] improved performance in
Contract.ensure_valid_keys
(@grzegorz-jakubiak) - [internal] fixed keyword warnings on MRI 2.7.0 (@flash-gordon)
v1.3.0
v1.2.1
Fixed
- Defining an abstract contract class that has no schema no longer crashes (issue #565) (@solnic)
- Fixed an issue where
Rule#each
would crash when the value is not an array (issue #567) (@solnic) - Fixed an issue where guarding a rule would crash when keys are missing in the input (issue #569) (@solnic)
- Added missing "pathname" require (issue #570) (@solnic)
v1.2.0
Added
- New extension
:predicates_as_macros
(@waiting-for-dev)
Fixed
Changed
dry-schema
dependency was bumped to>= 1.3.1
(@solnic)