Commit 3d223c5e authored by canterafonsj's avatar canterafonsj

Getting even closer

parent b2d625ae
......@@ -4,18 +4,6 @@
"title": "NGSI-LD Entity",
"description": "NGSI-LD Entity",
"definitions": {
"observedAt": {
"type": "string",
"format": "date-time"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"modifiedAt": {
"type": "string",
"format": "date-time"
},
"datasetId": {
"type": "string",
"format": "uri"
......@@ -35,13 +23,13 @@
"type": "any"
},
"observedAt": {
"$ref": "#/definitions/observedAt"
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt"
},
"createdAt": {
"$ref": "#/definitions/createdAt"
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
},
"modifiedAt": {
"$ref": "#/definitions/modifiedAt"
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
},
"datasetId": {
"$ref": "#/definitions/datasetId"
......@@ -77,13 +65,13 @@
"format": "uri"
},
"observedAt": {
"$ref": "#/definitions/observedAt"
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt"
},
"createdAt": {
"$ref": "#/definitions/createdAt"
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
},
"modifiedAt": {
"$ref": "#/definitions/modifiedAt"
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
},
"datasetId": {
"$ref": "#/definitions/datasetId"
......@@ -117,11 +105,14 @@
"value": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#"
},
"observedAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt"
},
"createdAt": {
"$ref": "#/definitions/createdAt"
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
},
"modifiedAt": {
"$ref": "#/definitions/modifiedAt"
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
},
"datasetId": {
"$ref": "#/definitions/datasetId"
......@@ -154,7 +145,8 @@
},
"type": {
"type": "string",
"description": "NGSI Entity type"
"description": "NGSI Entity type",
"minLength": 1
},
"@context": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
......@@ -169,10 +161,10 @@
"$ref": "#/definitions/GeoProperty"
},
"createdAt": {
"$ref": "#/definitions/createdAt"
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
},
"modifiedAt": {
"$ref": "#/definitions/modifiedAt"
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
}
},
"required": [
......
......@@ -174,6 +174,12 @@
"type": "string"
}
},
"createdAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
},
"modifiedAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
},
"required": [
"id",
"type"
......
......@@ -4,6 +4,18 @@
"title": "NGSI-LD Common Definitions",
"description": "NGSI-LD Common",
"definitions": {
"observedAt": {
"type": "string",
"format": "date-time"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"modifiedAt": {
"type": "string",
"format": "date-time"
},
"LdContext": {
"anyOf": [
{
......@@ -30,19 +42,6 @@
}
]
},
"Dates": {
"type": "object",
"properties": {
"createdAt": {
"type": "string",
"format": "date-time"
},
"modifiedAt": {
"type": "string",
"format": "date-time"
}
}
},
"Endpoint": {
"type": "object",
"required": [
......@@ -79,4 +78,5 @@
}
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment