Initial schema push - covers PIS only
This commit is contained in:
41
schemas/data-ingress/pis-object.json
Normal file
41
schemas/data-ingress/pis-object.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"$id": "https://schema.owlboard.info/api/pis-object.schema.json",
|
||||
"$schema": "https://json-schema.org/draft-07/schema#",
|
||||
"title": "PisObjects",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string",
|
||||
"description": "PIS Code - Code that is entered in to the PIS system"
|
||||
},
|
||||
"toc": {
|
||||
"type": "string",
|
||||
"minLength": 2,
|
||||
"maxLength": 2,
|
||||
"pattern": "^[a-zA-Z]+$",
|
||||
"description": "Two letter TOC Code"
|
||||
},
|
||||
"crsStops": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 3,
|
||||
"maxLength": 3,
|
||||
"pattern": "^[a-zA-Z]+$"
|
||||
},
|
||||
"description": "List of 3ALPHA/CRS Codes"
|
||||
},
|
||||
"tiplocStops": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 4,
|
||||
"maxLength": 7,
|
||||
"pattern": "^[a-zA-Z0-9]+$"
|
||||
},
|
||||
"description": "List of TIPLOC Codes"
|
||||
}
|
||||
},
|
||||
"required": ["code"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user