Releases: dry-rb/dry-validation
Releases · dry-rb/dry-validation
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)
v1.1.1
v1.1.0
Added
key?
method available within rules, that can be used to check if there's a value under the rule's default key (refs #540) (@solnic)value
supports hash-based path specifications now (refs #547) (@solnic)value
can read multiple values when the key points to them, ie in case ofrule(geo: [:lat, :lon])
it would return an array withlat
andlon
(@solnic)
Fixed
- Passing multiple macro names to
validate
oreach
works correctly (fixed #538 #541) (@jandudulski)