From 7c034aee6396980742353ee3bf122813ac6a2e75 Mon Sep 17 00:00:00 2001 From: Giuseppe Tropea Date: Wed, 18 Nov 2020 10:42:35 +0100 Subject: [PATCH] =?UTF-8?q?added=20EntityFragment=20from=20devel=20of=20An?= =?UTF-8?q?dr=C3=A9=20Costa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schema/Entity.json | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/schema/Entity.json b/schema/Entity.json index 98dea4c..f04c32c 100644 --- a/schema/Entity.json +++ b/schema/Entity.json @@ -109,7 +109,7 @@ "const": "GeoProperty" }, "value": { - "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json" + "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#" }, "observedAt": { "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt" @@ -142,7 +142,7 @@ ] } }, - "Entity": { + "EntityFragment": { "type": "object", "properties": { "@context": { @@ -171,10 +171,6 @@ "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt" } }, - "required": [ - "id", - "type" - ], "additionalProperties": { "anyOf": [ { @@ -191,6 +187,19 @@ "propertyNames": { "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/PropertyNames" } + }, + "Entity": { + "allOf": [ + { + "required": [ + "id", + "type" + ] + }, + { + "$ref": "#/definitions/EntityFragment" + } + ] } }, "allOf": [ -- GitLab