{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brixsignage-com/json-schema/brixsignage-com-status-incident-schema.json",
  "title": "StatusIncident",
  "description": "A published incident.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brixsignage-com-status-api-openapi.yml#/components/schemas/StatusIncident",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "investigating",
        "identified",
        "monitoring",
        "resolved"
      ]
    },
    "impact": {
      "type": "string",
      "enum": [
        "degraded",
        "outage",
        "none"
      ]
    },
    "startedAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    },
    "resolvedAt": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO-8601 timestamp (UTC)."
        },
        {
          "type": "null"
        }
      ]
    },
    "updates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "at": {
            "type": "string",
            "description": "ISO-8601 timestamp (UTC)."
          },
          "status": {
            "type": "string",
            "enum": [
              "investigating",
              "identified",
              "monitoring",
              "resolved"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "at",
          "status",
          "message"
        ]
      },
      "description": "Oldest first."
    },
    "screensPlaying": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Whether screens kept playing during the incident; null when not stated."
    }
  },
  "required": [
    "id",
    "title",
    "status",
    "impact",
    "startedAt",
    "resolvedAt",
    "updates",
    "screensPlaying"
  ]
}