Notification.json 945 Bytes
Newer Older
canterafonsj's avatar
canterafonsj committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  "$schema": "http://json-schema.org/schema#",
  "id": "https://uri.etsi.org/ngsi-ld/schema/Notification.json",
  "title": "NGSI-LD Notification",
  "description": "NGSI-LD Notification",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uri"
    },
    "type": {
      "type": "string",
      "const": "Notification"
    },
canterafonsj's avatar
canterafonsj committed
16
17
18
19
    "subscriptionId": {
      "type": "string",
      "format": "uri"
    },
canterafonsj's avatar
canterafonsj committed
20
21
22
23
24
25
26
27
28
29
    "@context": {
      "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
    },
    "notifiedAt": {
      "type": "string",
      "format": "date-time"
    },
    "data": {
      "type": "array",
      "items": {
30
        "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/Entity"
canterafonsj's avatar
canterafonsj committed
31
32
33
34
35
36
37
38
39
40
41
      },
      "minItems": 1
    }
  },
  "required": [
    "id",
    "type",
    "notifiedAt",
    "data"
  ]
}