Skip to content

Attach "sent body" to Express response object when response model validation is on

Choose a tag to compare

@seanpk seanpk released this 01 Apr 18:47
· 15 commits to master since this release

When response validation is enabled in any mode, the validated body is attached to the Express response object in a field named sentBody for use by handlers and/or middleware that are configured to execute after the response is sent.