From a2308198e9424c315a8fe910ec8912f286ae72d5 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Mon, 30 Mar 2026 20:50:03 +0100 Subject: [PATCH] Add nearest stations schema --- schemas/api/stations/nearest-stations.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 schemas/api/stations/nearest-stations.json diff --git a/schemas/api/stations/nearest-stations.json b/schemas/api/stations/nearest-stations.json new file mode 100644 index 0000000..32588a9 --- /dev/null +++ b/schemas/api/stations/nearest-stations.json @@ -0,0 +1,19 @@ +{ + "$id": "https://schema.owlboard.info/api/stations/nearestStations.schema.json", + "$schema": "https://json-schema.org/draft-07/schema#", + "title": "StationsNearestStations", + "description": "Nearest Stations API Resonse. Returned as an Array of the object. Response array will be sorted - nearest first", + "type": "object", + "properties": { + "c": { + "type": "string", + "name": "CRS" + }, + "n": { + "type": "string", + "name": "Station Name" + } + }, + "required": ["c", "n"], + "additionalProperties": false +} \ No newline at end of file