Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5eb6f623be | |||
| d8acf84b44 |
@@ -1,6 +1,6 @@
|
||||
# backend-data-contracts
|
||||
|
||||
This repository is the single source of truth for all schema definitions used across the Owlboard backend communication and storage services. Language specific types are generated here and published to the Gitea package repository linked to the repo.
|
||||
This repository is the single source of truth for all schemata definitions used across the Owlboard backend communication and storage services. Language specific types are generated here and published to the Gitea package repository linked to the repo.
|
||||
|
||||
## Directory Structure
|
||||
|
||||
|
||||
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