Releases: go-playground/validator
Releases · go-playground/validator
Release 10.14.1
Release 10.14.0
Release 10.13.0
What's new?
- Added
skip_unlessvalidation.
What was fixed?
- Fixed
excluded_ifvalidation not working as documented. - Fix state and province codes to meet
iso3166_2standard. - Update go-urn library to remove GPLv3 library dependency
- Many updates to documentation.
Release 10.12.0
What is new?
- Added
eth_addr_checksumvalidation. - Added
eg_ignore_caseandne_ignore_case - Added
http_urlvalidation for http(s) URL's - Added
cronvalidation. - Added
uniquevalidation ability to validate struct fields. - Added
base64rawurlvalidation for base64 url without = padding - Added
mongodbobjectID validation - Added
filepathvalidation. - Added
dirpathvalidation. - Added
luhn_checksumvalidation. - Added
cvevalidation. - Added kosovo to country codes.
- Added Latvian translations.
- Added multiple missing language translations.
What was fixed?
- Fixed multiple documentation grammar issues.
- Updated all dependencies to address any lingering CVE issues be reported by tools, even if not able to exploit through this package.
- Fixed
excluded_unlessvalidation. - Fix
uniquevalidation for map with Pointer values. - Fixed
uniquevalidation for struct field when itis a nil pointer. - Fixed multiple language validation.
- Fixed
notblankvalidation to cover all whitespace characters
What was changed?
- Tweaked
eth_addrvalidation while addingeth_addr_checksum. - Updated Struct Level validation example for enum+ example.
- Removed unnecessary cast allowing mocking of ValidationErrors
Release 10.11.2
What was fixed
- Merged some PR and updated deps to address some CVE's in those libraries.
Release 10.11.1
What was fixed?
Corrected/Enhanced is boolean check to take the field type into consideration. Thanks @V-R-Dighe for the PR
Release 10.11.0
What's new?
- Add ability to validate structs using map rules. #934
- A number of hash validations. #875
- Italian translations. #694 #914
- Vietnamese translations. #820
- Arabic translations. #825
- Added missing
Booleantranslation. #930 - Add missing
requiredtranslation. #884 - Add missing
zhtranslations. #856 - Added
exclude_ifandexcluded_unlesstags. #847 - Added Credit Card validation. #924
What was fixed?
- Fix support for aliased time.Time types. #890
- Fix multiple group of
ORoperators. #911 - Remove underscore from RFC-1123 based regex. #912
jatypos. #898- Documentation typos. #891
What was enhanced?
ValidationCtxnow supports nested slice maps. #917RegisterTagNameFuncdocumentation. RegisterTagNameFunc
Release 10.10.1
What was fixed?
Updated a couple of dependencies to resolve some vulnerabilities found within.
Release 10.10.0
What's new?
- Added string support for
country_codevalidation, thanks @uberswe for the PR. - Added support for alpha hex colours, thanks @nesty92 for the PR.
- Added DNS RFC 1035 label format validator, thanks @0n1shi for the PR.
- Added ULID validation, thanks @uberswe for the PR.
- Added regex version (Semantic Versioning 2.0.0) validation, thanks @jtseng-godaddy for the PR.
Release 10.9.0
What's new?
- Fixed panic when use ru lang for translation, thanks @anisov for the PR
- Add boolean baked-in validator to check a string value is a valid boolean representation, thanks @xvello for the PR
- Document thread safety and recommended singleton usage, thanks @andrascz for the PR
- Add validations for ISO 4217 currency codes, thanks @metinogurlu for the PR
- Update
universal-translatorandlocalesdependencies to their latest versions.