{
  "$id": "https://schema.nfh.global/Incident/v2.0",
  "x-iri": "https://schema.nfh.global/Incident/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Incident",
  "type": "object",
  "description": "A reported event on the transport network that affects normal service operations, such as a disruption, roadblock, or infrastructure failure.",
  "properties": {
    "incidentType": {
      "description": "Type of incident (e.g. DISRUPTION, ROADBLOCK, MAINTENANCE)",
      "type": "string"
    },
    "severity": {
      "description": "Severity level of the incident (LOW, MEDIUM, HIGH)",
      "type": "string"
    },
    "affectedArea": {
      "description": "Geographic area affected by the incident",
      "$ref": "https://schema.nfh.global/Location/v2.0/schema.json"
    },
    "startTime": {
      "description": "Date and time the incident started",
      "type": "string",
      "format": "date-time"
    },
    "endTime": {
      "description": "Expected or actual end date and time of the incident",
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "description": "Unique identifier for the alert",
      "type": "string"
    },
    "descriptor": {
      "description": "Human-readable description of the alert",
      "$ref": "https://schema.nfh.global/Descriptor/v2.1/schema.json"
    },
    "validity": {
      "description": "Time period during which the alert is active",
      "$ref": "https://schema.nfh.global/TimePeriod/v2.1/schema.json"
    },
    "status": {
      "description": "Current status of the alert",
      "$ref": "https://schema.nfh.global/State/v2.0/schema.json"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "ride-hailing"
  ]
}
