{
  "$id": "https://schema.nfh.global/EmergencyEvent/v2.0",
  "x-iri": "https://schema.nfh.global/EmergencyEvent/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "EmergencyEvent",
  "type": "object",
  "description": "A critical safety or operational event requiring immediate response, such as an accident, vehicle breakdown, or passenger emergency.",
  "properties": {
    "emergencyType": {
      "description": "Type of emergency (e.g. ACCIDENT, BREAKDOWN, MEDICAL)",
      "type": "string"
    },
    "severity": {
      "description": "Severity level of the emergency (LOW, MEDIUM, HIGH, CRITICAL)",
      "type": "string"
    },
    "reportedAt": {
      "description": "Timestamp when the emergency was reported",
      "type": "string",
      "format": "date-time"
    },
    "location": {
      "description": "Geographic location of the emergency",
      "$ref": "https://schema.nfh.global/Location/v2.0/schema.json"
    },
    "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"
  ]
}
