go-playground / validator

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

FastFail feature #1042 #1131

Open Paxman23l opened 1 year ago

Paxman23l commented 1 year ago

Fixes Or Enhances

Adds failfast feature which returns the first validation error encountered. This can be set by a flag or function call. This PR was based on Issue 1042

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.012% (+0.02%) from 73.991% when pulling 57d69a83fc5fba973b9107449043630dd9b2b975 on Paxman23l:paxman23l/fail-fast-feature into 5bf55dc757cad229e8297d42640ec036e2360df7 on go-playground:master.

deankarn commented 1 year ago

interesting idea, let me think about the implications for a while :)

xmgtony commented 4 months ago

Will this feature be merged? It's a very interesting and useful addition, and I'm looking forward to it.