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",
"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",