validator icon indicating copy to clipboard operation
validator copied to clipboard

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

Open d-wojciechowski opened this issue 1 year ago • 2 comments

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:

  • [x] Tests exist or have been written that cover this particular change.

@go-playground/validator-maintainers

d-wojciechowski avatar Jul 03 '24 07:07 d-wojciechowski

Coverage Status

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

coveralls avatar Jul 03 '24 07:07 coveralls

Coverage Status

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

coveralls avatar Jul 03 '24 11:07 coveralls

Hi @d-wojciechowski, just wondering why this PR was closed. I think this feature is super useful! Is there another way to achieve the same thing, or are there any plans to add it in the future? Thanks a lot!

fatkharrofiqi avatar Jul 09 '25 20:07 fatkharrofiqi