dry-validation v0.9.0 Release Notes

Release Date: 2016-07-08 // over 7 years ago
  • โž• Added

    • ๐Ÿ‘Œ Support for defining maybe-schemas via maybe { schema { .. } } (solnic)
    • ๐Ÿ‘Œ Support for interpolation of custom failure messages for custom rules (solnic)
    • Support for defining a base schema class with config and rules (solnic)
    • ๐Ÿ‘Œ Support for more than 1 predicate in input macro (solnic)
    • Class-level define! API for defining rules on a class (solnic)
    • ๐Ÿ”€ :i18n messages support merging from other paths via messages_file setting (solnic)
    • ๐Ÿ‘Œ Support for message token transformations in custom predicates (fran-worley)
    • [EXPERIMENTAL] Ability to compose predicates that accept dynamic args provided by the schema (solnic)

    ๐Ÿ›  Fixed

    • Duped key names in nested schemas no longer result in invalid error messages structure (solnic)
    • Error message structure for deeply nested each/schema rules (solnic)
    • Values from option are passed down to nested schemas when using Schema#with (solnic)
    • Hints now work with array elements too (solnic)
    • Hints for elements are no longer provided for an array when the value is not an array (solnic)
    • input macro no longer messes up error messages for nested structures (solnic)

    ๐Ÿ”„ Changed

    • Tokens for size? were renamed left => size_left and right => size_right (fran-worley)

    Compare v0.8.0...v0.9.0