{
  "$id": "https://schema.nfh.global/AffectedLine/v2.0",
  "x-iri": "https://schema.nfh.global/AffectedLine/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "AffectedLine",
  "type": "object",
  "description": "A reference to a transport line that is affected by a service disruption or alert.",
  "properties": {
    "lineId": {
      "description": "Identifier of the affected transport line",
      "type": "string"
    },
    "lineRef": {
      "description": "Reference to the affected Line entity",
      "$ref": "https://schema.nfh.global/Line/v2.0/schema.json"
    },
    "affectedStops": {
      "description": "Stops on this line affected by the disruption",
      "$ref": "https://schema.nfh.global/Stop/v2.0/schema.json"
    },
    "cause": {
      "description": "Cause of the disruption affecting this line",
      "type": "string"
    },
    "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"
  ]
}
