Commit cda579f1 authored by canterafonsj's avatar canterafonsj
Browse files

Subscription

parent 18ffc49c
...@@ -4,7 +4,52 @@ ...@@ -4,7 +4,52 @@
"title": "NGSI-LD Subscription", "title": "NGSI-LD Subscription",
"description": "NGSI-LD Subscription", "description": "NGSI-LD Subscription",
"definitions": { "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": {}, "EntityInfo": {},
"GeoQuery": { "GeoQuery": {
"type": "object", "type": "object",
...@@ -29,17 +74,19 @@ ...@@ -29,17 +74,19 @@
}, },
{ {
"type": "string", "type": "string",
"pattern": "near;maxDistance==" "pattern": "near;(maxDistance==\\d+)|(minDistance==\\d+)$"
} }
] ]
}, },
"coordinates": { "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/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/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/lineString",
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/polygon" "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#/definitions/polygon"
}] }
]
}, },
"geometry": { "geometry": {
"type": "string", "type": "string",
...@@ -125,6 +172,7 @@ ...@@ -125,6 +172,7 @@
}, },
"required": [ "required": [
"id", "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