2019-07-20 12:45:37 +00:00
|
|
|
{
|
|
|
|
"id": "http://api.osmocom.org/json-schema/cbc.schema.json#",
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
|
|
"description": "OsmoCBC schema",
|
|
|
|
"type": "object",
|
|
|
|
"definitions": {
|
|
|
|
"category": {
|
|
|
|
"enum": [ "normal", "high_priority", "background" ]
|
|
|
|
},
|
|
|
|
"repetition_period": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 1,
|
|
|
|
"maximum": 4095
|
|
|
|
},
|
|
|
|
"channel_indicator": {
|
|
|
|
"enum": [ "basic", "extended" ]
|
|
|
|
},
|
|
|
|
"warning_period_sec": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0,
|
|
|
|
"maximum": 3600
|
|
|
|
},
|
|
|
|
"number_of_broadcasts": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0,
|
|
|
|
"maximum": 65535
|
|
|
|
},
|
|
|
|
"scope_plmn": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"scope": {
|
|
|
|
"oneOf": [
|
|
|
|
{ "$ref": "#/definitions/scope_plmn" }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"cbc_message": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2019-08-05 19:41:19 +00:00
|
|
|
"cbe_name": { "type": "string" },
|
2019-07-20 12:45:37 +00:00
|
|
|
"category": { "$ref": "#/definitions/category" },
|
2021-01-01 23:27:32 +00:00
|
|
|
"repetition_period": { "$ref": "#/definitions/repetition_period" },
|
2019-07-20 12:45:37 +00:00
|
|
|
"num_of_bcast": { "$ref": "#/definitions/number_of_broadcasts" },
|
|
|
|
"scope": { "$ref": "#/definitions/scope" },
|
|
|
|
"warning_period_sec": { "$ref": "#/definitions/warning_period_sec" },
|
2021-02-20 17:07:37 +00:00
|
|
|
"smscb_message": { "$ref": "smscb.schema.json#definitions/smscb_message" }
|
2019-07-20 12:45:37 +00:00
|
|
|
},
|
|
|
|
"required": [ "scope", "smscb" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|