Add schema for PIS files
Some checks failed
Generate Release / validate_and_release (push) Failing after 3s

This commit is contained in:
Fred Boniface 2025-01-12 21:34:14 +00:00
parent 429f8c5a63
commit 09859b8b7b
2 changed files with 42 additions and 0 deletions

View File

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

6
.vscode/settings.json vendored Normal file
View File

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