{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.local/schemas/incident_record.schema.json",
  "title": "IncidentRecord",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "incident_id",
    "severity",
    "status",
    "detected_at",
    "summary",
    "systems_impacted",
    "mitigation_taken"
  ],
  "properties": {
    "incident_id": {"type": "string"},
    "severity": {
      "type": "string",
      "enum": ["sev1", "sev2", "sev3", "sev4"]
    },
    "status": {
      "type": "string",
      "enum": ["open", "mitigated", "closed"]
    },
    "detected_at": {
      "type": "string",
      "format": "date-time"
    },
    "summary": {"type": "string"},
    "systems_impacted": {
      "type": "array",
      "items": {"type": "string"}
    },
    "trade_ids": {
      "type": "array",
      "items": {"type": "string"}
    },
    "release_id": {"type": "string"},
    "config_hash": {"type": "string"},
    "mitigation_taken": {"type": "string"},
    "root_cause": {"type": "string"},
    "preventive_action": {"type": "string"}
  }
}
