From e960f1ce1653cc5951cb9695ce1fba256b98a507 Mon Sep 17 00:00:00 2001 From: Benoit Orihuela Date: Wed, 18 Nov 2020 17:31:10 +0100 Subject: [PATCH] feat: add definitions for unitCode --- schema/Entity.json | 3 +++ schema/common.json | 3 +++ 2 files changed, 6 insertions(+) diff --git a/schema/Entity.json b/schema/Entity.json index f04c32c..5f1736c 100644 --- a/schema/Entity.json +++ b/schema/Entity.json @@ -28,6 +28,9 @@ "object" ] }, + "unitCode": { + "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/unitCode" + }, "observedAt": { "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt" }, diff --git a/schema/common.json b/schema/common.json index 29ea54c..d88375f 100644 --- a/schema/common.json +++ b/schema/common.json @@ -14,6 +14,9 @@ "type": "string", "pattern": "^((\\d|[a-zA-Z]|_)+(:(\\d|[a-zA-Z]|_)+)?(#\\d+)?)$|^(@context)$" }, + "unitCode": { + "type": "string" + }, "observedAt": { "type": "string", "format": "date-time" -- GitLab