You can fix it by changing:
joi.validate(request, validationSchema)
to:
validationSchema.validate(request)
joi.validate() Is no longer supported in v16. It is clearly documented in the API docs and release notes.
You can fix it by changing:
joi.validate(request, validationSchema)
to:
validationSchema.validate(request)
joi.validate() Is no longer supported in v16. It is clearly documented in the API docs and release notes.