From ff6f3434215d98f05fe8fb8a69fba605a943163a Mon Sep 17 00:00:00 2001 From: bauermar Date: Tue, 15 Jan 2019 09:52:25 +0100 Subject: [PATCH] Update ContextSourceRegistration.json, requiring at least one of entities, properties or relationships --- .../ContextSourceRegistration.json | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/schema/registrations/ContextSourceRegistration.json b/schema/registrations/ContextSourceRegistration.json index 74ff4e7..75ee7bf 100644 --- a/schema/registrations/ContextSourceRegistration.json +++ b/schema/registrations/ContextSourceRegistration.json @@ -6,8 +6,10 @@ "definitions": { "RegistrationInfo": { "type": "object", - "required": [ - "entities" + "anyOf": [ + {"required": ["entities"]}, + {"required": ["properties"]}, + {"required": ["relationships"]} ], "properties": { "entities": { @@ -64,15 +66,20 @@ "$ref": "#/definitions/RegistrationInfo" } }, - "timestamp": { - "type": "array", - "minItems": 1, - "items": { - "$ref": "#/definitions/TimeInterval" - } + "observationInterval": { + "$ref": "#/definitions/TimeInterval" + }, + "managementInterval": { + "$ref": "#/definitions/TimeInterval" }, "location": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#" + }, + "observationSpace": { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#" + }, + "operationSpace": { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#" }, "expires": { "type": "string", @@ -139,4 +146,4 @@ "$ref": "#/definitions/ContextSourceRegistration" } ] -} \ No newline at end of file +} -- GitLab