Add fmt.Stringer interface support to uuid validations allowing most UUID validation libraries which implement it to work transparently now. TY @JoshGlazebrook for the PR
Added new omitnil similar to omitempty but for pointers. this is mainly for code generation ease. TY @tarampampam for the PR
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 to required behaving the same as before v10.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 on structs is now a reality thank to @MysteriousPotato in this PR
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps github.com/go-playground/validator/v10 from 10.11.1 to 10.16.0.
Release notes
Sourced from github.com/go-playground/validator/v10's releases.
... (truncated)
Commits
84254ae
update README1246622
add ISSN validator + tests + documentation (#1166)c856961
fix file URL validator (#1171)aa96909
Addomitnil
modifier (#1187)b0c7337
update fieldMatchesRegexByStringerValOrString for backward compatibility4c1bd61
Add support for validating against uuid values that are structs which impleme...adda84d
Fix oneof tag in simple example (#1184)94a637a
feat(BREAKING): Change CIDRIPv4 validation (#945)8d50f2f
Update README.md619321c
fix edge case (#1163)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show