code: 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();
  }
docs: Sets `req.swagger.security`