next-joi
next-joi copied to clipboard
Validate NEXT.js API Routes with joi
`validationError` can be null and thus, `onValidationError` can run even for successful validations.
This pr adds a new option field which allows to set validation options and replaces the request fields with the converted values. If you do not like this behavior you...
Hello, I am using next-joi with next-connect and it works great. I was wondering if there is a way for the request handler to receive the validated/converted payload. For example:...
Thanks for this small little, but handy middleware. Great work :clap: I extended the default request interface to have a strongly typed parameter and thought, maybe this is also useful...
I am trying to add a default value to an optional parameter, but `Joi.default()` doesn't seem to take effect. My code looks somehow like this: ``` const params = Joi.object({...