apigee-127 / swagger-tools

A Node.js and browser module that provides tooling around Swagger.
MIT License
701 stars 374 forks source link

how to overwrite multer storage engine used in SwaggerMetaData - HELP! #626

Open walshe opened 3 years ago

walshe commented 3 years ago

So multer has a nice option where you can plug in a different storage engine (as apposed to MemoryStorageEngine). One such engine is multer-s3 which allows uploaded files to go straight to s3 buckets.

However, swagger tools seems to have hardcoded the multer.memoryStorage() option.

Whats the easiest way to change this without upsetting the whole apple cart