Skip to content

Releases: go-playground/validator

Release 10.4.2

06 Apr 01:26
6824818
Compare
Choose a tag to compare

What was Fixed?

  • Add support for excluded_with on pointer fields Thanks @Jake-Convictional for the PR
  • Fix excludedWithoutAll comment. Thanks @jfrancisco0 for the PR
  • Fix accessing fields in composed structs. Thanks @Adimus11 for the PR
  • Error in spelling. Thanks @Qalifah for the PR
  • Fix StructLevel Parent(). Thanks @Torwang1 for the PR
  • Add missing corresponds to boolean value in nefield. Thanks @Doarakko for the PR
  • New official Documentation URL is README. Thanks @frederikhors for the PR
  • Remove version from installation and import in the README. Thanks @Serj1c for the PR
  • Fix extra text in error.go comment. Thanks @deikatsuo for the PR

Release 10.4.1

17 Oct 15:52
456221b
Compare
Choose a tag to compare

What was fixed?

Fixed an issue where if the param of a time.Durtion type is specified
as an integer, denoting nanosecond precision, instead of time duration
string the validation would panic introduced in #642

The fix ensures it falls back to the previous expected behaviour.

Release 10.4.0

27 Sep 23:22
d6b17fd
Compare
Choose a tag to compare

What's new?

Merged ton of PR's, thank you everyone for your contributions!

Release 10.3.0

21 May 06:24
ea924ce
Compare
Choose a tag to compare

What's New/Fixed?

New

  • Run tests on more recent Go version, thanks @psampaz for the PR
  • List validations in man README, thanks @psampaz for the PR
  • Updated godoc link, thanks @psampaz for the PR
  • Added Spanish translations, thanks @alfonsoprado for the PR
  • Add startsnotwith & endsnotwith validations, thanks @metalinspired for the PR
  • Fix some gramatical errors, thanks @erikaleigh for the PR
  • Add missing zh translations, thanks @cncal for the PR
  • Update zh datetime translation, thanks @fourcels for the PR

Fixed

Release 10.2.0

09 Feb 17:41
c68441b
Compare
Choose a tag to compare

What's new?

  • Added DateTime validation, thanks @psampaz for the PR
  • Added JSON validation, thanks @psampaz for the PR
  • Added Hostname + Port validation, thanks @terala for the PR
  • Added Russion Translations validation, thanks @Rustery for the PR
  • Fixed typo in documentation, thanks @shenyiling for the PR
  • Added lowercase and uppercase validations, thanks @psampaz for the PR

Release 10.1.0

25 Dec 05:53
fb6c458
Compare
Choose a tag to compare

What's new?

🎄 Merry Christmas: 🎄

🎁 🎁 🎁 🎁 🎁 🎁 🎁 🎁

  • Added GetTag functionality to the FieldLevel interface. Thanks @LRichi for the PR
  • Extended Isunique functionality to handle the uniqueness of struct fields in an array/slice. Thanks @shihanng for the PR
  • Improved documentation for custom functions. Thanks @skateinmars for the PR
  • Added e.164 phone number validation. Thanks @taybart for the PR
  • Optimize isurl nill error check, Thanks @whatvn for the PR
  • Remove unecessary casting in example, Thanks @Streppel for the PR
  • Improve accuracy of the datauri validation regex, Thanks @JonathanWThom for the PR
  • Add boolean type support for the eq validator, Thanks @ghost for the PR
  • Punctuation fix to the CONTRIBUTING.md, Thanks @sclaire-1 for the PR
  • Added ability to validate oneof for space-separated strings, Thanks @JonathanWThom for the PR

Release 9.31.0

25 Dec 05:39
Compare
Choose a tag to compare

What's new?

As of 2019-12-24 v9 is entering maintenance mode. Please direct all PR's to master.

But before this happens, 🎄 Merry Christmas: 🎄

🎁 🎁 🎁 🎁 🎁 🎁 🎁 🎁

  • Added GetTag functionality to the FieldLevel interface. Thanks @LRichi for the PR
  • Extended Isunique functionality to handle the uniqueness of struct fields in an array/slice. Thanks @shihanng for the PR
  • Improved documentation for custom functions. Thanks @skateinmars for the PR
  • Added e.164 phone number validation. Thanks @taybart for the PR

Release 9.30.2

25 Nov 20:06
bde478f
Compare
Choose a tag to compare

What was fixed?

Fixed previous release against wrong branch!

Release 10.0.1

17 Nov 21:29
691a5f5
Compare
Choose a tag to compare

What was fixed?

Fixed the required_with* validation functions that were not properly handling pointers.

Release 9.30.1

17 Nov 21:28
691a5f5
Compare
Choose a tag to compare

What was fixed?

Backported some fixes from v10 for the required_with* validation functions.

P.S.
I highly recommending updating to v10 which is just v9 updated to use Go Modules and std import paths rather than gopkg.in. I will be putting v9 into maintenance mode soon as I don't have the bandwidth to maintain both v10 & v9.