I was able to find a way to normalize the request and response in a fastify
onrequest hook
, so that middleware written for express
, like swagger-stats
, can be used with fastify
.
I was wondering if there would be any interest in me adding this as an option to the FastifyAdapter
, so that others can benefit from it? The thought is if this option is turned on, then in the constructor the onrequest hook
will be added to the fastify
instance.