ContextSourceNotification.json 1.25 KB
Newer Older
canterafonsj's avatar
canterafonsj committed
1
2
{
  "$schema": "http://json-schema.org/schema#",
Stefan Wiedemann's avatar
Stefan Wiedemann committed
3
  "$id": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/registrations/ContextSourceNotification.json",
canterafonsj's avatar
canterafonsj committed
4
5
6
7
  "title": "NGSI-LD Context Source Notification",
  "description": "NGSI-LD Context Source Notification",
  "type": "object",
  "properties": {
8
    "id": {
canterafonsj's avatar
canterafonsj committed
9
10
11
12
13
14
15
16
17
18
19
20
      "type": "string",
      "format": "uri"
    },
    "type": {
      "type": "string",
      "const": "ContextSourceNotification"
    },
    "subscriptionId": {
      "type": "string",
      "format": "uri"
    },
    "@context": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
21
      "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
canterafonsj's avatar
canterafonsj committed
22
23
24
25
26
27
28
29
    },
    "notifiedAt": {
      "type": "string",
      "format": "date-time"
    },
    "data": {
      "type": "array",
      "items": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
30
        "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/registrations/ContextSourceRegistration.json#/definitions/ContextSourceRegistration"
canterafonsj's avatar
canterafonsj committed
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
      },
      "minItems": 1
    },
    "triggerReason": {
      "type": "string",
      "enum": [
        "newlyMatching",
        "updated",
        "noLongerMatching"
      ]
    }
  },
  "required": [
    "id",
    "type",
    "subscriptionId",
    "notifiedAt",
    "data",
    "triggerReason"
  ]
}