express-joi-validation
express-joi-validation copied to clipboard
validate express application inputs and parameters using joi
It would be nice to have something like validator.multiple to validate multiple container types all at once rather than having to create a new middleware for each container type. ```...
Response validator replaces res.json with a custom function. In case the user configured passError option, we need to restore the original res.json function so that the error handling middleware can...
This validator looks like what I need, but as soon as I try to put a number in the schema I get horrible errors. Here is reproduction code, just slightly...
According to the issue #2411 in [sideway/joi](https://github.com/sideway/joi) repo https://github.com/sideway/joi/issues/2411, The project `@hapi/joi` will be renamed to joi and finally exit the `@hapi` project. Please follow its contributor and update the...
Set Joi peer dependency to 15, and fixed generic type parameter as per https://github.com/evanshortiss/express-joi-validation/issues/30#issuecomment-668478275 Also merged `master`
As Joi has a feature to run validate in asynchronous way [here](https://joi.dev/api/?v=17.9.1#anyvalidateasyncvalue-options), I create this PR to serve that ini this repository.
I am facing SyntaxErro while trying to import from express-joi-validation: ` import { ContainerTypes, createValidator, } from 'express-joi-validation'; ^^^^^^^^^^^^^^ SyntaxError: Named export 'ContainerTypes' not found. The requested module 'express-joi-validation' is...