Fix knowledgebase stations schema
All checks were successful
Generate and Release Protos / release (push) Successful in 39s

This commit is contained in:
2026-03-28 22:29:46 +00:00
parent a869935241
commit 311ff3798f

View File

@@ -29,97 +29,105 @@
"type": "array", "type": "array",
"additionalItems": false, "additionalItems": false,
"items": { "items": {
"station": { "type": "object",
"type": "object", "required": [
"required": ["c", "l", "o"], "c",
"properties": { "l",
"c": { "o"
"type": "string", ],
"name": "CRS Code", "properties": {
"description": "Station CRS (Primary Key)" "c": {
}, "type": "string",
"n": { "name": "CRS Code",
"type": "string", "description": "Station CRS (Primary Key)"
"name": "NLC Code", },
"description": "Station NLC Code" "n": {
}, "type": "string",
"mc": { "name": "NLC Code",
"type": "number", "description": "Station NLC Code"
"name": "Minimum Connection Time", },
"description": "The minimum connection time at this station" "mc": {
}, "type": "number",
"a": { "name": "Minimum Connection Time",
"type": "object", "description": "The minimum connection time at this station"
"name": "Address", },
"description": "The address of the station", "a": {
"properties": { "type": "object",
"l1": { "name": "Address",
"type": "string", "description": "The address of the station",
"name": "Line 1" "properties": {
}, "l1": {
"l2": { "type": "string",
"type": "string", "name": "Line 1"
"name": "Line 2" },
}, "l2": {
"l3": { "type": "string",
"type": "string", "name": "Line 2"
"name": "Line 3" },
}, "l3": {
"l4": { "type": "string",
"type": "string", "name": "Line 3"
"name": "Line 4" },
}, "l4": {
"l5": { "type": "string",
"type": "string", "name": "Line 4"
"name": "Line 5" },
}, "l5": {
"pc": { "type": "string",
"type": "string", "name": "Line 5"
"name": "Postcode" },
} "pc": {
"type": "string",
"name": "Postcode"
} }
},
"l": {
"type": "object",
"name": "Location",
"description": "LatLon of the station",
"properties": {
"lt": {
"type": "number",
"name": "Latitude",
"description": "Stations Latitude"
},
"ln": {
"type": "number",
"name": "Longitude",
"description": "Stations Longitude"
}
}
},
"o": {
"type": "string",
"name": "Operator",
"description": "The two character code denoting the stations operator"
},
"m": {
"type": "string",
"name": "Map URL"
},
"r": {
"name": "Request",
"type": "boolean",
"description": "Denotes whether station is Request Stop"
},
"d": {
"name": "Defibrillator",
"type": "boolean",
"description": "Denotes whether defibrillator is available"
} }
},
"l": {
"type": "object",
"name": "Location",
"description": "LatLon of the station",
"properties": {
"lt": {
"type": "number",
"name": "Latitude",
"description": "Stations Latitude"
},
"ln": {
"type": "number",
"name": "Longitude",
"description": "Stations Longitude"
}
}
},
"o": {
"type": "string",
"name": "Operator",
"description": "The two character code denoting the stations operator"
},
"m": {
"type": "string",
"name": "Map URL"
},
"r": {
"name": "Request",
"type": "boolean",
"description": "Denotes whether station is Request Stop"
},
"d": {
"name": "Defibrillator",
"type": "boolean",
"description": "Denotes whether defibrillator is available"
} }
} }
} }
} }
}, },
"required": ["service_name", "service_id", "data_type", "data_kind", "sent_timestamp"], "required": [
"service_name",
"service_id",
"data_type",
"data_kind",
"sent_timestamp"
],
"additionalProperties": false "additionalProperties": false
} }