ozzo-validation v3.0 Release Notes

Release Date: 2017-02-12 // about 7 years ago
  • 🚀 This release revamps the way of declaring struct validation rules, based on the discussion in #12.
    ⬆️ It introduces BC-breaking changes. Please refer to the upgrade instructions for more details.

    🚀 The following changes are introduced in this major release:

    • 👀 A new way of declaring struct field validation rules. See #12 for more information.
    • ➕ Added Errors.Filter() to support composing arbitrary validation errors.
    • Replaced Range rule with two new rules: Min and Max.
    • ➕ Added validation.By() to support wrapping a function into a validation rule.