go-playground / validator

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

Fix validation omitempty for empty String pointer #1173

Open nodivbyzero opened 9 months ago

nodivbyzero commented 9 months ago

Fixes Or Enhances

Do not make an interface check if a field is a String pointer.

Connected to #1129

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

@go-playground/validator-maintainers

coveralls commented 9 months ago

Coverage Status

coverage: 73.857% (+0.008%) from 73.849% when pulling 4e7ca2877f94c5d18663a150d9e0cc6b1e5b9622 on nodivbyzero:fix-omitempty-str-ptr into 8d50f2fd8c2f02fbdf1d44d66171b955c2f4eb50 on go-playground:master.