Commit 8d91f8d0 authored by André Costa's avatar André Costa

updated Entity.json with EntityFragment

parent f448943b
Pipeline #5126 passed with stage
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
"const": "GeoProperty" "const": "GeoProperty"
}, },
"value": { "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": { "observedAt": {
"$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt"
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
] ]
} }
}, },
"Entity": { "EntityFragment": {
"type": "object", "type": "object",
"properties": { "properties": {
"@context": { "@context": {
...@@ -171,10 +171,6 @@ ...@@ -171,10 +171,6 @@
"$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt" "$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
} }
}, },
"required": [
"id",
"type"
],
"additionalProperties": { "additionalProperties": {
"anyOf": [ "anyOf": [
{ {
...@@ -191,6 +187,19 @@ ...@@ -191,6 +187,19 @@
"propertyNames": { "propertyNames": {
"$ref": "https://forge.etsi.org/rep/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/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": [ "allOf": [
......
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