lib/request-metadata.js
function swaggerOperationMetadata (req, res, next) {
  if (req.swagger.path) {
    let method = req.method.toLowerCase();

    if (method in req.swagger.path) {
      req.swagger.operation = req.swagger.path[method];
    }
    else {
      util.warn("WARNING! Unable to find a Swagger operation that matches %s %s", req.method.toUpperCase(), req.path);
    }
  }

  next();
}
function swaggerOperationMetadata (req, res, next) {
  if (req.swagger.path) {
    let method = req.method.toLowerCase();

    if (method in req.swagger.path) {
      req.swagger.operation = req.swagger.path[method];
    }
    else {
      util.warn("WARNING! Unable to find a Swagger operation that matches %s %s", req.method.toUpperCase(), req.path);
    }
  }

  next();
}
function swaggerOperationMetadata ( req , res , next ) { if ( req . swagger . path ) { let method = req . method . toLowerCase ( ) ; if ( method in req . swagger . path ) { req . swagger . operation = req . swagger . path [ method ] ; } else { util . warn ( "WARNING! Unable to find a Swagger operation that matches %s %s" , req . method . toUpperCase ( ) , req . path ) ; } } next ( ) ; }
Sets `req.swagger.operation`
Sets req . swagger . operation