Function checkForValidationErrors

  • Checks that a request does not pass validation by passing it through a express-validator validation chain

    Parameters

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

      Request object to be checked by the chain

    • validationChain: any[]

      array for an express-validator validator chain

    • shouldBeNoErrors: boolean

      boolean for if no errors should be raised by a request, once it has run through the validation chain

    Returns Promise<void>

Generated using TypeDoc