{
  "$id": "https://schema.nfh.global/Line/v2.0",
  "x-iri": "https://schema.nfh.global/Line/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Line",
  "type": "object",
  "description": "A named, branded public transport service identified by a number or name, typically operating over one or more routes.",
  "properties": {
    "lineId": {
      "description": "GTFS or NeTEx identifier for the line",
      "type": "string"
    },
    "shortName": {
      "description": "Short public-facing name (e.g. 42, M1, Jubilee)",
      "type": "string"
    },
    "longName": {
      "description": "Full descriptive name of the line",
      "type": "string"
    },
    "lineType": {
      "description": "Mode of transport (e.g. BUS, SUBWAY, RAIL, FERRY)",
      "type": "string"
    },
    "color": {
      "description": "Hex colour code for line display on maps",
      "type": "string"
    },
    "textColor": {
      "description": "Hex colour code for text displayed on the line colour",
      "type": "string"
    },
    "operatorRef": {
      "description": "Reference to the operator running this line",
      "$ref": "https://schema.nfh.global/Operator/v2.0/schema.json"
    },
    "networkRef": {
      "description": "Reference to the network this line belongs to",
      "$ref": "https://schema.nfh.global/Network/v2.0/schema.json"
    },
    "id": {
      "description": "Unique identifier for the item",
      "type": "string"
    },
    "descriptor": {
      "description": "Human-readable description of the item",
      "$ref": "https://schema.nfh.global/Descriptor/v2.1/schema.json"
    },
    "categoryId": {
      "description": "Category code classifying the item",
      "$ref": "https://schema.nfh.global/CategoryCode/v2.1/schema.json"
    },
    "price": {
      "description": "Price specification for this item",
      "$ref": "https://schema.nfh.global/PriceSpecification/v2.1/schema.json"
    },
    "quantity": {
      "description": "Available quantity of the item",
      "$ref": "https://schema.nfh.global/Quantity/v2.0/schema.json"
    },
    "tags": {
      "description": "Tags associated with the item",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "transmodel-netex",
    "ride-hailing"
  ]
}
