Commit 6cfb8973 authored by canterafonsj's avatar canterafonsj
Browse files

Entity now is a definition

parent 0fa762bf
...@@ -20,7 +20,13 @@ ...@@ -20,7 +20,13 @@
"const": "Property" "const": "Property"
}, },
"value": { "value": {
"type": ["string","number","boolean","array","object"] "type": [
"string",
"number",
"boolean",
"array",
"object"
]
}, },
"observedAt": { "observedAt": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt" "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt"
...@@ -135,8 +141,8 @@ ...@@ -135,8 +141,8 @@
} }
] ]
} }
}
}, },
"Entity": {
"type": "object", "type": "object",
"properties": { "properties": {
"id": { "id": {
...@@ -186,4 +192,11 @@ ...@@ -186,4 +192,11 @@
"type": "string", "type": "string",
"pattern": "^((\\d|[a-zA-Z]|_)+(#\\d+)?)$|^(@context)$" "pattern": "^((\\d|[a-zA-Z]|_)+(#\\d+)?)$|^(@context)$"
} }
}
},
"allOf": [
{
"$ref": "#/definitions/Entity"
}
]
} }
\ No newline at end of file
Supports Markdown
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