code: function validatePath (api, path, pathId, operationIds) {
    swaggerMethods.forEach(function (operationName) {
      var operation = path[operationName];
      var operationId = pathId + "/" + operationName;
  
      if (operation) {
        var declaredOperationId = operation.operationId;
        if (declaredOperationId) {
          if (operationIds.indexOf(declaredOperationId) === -1) {
            operationIds.push(declaredOperationId);
          }
          else {
            throw ono.syntax("Validation failed. Duplicate operation id '%s'", declaredOperationId);
          }
        }
        validateParameters(api, path, pathId, operation, operationId);
  
        var responses = Object.keys(operation.responses || {});
        responses.forEach(function (responseName) {
          var response = operation.responses[responseName];
          var responseId = operationId + "/responses/" + responseName;
          validateResponse(responseName, (response || {}), responseId);
        });
      }
    });
  }
docs: Validates the given path.
  
  @param {SwaggerObject} api           - The entire Swagger API object
  @param {object}        path          - A Path object, from the Swagger API
  @param {string}        pathId        - A value that uniquely identifies the path
  @param {string}        operationIds  - An array of collected operationIds found in other paths