bugsnag · Schema

StackFrame

Represents a single frame in a stack trace.

Properties

Name Type Description
file string The file path where the frame originated.
line_number integer The line number in the file.
column_number integer The column number in the file.
method string The method or function name.
in_project boolean Whether this frame is from the project's own code.
code object A map of line numbers to code content around the error.
View JSON Schema on GitHub

JSON Schema

bugsnag-stackframe-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/StackFrame",
  "title": "StackFrame",
  "type": "object",
  "description": "Represents a single frame in a stack trace.",
  "properties": {
    "file": {
      "type": "string",
      "description": "The file path where the frame originated."
    },
    "line_number": {
      "type": "integer",
      "description": "The line number in the file."
    },
    "column_number": {
      "type": "integer",
      "description": "The column number in the file."
    },
    "method": {
      "type": "string",
      "description": "The method or function name."
    },
    "in_project": {
      "type": "boolean",
      "description": "Whether this frame is from the project's own code."
    },
    "code": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A map of line numbers to code content around the error."
    }
  }
}