Commit ff6f3434 authored by bauermar's avatar bauermar
Browse files

Update ContextSourceRegistration.json, requiring at least one of entities,...

Update ContextSourceRegistration.json, requiring at least one of entities, properties or relationships
parent 47318b13
...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
"definitions": { "definitions": {
"RegistrationInfo": { "RegistrationInfo": {
"type": "object", "type": "object",
"required": [ "anyOf": [
"entities" {"required": ["entities"]},
{"required": ["properties"]},
{"required": ["relationships"]}
], ],
"properties": { "properties": {
"entities": { "entities": {
...@@ -64,15 +66,20 @@ ...@@ -64,15 +66,20 @@
"$ref": "#/definitions/RegistrationInfo" "$ref": "#/definitions/RegistrationInfo"
} }
}, },
"timestamp": { "observationInterval": {
"type": "array", "$ref": "#/definitions/TimeInterval"
"minItems": 1, },
"items": { "managementInterval": {
"$ref": "#/definitions/TimeInterval" "$ref": "#/definitions/TimeInterval"
}
}, },
"location": { "location": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#" "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#"
},
"observationSpace": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#"
},
"operationSpace": {
"$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#"
}, },
"expires": { "expires": {
"type": "string", "type": "string",
......
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