All Versions
20
Latest Version
Avg Release Cycle
71 days
Latest Release
37 days ago

Changelog History
Page 1

  • v4.3.0

    October 19, 2020
    • #128 Added the capability of validating a dynamic map whose structure is specified via validation rules
    • ๐Ÿ‘ #130 Added the support for context-aware validation for When and Each rules

    Thanks to @NathanBaulch for the great contribution!

  • v4.2.2

    August 13, 2020
    • #114 Fallback to field name for ignored JSON fields (thanks to @seriousben!)
    • ๐Ÿ‘ #123 Added Skip.When() to support conditional skipping validation rules (thanks to @maratori!)
  • v4.2.1

    April 28, 2020
  • v4.2.0

    April 26, 2020
    • โฌ†๏ธ 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 and Empty rules (thanks to @samber)
    • ๐Ÿ›  Fixes #107: Added the Else clause to the When 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

    February 07, 2020
    • ๐Ÿ‘ #95, #96: Added validation.When() and validation.Required.When() to support conditional validation. Thanks to @mehran-prs for the great contribution to this new feature!
  • v4.0.0

    January 31, 2020
    • โšก๏ธ #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!
  • v3.8.1

    December 05, 2019
    • ๐Ÿ›  Fixes #72: The validation.In rule now supports less restrictive equality comparison by using reflect.DeepEqual()
    • ๐Ÿ›  Fixes #63: Built-in validation rules are created as structs instead of pointers to improve memory usage performance
  • v3.8.0

    December 04, 2019

    โž• Added support for context-aware validation.

  • v3.7.0

    December 03, 2019

    โž• Added support for go mod

  • v3.6.0

    August 07, 2019
    • โž• Add validation rule for ISO 4217 currency code (#70)
    • โž• Add Each() method for validating iterables. (#71)