Add schema for OW Data
This commit is contained in:
66
schemas/data-ingress/darwin-data/darwin-ow.json
Normal file
66
schemas/data-ingress/darwin-data/darwin-ow.json
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"$id": "https://schema.owlboard.info/data-ingress/darwin/OW.schema.json",
|
||||
"$schema": "https://json-schema.org/draft-07/schema#",
|
||||
"title": "DarwinOwData",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"i",
|
||||
"d"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"i": {
|
||||
"type": "string",
|
||||
"name": "ID",
|
||||
"description": "Unique ID of the incident message"
|
||||
},
|
||||
"c": {
|
||||
"type": "string",
|
||||
"name": "Category",
|
||||
"description": "Category of the incident message"
|
||||
},
|
||||
"s": {
|
||||
"type": "integer",
|
||||
"name": "Severity",
|
||||
"description": "The severity of the incident"
|
||||
},
|
||||
"l": {
|
||||
"type": "array",
|
||||
"name": "locations",
|
||||
"description": "CRS Locations at which the message applies",
|
||||
"additionalItems": false,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"name": "CRS",
|
||||
"description": "CRS Location where this message applies"
|
||||
}
|
||||
},
|
||||
"d": {
|
||||
"type": "boolean",
|
||||
"name": "Delete",
|
||||
"description": "If true, the message is to be deleted"
|
||||
},
|
||||
"m": {
|
||||
"type": "object",
|
||||
"name": "Message",
|
||||
"description": "The message properties",
|
||||
"properties": {
|
||||
"l": {
|
||||
"type": "string",
|
||||
"name": "href",
|
||||
"description": "URL where further information can be found"
|
||||
},
|
||||
"lt": {
|
||||
"type": "string",
|
||||
"name": "href-text",
|
||||
"description": "Text that should be displayed as part of the href"
|
||||
},
|
||||
"m": {
|
||||
"type": "string",
|
||||
"name": "Message text",
|
||||
"description": "The text to be displayed"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user