Releases: go-playground/validator
Release 9.20.0
Release 9.19.0
What's new?
3 new validations added:
html
- This validates that a string value appears to be an HTML element tag including those described at https://developer.mozilla.org/en-US/docs/Web/HTML/Element
html_encoded
- This validates that a string value is a proper character reference in decimal or hexadecimal format
url_encoded
- This validates that a string value is percent-encoded (URL encoded) according to https://tools.ietf.org/html/rfc3986#section-2.1
Release 9.18.0
Release 9.17.1
What was fixed
A typo in the documentation, thanks @tengis617 for the PR
Release 9.17.0
Expanded numeric
& number
validations
It was originally intended for these to only be used on strings, however
it makes sense to also use them if you are dealing with type interface{}
So now ints and floats return true for this validation also as they are
both numeric and a number.
Release 9.16.1
What was fixed?
According to http://www.ietf.org/rfc/rfc1123.txt Hostnames are limited to letters-digits-hyphen, removing underscore as a valid character. see PR #359 for details. Thanks @jadhub for the PR! & @danielpoe for reporting.
Release 9.16.0
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
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
What's new?
Added base64url validation according to section 5 of RFC4648 Thanks @kgeorgiou for the PR!
Release 9.13.0
What's New?
Added Brazilian Portuguese translations see PR #350 Thanks @afranioce