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

Add: haltOnFirstError option #304

Merged
merged 6 commits into from
Aug 27, 2022

Conversation

avanelli
Copy link
Contributor

@avanelli avanelli commented Aug 24, 2022

Description

Setting haltOnFirstError: true will halt checks and return immediately after the first error, if any.
Closes #299

Usage

const v = new Validator({haltOnFirstError: true});

Checks

  • Add tests
  • Add examples

Copy link
Owner

@icebob icebob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, thanks! Released in 1.14

@icebob icebob merged commit 4434a47 into icebob:master Aug 27, 2022
@avanelli avanelli deleted the feat/haltOnFirstErrorConf branch August 27, 2022 17:58
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.

Halt on Error Possible?
2 participants