We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
using a checkSchema like this:
checkSchema({ category: { notEmpty: { bail: true, errorMessage: "must not be empty" }, isString: { bail: true, errorMessage: "must be a string" }, custom: { options: async (category, { req }) => { if (!req.author.categories.find((cat) => cat.name === category)) { throw new Error("not in your permissions"); } } } } })
It's redundant to use bail each time.
Add a property that instead apply automatically bail to all components of chain.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
using a checkSchema like this:
It's redundant to use bail each time.
Describe the solution you'd like
Add a property that instead apply automatically bail to all components of chain.
The text was updated successfully, but these errors were encountered: