Skip to content

Releases: go-playground/validator

Release 9.16.0

05 May 16:29
Compare
Choose a tag to compare

What's new?

  • Update gin upgrade example, see #358 for details, thanks @ashtonian for the PR!
  • Extended the unique tag to also cover map values, see #361 for details, thanks @jservice-rvbd for the PR!
  • cleaned up some linting and spelling errors.
    • fixed some translation error checks not propogated found during linting.

Release 9.15.0

10 Apr 05:35
Compare
Choose a tag to compare

What's new

Add the following new validations:

  • Adds bitcoin address validation for P2PKH and P2SH addresses
  • Adds bitcoin address validation for Bech32 addresses
  • Adds basic ethereum address validation

Thanks @QuestofIranon for the PR

Release 9.14.0

08 Apr 17:25
ff1ee42
Compare
Choose a tag to compare

What's new?

Added base64url validation according to section 5 of RFC4648 Thanks @kgeorgiou for the PR!

Release 9.13.0

19 Mar 15:48
8ce234f
Compare
Choose a tag to compare

What's New?

Added Brazilian Portuguese translations see PR #350 Thanks @afranioce

Release v9.12.0

05 Mar 15:05
1b8c8e1
Compare
Choose a tag to compare

What's new?

  • French translations were added for error messages thanks to @fdelbos's PR

Release 9.11.0

20 Feb 16:22
150fe5b
Compare
Choose a tag to compare

What's new?

added a new validation oneof thanks for the PR @ansel1

see details in the PR #343

Release 9.10.0

15 Feb 16:55
535f852
Compare
Choose a tag to compare

What's new?

Added new validation hostname_rfc1123 the current hostname validation is for RFC 952

###I want to use the new hostname validation, but don't want to go around and change my struct tags.
No problem, just register an Alias eg.

validate := validator.New()
validate.RegisterAlias("hostname", "hostname_rfc1123")

Release 9.9.4

03 Feb 18:38
Compare
Choose a tag to compare

What was fixed?

  • Corrected docs for method name change FieldWithValue => VarWithValue
  • Corrected display of translations when field is relfect.Ptr thanks @glb see #340

Release 9.9.3

14 Jan 22:15
48a433b
Compare
Choose a tag to compare

What was fixed?

Update tagCache locking scope to allow for validate.Var and validate.VarCtx to be used from within validations functions. see #335 for details.

Release 9.9.2

06 Jan 03:47
230db62
Compare
Choose a tag to compare

What was fixed/updated?

Updated docs to clarify between validation tag separator or , and or validation tag separator |