{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/statoss-com/json-schema/statoss-com-issue-schema.json",
  "title": "Issue",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/statoss-com-openapi.json#/components/schemas/Issue",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The issue id."
    },
    "shortId": {
      "type": "string",
      "description": "The app's slug upper-cased and a number: WEB-12."
    },
    "app": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The app id."
        },
        "name": {
          "type": "string",
          "description": "The app's name."
        },
        "slug": {
          "type": "string",
          "description": "The app's slug."
        }
      }
    },
    "title": {
      "type": "string",
      "description": "The exception's type and value, or the message."
    },
    "culprit": {
      "type": "string",
      "description": "Where it happened: a function and file, or a transaction."
    },
    "type": {
      "type": "string",
      "description": "error for an exception, default for a message.",
      "enum": [
        "error",
        "default"
      ]
    },
    "platform": {
      "type": "string",
      "description": "As the SDK sent it, such as node or javascript."
    },
    "level": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The level it reads as, merges followed."
        },
        "label": {
          "type": "string",
          "description": "The name shown."
        },
        "color": {
          "type": "string",
          "description": "A colour by name.",
          "enum": [
            "crimson",
            "red",
            "orange",
            "amber",
            "yellow",
            "green",
            "aqua",
            "teal",
            "blue",
            "violet",
            "indigo",
            "magenta",
            "plum",
            "grey",
            "ink",
            "ash"
          ]
        }
      }
    },
    "category": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "key": {
          "type": "string",
          "description": "The category it reads as, merges followed."
        },
        "label": {
          "type": "string",
          "description": "The name shown."
        },
        "color": {
          "type": "string",
          "description": "A colour by name.",
          "enum": [
            "crimson",
            "red",
            "orange",
            "amber",
            "yellow",
            "green",
            "aqua",
            "teal",
            "blue",
            "violet",
            "indigo",
            "magenta",
            "plum",
            "grey",
            "ink",
            "ash"
          ]
        }
      }
    },
    "status": {
      "type": "string",
      "description": "Where it stands.",
      "enum": [
        "unresolved",
        "resolved",
        "archived"
      ]
    },
    "substatus": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why it is unresolved; null when it is not.",
      "enum": [
        "new",
        "ongoing",
        "regressed"
      ]
    },
    "priority": {
      "type": "string",
      "description": "Set by its level until someone sets it.",
      "enum": [
        "high",
        "medium",
        "low"
      ]
    },
    "assignee": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The person's id."
        },
        "name": {
          "type": "string",
          "description": "Their name."
        },
        "email": {
          "type": "string",
          "description": "Their email."
        }
      }
    },
    "firstSeen": {
      "type": "string",
      "description": "ISO 8601, UTC.",
      "format": "date-time"
    },
    "lastSeen": {
      "type": "string",
      "description": "ISO 8601, UTC.",
      "format": "date-time"
    },
    "firstRelease": {
      "type": [
        "string",
        "null"
      ],
      "description": "The release its first event named."
    },
    "lastRelease": {
      "type": [
        "string",
        "null"
      ],
      "description": "The release its latest event named."
    },
    "timesSeen": {
      "type": "integer",
      "description": "Events counted since it was made."
    },
    "counts": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "events": {
          "type": "integer",
          "description": "Events in the environment and range asked."
        },
        "users": {
          "type": "integer",
          "description": "Users they reached, as far as events say."
        }
      }
    },
    "resolvedAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO 8601, UTC.",
      "format": "date-time"
    },
    "resolvedInRelease": {
      "type": [
        "string",
        "null"
      ],
      "description": "The release that resolved it."
    },
    "archivedUntil": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO 8601, UTC.",
      "format": "date-time"
    },
    "resolveInNextRelease": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "after": {
          "type": [
            "string",
            "null"
          ],
          "description": "The app's newest release when asked; null when it had none."
        },
        "since": {
          "type": "string",
          "description": "ISO 8601, UTC.",
          "format": "date-time"
        }
      }
    },
    "reviewed": {
      "type": "boolean",
      "description": "Taken off the For review tab."
    },
    "url": {
      "type": "string",
      "description": "The issue in the dashboard."
    }
  }
}