Compare commits

...

4 Commits

Author SHA1 Message Date
56aae55f16 Update enum values for MessageEnvelope to allow kb-stations
All checks were successful
Generate and Release Protos / release (push) Successful in 38s
2026-03-29 19:32:02 +01:00
91abe29b62 Adjust KB_Stations data type schema
All checks were successful
Generate and Release Protos / release (push) Successful in 39s
2026-03-29 19:08:15 +01:00
c22f3c7230 Adjust required fields
All checks were successful
Generate and Release Protos / release (push) Successful in 39s
2026-03-28 22:36:42 +00:00
311ff3798f Fix knowledgebase stations schema
All checks were successful
Generate and Release Protos / release (push) Successful in 39s
2026-03-28 22:29:46 +00:00
2 changed files with 80 additions and 86 deletions

View File

@@ -29,97 +29,91 @@
"type": "array", "type": "array",
"additionalItems": false, "additionalItems": false,
"items": { "items": {
"station": { "type": "object",
"type": "object", "required": [
"required": ["c", "l", "o"], "c",
"properties": { "mc",
"c": { "l",
"type": "string", "o",
"name": "CRS Code", "p",
"description": "Station CRS (Primary Key)" "a",
}, "r",
"n": { "d"
"type": "string", ],
"name": "NLC Code", "properties": {
"description": "Station NLC Code" "c": {
}, "type": "string",
"mc": { "name": "CRS Code",
"type": "number", "description": "Station CRS (Primary Key)"
"name": "Minimum Connection Time", },
"description": "The minimum connection time at this station" "n": {
}, "type": "string",
"a": { "name": "NLC Code",
"type": "object", "description": "Station NLC Code"
"name": "Address", },
"description": "The address of the station", "mc": {
"properties": { "type": "number",
"l1": { "name": "Minimum Connection Time",
"type": "string", "description": "The minimum connection time at this station"
"name": "Line 1" },
}, "a": {
"l2": { "type": "string",
"type": "string", "name": "Address",
"name": "Line 2" "description": "The address of the station"
}, },
"l3": { "p": {
"type": "string", "type": "string",
"name": "Line 3" "name": "Postcode",
}, "description": "The public postcode of the station"
"l4": { },
"type": "string", "l": {
"name": "Line 4" "type": "object",
}, "name": "Location",
"l5": { "description": "LatLon of the station",
"type": "string", "required": ["lt", "ln"],
"name": "Line 5" "properties": {
}, "lt": {
"pc": { "type": "number",
"type": "string", "name": "Latitude",
"name": "Postcode" "description": "Stations Latitude"
} },
"ln": {
"type": "number",
"name": "Longitude",
"description": "Stations Longitude"
} }
},
"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"
} }
},
"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",
"payload"
],
"additionalProperties": false "additionalProperties": false
} }

View File

@@ -23,7 +23,7 @@
}, },
"data_kind": { "data_kind": {
"type": "string", "type": "string",
"enum": ["pis", "timetable", "knowledgebase", "PushPort16Schedule", "darwin_ts", "darwin_ref"], "enum": ["pis", "timetable", "kb-stations", "PushPort16Schedule", "darwin_ts", "darwin_ref"],
"description": "The data type contained in the message. Currently supported PIS: PIS Data, Timetable: CIF or VSTP Data, Knowledgebase: Station Data" "description": "The data type contained in the message. Currently supported PIS: PIS Data, Timetable: CIF or VSTP Data, Knowledgebase: Station Data"
}, },
"payload": {} "payload": {}