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
I can configure a custom handler to handle validation failures for request validation. It would be nice to be able to do the same for response validation. Specifically, we need the ability to add a requestId header to help with issue reports.
Let me know if you want a PR.
The text was updated successfully, but these errors were encountered:
Without the failAction's, when Joi Validation fails, onPreResponse is never called and the requestId is never added to the response header. I am currently able to do this on the request side by implementing failAction, but on the response side the function is not implemented.