1 Commits

Author SHA1 Message Date
3b1a9a2be1 Reorganise the board JSON response
All checks were successful
Generate and Release Protos / release (push) Successful in 38s
2026-05-07 13:02:51 +01:00

View File

@@ -5,15 +5,10 @@
"description": "Arr/Dep/Pass Board", "description": "Arr/Dep/Pass Board",
"type": "object", "type": "object",
"properties": { "properties": {
"n": { "d": {
"type": "string", "title": "Metadata",
"title": "Location Name", "type": "object",
"description": "The name of the location" "$ref": "#/definitions/metadata"
},
"o": {
"type": "string",
"title": "Operator (if station)",
"description": "The operator of the station, if the location is a station"
}, },
"s": { "s": {
"title": "Services", "title": "Services",
@@ -34,6 +29,22 @@
"n" "n"
], ],
"definitions": { "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": { "boardService": {
"type": "object", "type": "object",
"required": [ "required": [
@@ -95,6 +106,11 @@
} }
} }
}, },
"h": {
"type": "string",
"title": "Headcode",
"description": "The headcode of the service"
},
"sta": { "sta": {
"type": "string", "type": "string",
"format": "date-time", "format": "date-time",