code: function parseSimpleParams (req, res, next) {
    let params = getParams(req);
  
    if (params.length > 0) {
      util.debug("Parsing %d request parameters...", params.length);
  
      params.forEach((param) => {
        // Get the raw value of the parameter
        switch (param.in) {
          case "query":
            util.debug('    Parsing the "%s" query parameter', param.name);
            req.query[param.name] = parseParameter(param, req.query[param.name], param);
            break;
          case "header":
            // NOTE: req.headers properties are always lower-cased
            util.debug('    Parsing the "%s" header parameter', param.name);
            req.headers[param.name.toLowerCase()] = parseParameter(param, req.header(param.name), param);
            break;
        }
      });
    }
  
    next();
  }
docs: Parses all Swagger parameters in the query string and headers