code: function swaggerMetadata (req, res, next) {
    /**
     * The Swagger Metadata that is added to each HTTP request.
     * This object is exposed as `req.swagger`.
     *
     * @name Request#swagger
     */
    req.swagger = {
      /**
       * The complete Swagger API object.
       * (see https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#swagger-object)
       * @type {SwaggerObject|null}
       */
      api: null,
  
      /**
       * The Swagger path name, as it appears in the Swagger API.
       * (e.g. "/users/{username}/orders/{orderId}")
       * @type {string}
       */
      pathName: "",
  
      /**
       * The Path object from the Swagger API.
       * (see https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#pathItemObject)
       * @type {object|null}
       */
      path: null,
  
      /**
       * The Operation object from the Swagger API.
       * (see https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#operationObject)
       * @type {object|null}
       */
      operation: null,
  
      /**
       * The Parameter objects that apply to this request.
       * (see https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#parameter-object-)
       * @type {object[]}
       */
      params: [],
  
      /**
       * The Security Requirement objects that apply to this request.
       * (see https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#securityRequirementObject)
       * @type {object[]}
       */
      security: []
    };
  
    next();
  }
docs: Creates the `req.swagger` object.