{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/transit/json-schema/transit-service-alert-schema.json",
  "title": "ServiceAlert",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/transit-service-alerts-api-openapi.yml#/components/schemas/ServiceAlert",
  "type": "object",
  "properties": {
    "alert_id": {
      "type": "string"
    },
    "cause": {
      "type": "string",
      "description": "GTFS-realtime alert cause."
    },
    "effect": {
      "type": "string",
      "description": "GTFS-realtime alert effect."
    },
    "header_text": {
      "type": "string"
    },
    "description_text": {
      "type": "string"
    },
    "severity": {
      "type": "string"
    },
    "active_period_start": {
      "type": "integer",
      "description": "Unix epoch seconds the alert becomes active."
    },
    "active_period_end": {
      "type": "integer",
      "description": "Unix epoch seconds the alert ends."
    },
    "affected_global_route_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}