diff --git a/.schema/owlboard-pis-schema.json b/.schema/owlboard-pis-schema.json new file mode 100644 index 0000000..0059066 --- /dev/null +++ b/.schema/owlboard-pis-schema.json @@ -0,0 +1,36 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "OwlBoard PIS", + "description": "OwlBoard PIS files, used for ingesting PIS data into OwlBoard", + "type": "object", + "additionalProperties": false, + "properties": { + "pis": { + "type": "array", + "description": "A list of PIS codes to include in the file", + "items": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "The four character PIS code as a string" + }, + "stops": { + "type": "array", + "description": "A list of 3ALPHA/CRS codes represented by the 'code'.", + "items": { + "type": "string" + } + } + }, + "required": [ + "code", + "stops" + ] + } + } + }, + "required": [ + "pis" + ] + } \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9644477 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{"yaml.schemas": { + "/home/fred.boniface/git/owlboard/data/.schema/owlboard-pis-schema.json": [ + "file:///home/fred.boniface/git/owlboard/data/pis/auto-dgp2-2025-01-12_20-48-03.yaml", + "file:///home/fred.boniface/git/owlboard/data/pis/gw.yaml" + ] + }} \ No newline at end of file