Basic Usage

Assume that we need to validate the request body of deviceRouter.post('/device', ()=> {})

There are 3 steps to setup xpress-req-validator

  1. define specs for the request

  2. provide accurate configuration

  3. apply the middleware

Last updated

Was this helpful?