Commit ff6f3434 authored by bauermar's avatar bauermar

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 @@
"definitions": {
"RegistrationInfo": {
"type": "object",
"required": [
"entities"
"anyOf": [
{"required": ["entities"]},
{"required": ["properties"]},
{"required": ["relationships"]}
],
"properties": {
"entities": {
......@@ -64,15 +66,20 @@
"$ref": "#/definitions/RegistrationInfo"
}
},
"timestamp": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/TimeInterval"
}
"observationInterval": {
"$ref": "#/definitions/TimeInterval"
},
"managementInterval": {
"$ref": "#/definitions/TimeInterval"
},
"location": {
"$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": {
"type": "string",
......@@ -139,4 +146,4 @@
"$ref": "#/definitions/ContextSourceRegistration"
}
]
}
\ No newline at end of file
}
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