Skip to content

Commit

Permalink
docs: add second call to .bail() in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavohenke committed Aug 30, 2019
1 parent a929a00 commit 6e8e521
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/api-validation-chain.md
Expand Up @@ -54,6 +54,7 @@ app.post('/', [
.bail()
// If username is not an email, checkBlacklistedDomain will never run
.custom(checkBlacklistedDomain)
.bail()
// If username is not an email or has a blacklisted domain, checkEmailExists will never run
.custom(checkEmailExists);
]);
Expand Down
3 changes: 3 additions & 0 deletions website/i18n/en.json
Expand Up @@ -148,6 +148,9 @@
},
"version-6.1.0/version-6.1.0-validation-chain-api": {
"title": "Validation Chain API"
},
"version-6.2.0/version-6.2.0-validation-chain-api": {
"title": "Validation Chain API"
}
},
"links": {
Expand Down
Expand Up @@ -55,6 +55,7 @@ app.post('/', [
.bail()
// If username is not an email, checkBlacklistedDomain will never run
.custom(checkBlacklistedDomain)
.bail()
// If username is not an email or has a blacklisted domain, checkEmailExists will never run
.custom(checkEmailExists);
]);
Expand Down

0 comments on commit 6e8e521

Please sign in to comment.