dry-validation v0.3.0 Release Notes

Release Date: 2015-12-07 // over 8 years ago
  • โž• Added

    • ๐Ÿ‘ I18n messages support (solnic)
    • ๐Ÿ”ง Ability to configure messages via configure { config.messages = :i18n } (solnic)
    • rule interface in DSL for defining rules that depend on other rules (solnic)
    • confirmation interface as a shortcut for defining "confirmation of" rule (solnic)
    • Error messages can be now matched by input value type too (solnic)

    ๐Ÿ›  Fixed

    • optional rule with coercions work correctly with | + multiple &s (solnic)
    • 0๏ธโƒฃ Schema#[] checks registered predicates first before defaulting to its own predicates (solnic)

    ๐Ÿ”„ Changed

    • Schema#messages(input) => Schema#call(input).messages (solnic)
    • Schema#call returns Schema::Result which has access to all rule results, errors and messages
    • Schema::Result#messages returns a hash with rule names, messages and input values (solnic)

    Compare v0.2.0...v0.3.0