lib/request-metadata.js
function swaggerSecurityMetadata (req, res, next) {
  if (req.swagger.operation) {
    // Get the security requirements for this operation (or the global API security)
    req.swagger.security = req.swagger.operation.security || req.swagger.api.security || [];
  }
  else if (req.swagger.api) {
    // Get the global security requirements for the API
    req.swagger.security = req.swagger.api.security || [];
  }

  next();
}
function swaggerSecurityMetadata (req, res, next) {
  if (req.swagger.operation) {
    // Get the security requirements for this operation (or the global API security)
    req.swagger.security = req.swagger.operation.security || req.swagger.api.security || [];
  }
  else if (req.swagger.api) {
    // Get the global security requirements for the API
    req.swagger.security = req.swagger.api.security || [];
  }

  next();
}
function swaggerSecurityMetadata ( req , res , next ) { if ( req . swagger . operation ) { // Get the security requirements for this operation (or the global API security) req . swagger . security = req . swagger . operation . security || req . swagger . api . security || [ ] ; } else if ( req . swagger . api ) { // Get the global security requirements for the API req . swagger . security = req . swagger . api . security || [ ] ; } next ( ) ; }
Sets `req.swagger.security`
Sets req . swagger . security