{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://trust.trustswiftly.com/schemas/incidents.schema.json",
  "title": "Trust Swiftly Incident Notices",
  "description": "FedRAMP Reportable Incident notices posted per IEC-CSO-IIR. Empty array means no notices.",
  "type": "object",
  "required": ["updatedAt", "incidents"],
  "additionalProperties": false,
  "properties": {
    "updatedAt": { "type": "string" },
    "note": { "type": "string" },
    "incidents": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["date", "title", "summary"],
        "additionalProperties": false,
        "properties": {
          "date": { "type": "string" },
          "title": { "type": "string" },
          "summary": { "type": "string" },
          "status": { "enum": ["investigating", "mitigated", "resolved"] },
          "providerTrackingId": { "type": "string" },
          "reportUrl": {
            "type": "string",
            "format": "uri",
            "description": "URL of the full Initial/Ongoing/Final Incident Report conforming to FedRAMP's incident-report schema, published under /fedramp/incident-reports/ and validated against schemas/fedramp/fedramp-incident-report-schema-2026-06-24.json."
          }
        }
      }
    }
  }
}
