Skip to content

Commit

Permalink
Fix #226
Browse files Browse the repository at this point in the history
  • Loading branch information
comino authored Jan 30, 2020
1 parent 53f7376 commit e2d3115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ export class OpenApiValidator {
}

const multerOpts = options.multerOpts;
if (securityHandlers != null) {
if (typeof multerOpts !== 'object' || Array.isArray(securityHandlers)) {
if (multerOpts != null) {
if (typeof multerOpts !== 'object' || Array.isArray(multerOpts)) {
throw ono('multerOpts must be an object or undefined');
}
deprecationWarning('multerOpts is deprecated. Use fileUploader instead.');
Expand Down

0 comments on commit e2d3115

Please sign in to comment.