Skip to content

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