From 86150548f820ffe7f239ca12e2333a109367b734 Mon Sep 17 00:00:00 2001 From: Jose Manuel Cantera Date: Thu, 22 Nov 2018 09:36:29 +0100 Subject: [PATCH] Closer --- examples/EntityTemporalList-example.json | 32 +++++++++++++++++++ .../temporal/temporal-entities-spec.json | 16 +++++++--- .../temporal/temporal-entity-by-id-spec.json | 2 +- 3 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 examples/EntityTemporalList-example.json diff --git a/examples/EntityTemporalList-example.json b/examples/EntityTemporalList-example.json new file mode 100644 index 0000000..c0ab14a --- /dev/null +++ b/examples/EntityTemporalList-example.json @@ -0,0 +1,32 @@ +[{ + "id": "urn:ngsi-ld:Vehicle:B9211", + "type": "Vehicle", + "brandName": [ + { + "type": "Property", + "value": "Volvo" + } + ], + "speed": [ + { + "type": "Property", + "value": 120, + "observedAt": "2018-08-01T12:03:00Z" + }, + { + "type": "Property", + "value": 80, + "observedAt": "2018-08-01T12:05:00Z" + }, + { + "type": "Property", + "value": 100, + "observedAt": "2018-08-01T12:07:00Z" + } + ], + "@context": [ + "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/coreContext/ngsi-ld-core-context.json", + "http://example.org/ngsi-ld/vehicle.jsonld" + ] +} +] diff --git a/spec/updated/temporal/temporal-entities-spec.json b/spec/updated/temporal/temporal-entities-spec.json index 847f4a7..0205a8b 100644 --- a/spec/updated/temporal/temporal-entities-spec.json +++ b/spec/updated/temporal/temporal-entities-spec.json @@ -51,7 +51,7 @@ "required": false, "schema": { "type": "integer", - "minValue": 1 + "minimum": 1 } }, "options": { @@ -61,7 +61,10 @@ "required": false, "schema": { "type": "string", - "enum": ["temporalValues", "sysAttrs"] + "enum": [ + "temporalValues", + "sysAttrs" + ] } } } @@ -130,7 +133,7 @@ "content": { "application/json;application/ld+json": { "schema": { - "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/EntityTemporalList.json#/definitions/EntityTemporalList" + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/temporal/EntityTemporalList.json#/definitions/EntityTemporalList" }, "examples": { "simple": { @@ -160,7 +163,12 @@ "content": { "application/json;application/ld+json": { "schema": { - "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/EntityTemporal.json#/definitions/EntityTemporal" + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/temporal/EntityTemporal.json#/definitions/EntityTemporal" + }, + "examples": { + "simple": { + "externalValue": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/examples/EntityTemporal-example_C5.5.3.json" + } } } } diff --git a/spec/updated/temporal/temporal-entity-by-id-spec.json b/spec/updated/temporal/temporal-entity-by-id-spec.json index cd03a97..af3dd53 100644 --- a/spec/updated/temporal/temporal-entity-by-id-spec.json +++ b/spec/updated/temporal/temporal-entity-by-id-spec.json @@ -35,7 +35,7 @@ }, "examples": { "simple": { - "externalValue": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/examples/EntityTemporal-example.json" + "externalValue": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/examples/EntityTemporal-example_C5.5.3.json" } } } -- GitLab