Releases: go-playground/validator
Releases · go-playground/validator
Release 10.15.4
What was fixed?
Corrected a regression of skipping required
for time.Time
accidentally introduced in v10.15.2
Release 10.15.3
What was fixed?
Fix regression for invalid type check before calling reflect values type. Thank you @MysteriousPotato for the PR
Release 10.15.2
What was fixed?
- Refactored #1122 to support
or
's in tags + updated torequired
behaving the same as beforev10.50.0
to support the community as there was a lot of code relying on the before behaviour, correct or not.- Added a way to opt-in to the new functionality, which is recommended, using WithRequiredStructEnabled
Release 10.15.1
What was fixed?
Corrected a few validations including gt
, lt
, ... when using floating point values, specifically float32
, in this PR
Release 10.15.0
What's new?
- Applying
tag
validations onstructs
is now a reality thank to @MysteriousPotato in this PR - Added
oneof
tag to examples in this PR - Added
Spice DB
validations in this PR
What was fixed?
Release 10.14.1
Release 10.14.0
Release 10.13.0
What's new?
- Added
skip_unless
validation.
What was fixed?
- Fixed
excluded_if
validation not working as documented. - Fix state and province codes to meet
iso3166_2
standard. - Update go-urn library to remove GPLv3 library dependency
- Many updates to documentation.
Release 10.12.0
What is new?
- Added
eth_addr_checksum
validation. - Added
eg_ignore_case
andne_ignore_case
- Added
http_url
validation for http(s) URL's - Added
cron
validation. - Added
unique
validation ability to validate struct fields. - Added
base64rawurl
validation for base64 url without = padding - Added
mongodb
objectID validation - Added
filepath
validation. - Added
dirpath
validation. - Added
luhn_checksum
validation. - Added
cve
validation. - 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_unless
validation. - Fix
unique
validation for map with Pointer values. - Fixed
unique
validation for struct field when itis a nil pointer. - Fixed multiple language validation.
- Fixed
notblank
validation to cover all whitespace characters
What was changed?
- Tweaked
eth_addr
validation 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.