validator
https://github.com/go-playground/validator
Go
:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Go not yet supported2 Subscribers
Add a CodeTriage badge to validator
Help out
- Issues
- fix(baked_in): handle "nil" param in excluded_if for pointer fields
- test(baked_in): add regression test for postcode_iso3166_alpha2_field issue #1314
- fix(iso4217): remove BGN as Bulgaria adopted EUR on 2026-01-01
- Expose errors returned by validateFn
- [Bug]: `validateFn` does not propagage errors upwards
- feat: Add ISIN validator
- [Bug]: hostname_rfc1123 validation does not enforce IPv4 octet check
- fix: reject invalid dotted-decimal in hostname_rfc1123 validation
- fix: support non-base64 data URIs per RFC 2397
- add missing unique tag translations for zh and zh_tw
- Docs
- Go not yet supported