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

fix(checkSchema): correctly allow falsy values as options #1092

Merged
merged 1 commit into from
Sep 26, 2021

Conversation

fedeci
Copy link
Member

@fedeci fedeci commented Sep 26, 2021

Description

Fixes #1086

To-do list

  • I have added tests for what I changed.
  • This pull request is ready to merge.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling b333be2 on fedeci:fix/schema-falsy-option into 5373dd7 on express-validator:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.default() does not work with Number 0 as value when used with checkSchema
2 participants