Commit cda579f1 authored by canterafonsj's avatar canterafonsj
Browse files

Subscription

parent 18ffc49c
......@@ -4,7 +4,52 @@
"title": "NGSI-LD Subscription",
"description": "NGSI-LD Subscription",
"definitions": {
"NotificationParams": {},
"NotificationParams": {
"type": "object",
"properties": {
"type": "object",
"required": [
"endpoint"
],
"properties": {
"attributes": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"format": {
"type": "string"
},
"endpoint": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/EndPoint"
},
"status": {
"type": "string",
"enum": [
"ok",
"failed"
]
},
"timesSent": {
"type": "number",
"minimum": 1
},
"lastNotification": {
"type": "string",
"format": "date-time"
},
"lastFailure": {
"type": "string",
"format": "date-time"
},
"lastSuccess": {
"type": "string",
"format": "date-time"
}
}
},
"EntityInfo": {},
"GeoQuery": {
"type": "object",
......@@ -29,17 +74,19 @@
},
{
"type": "string",
"pattern": "near;maxDistance=="
"pattern": "near;(maxDistance==\\d+)|(minDistance==\\d+)$"
}
]
},
"coordinates": {
"oneOf": [{
"oneOf": [
{
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/position",
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/positionArray",
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/lineString",
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/polygon"
}]
}
]
},
"geometry": {
"type": "string",
......@@ -125,6 +172,7 @@
},
"required": [
"id",
"type",
"type"
]
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment