Closed gusparr28 closed 1 year ago
I have an endpoint that receives binary file in request body. How to add that spec to Fastify Swagger? I've been through the docs and different issues and haven't found a clear solution. Appreciated. Thanks
https://swagger.io/docs/specification/describing-request-body/file-upload/
Pasting Swagger
link do not helps in any case. We transform JSON Schema
to API Docs
which require users to pass proper JSON Schema
.
If you need to use formdata
.
{ type: 'string', format: 'binary' }
would do the trick, but you should remove the validator
. Since ajv
DO NOT support binary
.
Prerequisites
Issue
No response