question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`checkSchema` is not a function.

See original GitHub issue

The checkSchema method from the check API simply isn’t firing. Perhaps it was caused by this commit: https://github.com/ctavan/express-validator/commit/4254b787e94074cf8a3c101d59d0fb9ec10385a0.

Use:

import { checkSchema } from 'express-validator/check';
const schema = checkSchema({ ... properties ...});
...

Error:

TypeError: checkSchema is not a function

System:

  • Node: 6.11.5
  • express-validator: 4.3.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
gustavohenkecommented, Feb 10, 2018
2reactions
dknussmanncommented, Feb 5, 2018

Any info on when it will be released?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use the express-validator.checkSchema function in ...
checkSchema function in express-validator. To help you get started, we've selected a few ... If not present, array of all styles * will...
Read more >
express-validator checkSchema not raise errors - Stack Overflow
I took a look at documentation and I saw that: app.post( '/user', body('username').isEmail(), body('password').isLength({ min: 5 }), (req, ...
Read more >
express-validator.checkSchema JavaScript and Node.js code ...
Most used express-validator functions · validationResult · Result.isEmpty · Result.array · ValidationChain.isLength · ValidationChain.not.
Read more >
Developers - `checkSchema` is not a function. - - Bountysource
The checkSchema method from the check API simply isn't firing. Perhaps it was caused by this commit: ...
Read more >
Schema Validation - express-validator
const { checkSchema, validationResult } = require('express-validator'); app.put( '/user/:id/password', checkSchema({ id: { // The location of the field, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found