validator icon indicating copy to clipboard operation
validator copied to clipboard

feat: add option early return in case of error

Open thenicolau opened this issue 10 months ago • 4 comments

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

thenicolau avatar Feb 13 '25 03:02 thenicolau

resolve Issue - 1371

thenicolau avatar Feb 13 '25 03:02 thenicolau

Coverage Status

coverage: 73.74% (+0.01%) from 73.73% when pulling 5c40a759d3e99d58839de1503ad1aa0e78488ddc on thenicolau:feature/add-early-return-error into 6a38036e64751ad983b154546ff08df2bff9cc28 on go-playground:master.

coveralls avatar Feb 13 '25 10:02 coveralls

Asking about the use case here to learn if it's worth saving a few nanoseconds|microseconds :) https://github.com/go-playground/validator/issues/1371#issuecomment-2660989420

deankarn avatar Feb 15 '25 16:02 deankarn

I noticed that this old PR had a merge problem, and the issue linked to it was also updated, so I fixed the issues and it is now ready to be reviewed again

thenicolau avatar Oct 22 '25 20:10 thenicolau