Middleware to validate the request using express-validator.

  • Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

      The Express request object.

    • res: Response<any, Record<string, any>>

      The Express response object.

    • next: NextFunction

      The next middleware function.

    Returns void | Promise<void>