go-playground / validator

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

Change to allow multiple errors be returned from single field when option "WithMultipleErrorsReturned" is set. #1288

Open d-wojciechowski opened 4 months ago

d-wojciechowski commented 4 months ago

Hello, I would like to propose a change that will allow the user to decide if from a single field multiple validation errors may arise. This was already reported as issue here: https://github.com/go-playground/validator/issues/1268

Fixes Or Enhances

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

@go-playground/validator-maintainers

coveralls commented 4 months ago

Coverage Status

coverage: 74.354% (+0.06%) from 74.291% when pulling 386c339af71baff469043c9ce880989eeb89362f on d-wojciechowski:master into a947377040f8ebaee09f20d09a745ec369396793 on go-playground:master.

coveralls commented 4 months ago

Coverage Status

coverage: 74.354% (+0.06%) from 74.291% when pulling 3ca5c65a991b34fd23d73354a3144e4de9b88cd4 on d-wojciechowski:master into a947377040f8ebaee09f20d09a745ec369396793 on go-playground:master.