From c077e75f37a039111520aca9db7f088c363df3fc Mon Sep 17 00:00:00 2001 From: Jose Manuel Cantera Date: Mon, 5 Nov 2018 12:56:25 +0100 Subject: [PATCH] Common definitions --- schema/common.json | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 schema/common.json diff --git a/schema/common.json b/schema/common.json new file mode 100644 index 0000000..ece4bc4 --- /dev/null +++ b/schema/common.json @@ -0,0 +1,46 @@ +{ + "$schema": "http://json-schema.org/schema#", + "id": "https://uri.etsi.org/ngsi-ld/schema/Entity.json", + "title": "NGSI-LD Entity", + "description": "NGSI-LD Entity", + "definitions": { + "LdContext": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "string", + "format": "uri" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string", + "format": "uri" + }, + { + "type": "object" + } + ] + } + } + ] + }, + "Dates": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time" + }, + "modifiedAt": { + "type": "string", + "format": "date-time" + } + } + } + } +} -- GitLab