2 Commits

Author SHA1 Message Date
a2308198e9 Add nearest stations schema
All checks were successful
Generate and Release Protos / release (push) Successful in 32s
2026-03-30 20:50:03 +01:00
8c2ed1ad8f Ensure TIPLOC is an optional entry. 'stations' will not include a TIPLOC as there is no 1-to-1 mapping.
All checks were successful
Generate and Release Protos / release (push) Successful in 25s
2026-03-25 09:36:47 +00:00
2 changed files with 20 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
"title": "LocationFilterObject",
"description": "Location filter API Response. Provides a location's data for filtering on the frontend",
"type": "object",
"required": ["n", "t", "s"],
"required": ["n", "s"],
"additionalProperties": false,
"properties": {
"n": {

View File

@@ -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
}