fastify-response-caching icon indicating copy to clipboard operation
fastify-response-caching copied to clipboard

Not compatible with fastify-swagger

Open vunamhung opened this issue 5 years ago • 1 comments

Hello, Thank you for nice plugin, I use it and it work fine with normal request, but it not work with fastify-swagger request.

This is bug

Converting circular structure to JSON
    --> starting at object with constructor 'Socket'
    |     property 'parser' -> object with constructor 'HTTPParser'
    --- property 'socket' closes the circle

It's better if you can have a option to exclude some routes.

vunamhung avatar Oct 05 '20 06:10 vunamhung

It's such a nice idea @vunamhung, a PR is always welcome, we will discuss in the PR for the implementation detail.

twiesing avatar Feb 09 '21 10:02 twiesing