{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "schema:BusTrip",
  "title": "BusTrip",
  "description": "A trip on a commercial bus line.",
  "type": "object",
  "allOf": [
    {
      "description": "A trip or journey. An itinerary of visits to one or more places.",
      "$ref": "schema:Trip"
    }
  ],
  "properties": {
    "arrivalBusStop": {
      "description": "The stop or station from which the bus arrives.",
      "anyOf": [{ "$ref": "schema:BusStation" }, { "$ref": "schema:BusStop" }]
    },
    "busName": {
      "description": "The name of the bus (e.g. Bolt Express).",
      "type": "string"
    },
    "busNumber": {
      "description": "The unique identifier for the bus.",
      "type": "string"
    },
    "departureBusStop": {
      "description": "The stop or station from which the bus departs.",
      "anyOf": [{ "$ref": "schema:BusStation" }, { "$ref": "schema:BusStop" }]
    }
  }
}
