You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating from 2.13.x to 2.15 and also 3.x causes an error message on startup:
"Error: multerOpts must be an object or undefined"
index.js:
validateOptions(options) {
// ......
const multerOpts = options.multerOpts;
if (securityHandlers != null) {
if (typeof multerOpts !== 'object' || Array.isArray(securityHandlers)) {
throw ono_1.default('multerOpts must be an object or undefined');
}
util_1.deprecationWarning('multerOpts is deprecated. Use fileUploader instead.');
}
// .....
I don't really understand why we would check for "securityHandlers" at that place. I assume the author meant to check multerOpts instead so like:
validateOptions(options) {
// ......
const multerOpts = options.multerOpts;
if (multerOpts != null) {
if (typeof multerOpts !== 'object' || Array.isArray(multerOpts)) {
throw ono_1.default('multerOpts must be an object or undefined');
}
util_1.deprecationWarning('multerOpts is deprecated. Use fileUploader instead.');
}
// .....
The text was updated successfully, but these errors were encountered:
comino
changed the title
MulterOptions required when having
MulterOptions required when having securityHandlers
Jan 30, 2020
comino
added a commit
to comino/express-openapi-validator
that referenced
this issue
Jan 30, 2020
Updating from 2.13.x to 2.15 and also 3.x causes an error message on startup:
"Error: multerOpts must be an object or undefined"
index.js:
I don't really understand why we would check for "securityHandlers" at that place. I assume the author meant to check multerOpts instead so like:
The text was updated successfully, but these errors were encountered: