Add schema for PIS files
Some checks failed
Generate Release / validate_and_release (push) Failing after 3s
Some checks failed
Generate Release / validate_and_release (push) Failing after 3s
This commit is contained in:
parent
429f8c5a63
commit
09859b8b7b
36
.schema/owlboard-pis-schema.json
Normal file
36
.schema/owlboard-pis-schema.json
Normal 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
6
.vscode/settings.json
vendored
Normal 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"
|
||||
]
|
||||
}}
|
Loading…
Reference in New Issue
Block a user