Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce EachUntilFirstError for validating slices and maps with … #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

geekflyer
Copy link

@geekflyer geekflyer commented Jan 20, 2020

…lots of items

This introduces the validation.EachUntilFirstError rule which is a variation of validation.Each which stops the validation once the first slice / map item with an error is encountered.

Reasoning for this functionality can be found in #92

@coveralls
Copy link

coveralls commented Jan 20, 2020

Coverage Status

Coverage decreased (-0.1%) to 99.873% when pulling 564491c on geekflyer:limit-validation-errors into 094faa1 on go-ozzo:master.

@geekflyer geekflyer force-pushed the limit-validation-errors branch 2 times, most recently from 1647f6c to 83a58d3 Compare January 20, 2020 21:01
@geekflyer geekflyer changed the title introduce EachWithFirstErrorOnly for validating slices and maps with … introduce EachUntilFirstError for validating slices and maps with … Jan 20, 2020
@geekflyer geekflyer force-pushed the limit-validation-errors branch 2 times, most recently from b651690 to f675819 Compare January 20, 2020 21:03
@geekflyer geekflyer force-pushed the limit-validation-errors branch from f675819 to 564491c Compare January 20, 2020 21:04
@jakesylvestre jakesylvestre mentioned this pull request Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants