You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, any operation that modifies the request's body (or query, headers) is not supported. We use joi to perform validation only. Anyway, I think you raise a valid point here, and I will take a look to try adding support for this anytime soon.
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:
I'm guessing either I shouldn't access body with
req.body
or this is not supported, is it?Thanks in advance.
The text was updated successfully, but these errors were encountered: