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
Given this schema.
const schema = { foo: { default: { options: 10, }, }, }
and this route
app.use('/test', checkSchema(schema), testController)
When request /test?foo or /test?foo=, the default option does not work.
/test?foo
/test?foo=
As described above. 👆👆
the request query : req.query should be transformed to
req.query
{ foo: 10 }
the request query : req.query is
{ }
The text was updated successfully, but these errors were encountered:
checkSchema
in
Successfully merging a pull request may close this issue.
Describe the bug
Given this schema.
and this route
When request
/test?foo
or/test?foo=
, the default option does not work.To Reproduce
As described above. 👆👆
Expected behavior
the request query :
req.query
should be transformed toCurrent behavior
the request query :
req.query
isExpress-validator version:
The text was updated successfully, but these errors were encountered: