go-playground / validator

:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
MIT License
16.53k stars 1.31k forks source link

feat(unique): Add support for struct memember validation #1048

Closed zemzale closed 1 year ago

zemzale commented 1 year ago

Fixes Or Enhances

Issue #1034

This allows validating that two struct members are unique. This has been documented as a feature but has never been implemented.

Make sure that you've checked the boxes below before you submit PR:

@go-playground/validator-maintainers

coveralls commented 1 year ago

Coverage Status

Coverage: 74.181% (-0.001%) from 74.182% when pulling 0a12a12d998313ae9a5814f58d0116e2ce7f326d on zemzale:unique-struct into c7e0172e0fd176bdc521afb5186818a7db6b77ac on go-playground:master.

nmfzone commented 1 year ago

No update?