Closed gusparr28 closed 1 year ago
I have an endpoint that doesn't response with JSON, instead it responses with some headers and with file bytes in response body. I would like to add that spec to my Swagger docs, but haven't found a clear solution. Appreciated. Thanks
https://swagger.io/docs/specification/describing-responses/
Read the part regarding response headers.
I don't know how you check the document, but it do have a section on response headers
.
https://github.com/fastify/fastify-swagger#response-headers
Please provide a minimal reproducible code if that doesn't work.
Prerequisites
Issue
No response