Releases: go-ozzo/ozzo-validation
Releases · go-ozzo/ozzo-validation
v4.3.0
v4.2.2
v4.2.0
- Upgraded govalidator to v10 and added the
EmailFormat
validation rule to validate an email address without checking the existence of MX record - Fixes #103: Modified the reDomain regex to support upper/lowercase for the
is.Domain
rule. (thanks to @TheSecEng) - Fixes #105: fixed typo of ErrCurrencyCode (thanks to @maratori)
- Fixes #106: Added the
Nil
andEmpty
rules (thanks to @samber) - Fixes #107: Added the
Else
clause to theWhen
conditional validation construct (thanks to @samber) - Fixes #109: Fixed the bug in the
Length
rule when requiring zero length (thanks to @0perl) - Fixes #110:
RequiredRule
struct is made public (thanks to @erdaltsksn)
v4.1.0
v4.0.0
- #91: Updated all built-in validation rules to use
validation.Error
as the validation error type. It supports error code and parameter placeholders in error messages, which allows checking validation errors programmatically and translating error messages based on error codes. Thanks to @mehran-prs for the great contribution to this new feature! - Improved the performance of
Errors.Error()
. Thanks to @geekflyer for the profiling work and code contribution!