{
  "$id": "https://schemas.ruter.no/adt/ota/api/v2.1/proprietary-extensions/active-cab.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "ActiveCab",
  "type": "object",
  "required": [
    "eventTimestamp",
    "activeCab"
  ],
  "description": "Used to keep track of what direction the train is driving",
  "additionalProperties": true,
  "properties": {
    "eventTimestamp": {
      "$id": "#/properties/eventTimestamp",
      "type": "string",
      "description": "ISO 8601, UTC"
    },
    "activeCab": {
      "$id": "#/properties/activeCab",
      "type": "string",
      "description": "Text for active cab",
      "examples": [
        "c1",
        "c2",
        "inactive"
      ]
    }
  }
}
