Skip to content

Releases: go-playground/validator

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.

Release 10.0.0

11 Nov 20:50
Compare
Choose a tag to compare

What's new?

  • Updated to Go Modules
  • Updated deps to use their Go Modules versions.

I wanted v10 to have a bunch of new functionality for everyone but Go Modules has forced my hand a bit.

Release 9.30.0

29 Sep 22:24
cd1bd58
Compare
Choose a tag to compare

What's new?

  • Added Turkish translations, thanks @UgurAsaner for the PR!
  • Cleaned up linting.

What was fixed?

  • Fixed bad import path, thanks @teejays for the PR!
  • Fixed all required_with* behaviour, there were some issues with pointers.

Release v9.29.1

12 Jul 15:37
556b9da
Compare
Choose a tag to compare

What was fixed?

  • Corrected typo in docs, thanks @tobiassjosten for the PR!
  • Fix required_without validation working with pointers, thanks @leafduo for the PR!

Release v9.29.0

23 May 15:03
884d31b
Compare
Choose a tag to compare

What's new?

  • Updated the hostname regex to support uppercase letters, thanks @Zeroen for the PR

Some new and exciting validators have been added, thanks @mashmooli for the PR

  • required_with
  • required_with_all
  • required_without
  • required_without_all

please see the docs for usage instructions!

Release 9.28.0

31 Mar 13:44
46b4b1e
Compare
Choose a tag to compare

What's new?

Huge shout out to the community for all the help!

  • Added new section for non-standard validations here from PR, thanks @andreiavrammsd!
    • these non standard validations will not be part of the beked in validations but rather a place for the community to put one-off validations that others may find useful and can register them as needed.
  • Updsated the SSN regex to handle more use cases in PR, thanks @rucas!
  • Added startswith snd endswith validations in PR, thanks @thcipriani!
  • Fixed a typo in the struct level example in PR, thanks @masseelch!
  • Updated the docs to include the uuid_rfc4122 validations in PR, thanks @alexbilbie!
  • Updated the email validations regex to handle a couple of failing real-world cases in PR, thanks @benpaxton-hf!