Skip to content

Releases: dry-rb/dry-validation

v1.5.2

14 Jul 08:33
v1.5.2
230138c
Compare
Choose a tag to compare

Fixed

v1.5.1

18 Jun 09:05
v1.5.1
ef98d9e
Compare
Choose a tag to compare

Fixed

  • dry-monads no longer required for the :hints extension (@schokomarie)
  • Using full: true option works as expected with custom rule messages (issue #618 fixed via #651) (@sirfilip)
  • Using locale: ... option works as expected with hints (issue #589 fixed via #652) (@sirfilip)

Compare v1.5.0...v1.5.1

v1.5.0

11 Mar 13:21
v1.5.0
61a5d7f
Compare
Choose a tag to compare

Added

Changed

  • dry-schema dependency was bumped to ~> 1.5 (@solnic)
  • [internal] KeyMap patches have been removed since dry-schema now provides required functionality (@solnic)

Compare v1.4.2...v1.5.0

v1.4.1

08 Jan 18:09
v1.4.1
646545a
Compare
Choose a tag to compare

Added

Fixed

Compare v1.4.0...v1.4.1

v1.4.0

12 Dec 09:08
v1.4.0
8252216
Compare
Choose a tag to compare

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)

Compare v1.3.1...v1.4.0

v1.3.0

14 Aug 11:46
v1.3.0
0edc45b
Compare
Choose a tag to compare

Added

  • Support for setting an external schema (that can be extended too) (fixed #574) (@solnic)

Fixed

  • Using a hash spec to define rule keys with more than one value is properly handled by rule guard now (fixed #576) (@solnic)

Changed

  • values within rules uses Hash#fetch_values internally now, which improves performance (@esparta)

Compare v1.2.1...v1.3.0

v1.2.1

16 Jul 08:33
v1.2.1
6890f87
Compare
Choose a tag to compare

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)

Compare v1.2.0...v1.2.1

v1.2.0

08 Jul 20:41
v1.2.0
79430c4
Compare
Choose a tag to compare

Added

Fixed

  • Guarding rules for nested keys works correctly (issue #560) (@solnic)

Changed

  • dry-schema dependency was bumped to >= 1.3.1 (@solnic)

Compare v1.1.1...v1.2.0

v1.1.1

24 Jun 08:01
v1.1.1
c94def6
Compare
Choose a tag to compare

Fixed

  • Rule#each works with array values from nested hashes (@mustardnoise)

Compare v1.1.0...v1.1.1

v1.1.0

14 Jun 11:04
v1.1.0
Compare
Choose a tag to compare

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 of rule(geo: [:lat, :lon]) it would return an array with lat and lon (@solnic)

Fixed

Compare v1.0.0...v1.1.0