ContextSourceNotification.json 1.16 KB
Newer Older
canterafonsj's avatar
canterafonsj committed
{
  "$schema": "http://json-schema.org/schema#",
Stefan Wiedemann's avatar
Stefan Wiedemann committed
  "$id": "http://localhost:8090/schema/registrations/ContextSourceNotification.json",
canterafonsj's avatar
canterafonsj committed
  "title": "NGSI-LD Context Source Notification",
  "description": "NGSI-LD Context Source Notification",
  "type": "object",
  "properties": {
    "id": {
canterafonsj's avatar
canterafonsj committed
      "type": "string",
      "format": "uri"
    },
    "type": {
      "type": "string",
      "const": "ContextSourceNotification"
    },
    "subscriptionId": {
      "type": "string",
      "format": "uri"
    },
    "@context": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
      "$ref": "http://localhost:8090/schema/common.json#/definitions/LdContext"
canterafonsj's avatar
canterafonsj committed
    },
    "notifiedAt": {
      "type": "string",
      "format": "date-time"
    },
    "data": {
      "type": "array",
      "items": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
        "$ref": "http://localhost:8090/schema/registrations/ContextSourceRegistration.json#/definitions/ContextSourceRegistration"
canterafonsj's avatar
canterafonsj committed
      },
      "minItems": 1
    },
    "triggerReason": {
      "type": "string",
      "enum": [
        "newlyMatching",
        "updated",
        "noLongerMatching"
      ]
    }
  },
  "required": [
    "id",
    "type",
    "subscriptionId",
    "notifiedAt",
    "data",
    "triggerReason"
  ]
}