diff --git a/schemas/api/stations/board.json b/schemas/api/stations/board.json index 4a1a6c9..c2c623f 100644 --- a/schemas/api/stations/board.json +++ b/schemas/api/stations/board.json @@ -5,15 +5,10 @@ "description": "Arr/Dep/Pass Board", "type": "object", "properties": { - "n": { - "type": "string", - "title": "Location Name", - "description": "The name of the location" - }, - "o": { - "type": "string", - "title": "Operator (if station)", - "description": "The operator of the station, if the location is a station" + "d": { + "title": "Metadata", + "type": "object", + "$ref": "#/definitions/metadata" }, "s": { "title": "Services", @@ -34,6 +29,22 @@ "n" ], "definitions": { + "metadata": { + "type": "object", + "required": ["n", "o"], + "properties": { + "n": { + "type": "string", + "title": "Location Name", + "description": "The name of the location" + }, + "o": { + "type": "string", + "title": "Station Operator", + "description": "The operator of the station (not present for location)" + } + } + }, "boardService": { "type": "object", "required": [ @@ -95,6 +106,11 @@ } } }, + "h": { + "type": "string", + "title": "Headcode", + "description": "The headcode of the service" + }, "sta": { "type": "string", "format": "date-time",