Loading schema/Subscription.json +160 −164 Original line number Original line Diff line number Diff line Loading @@ -6,11 +6,6 @@ "definitions": { "definitions": { "NotificationParams": { "NotificationParams": { "type": "object", "type": "object", "properties": { "type": "object", "required": [ "endpoint" ], "properties": { "properties": { "attributes": { "attributes": { "type": "array", "type": "array", Loading @@ -23,7 +18,7 @@ "type": "string" "type": "string" }, }, "endpoint": { "endpoint": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/EndPoint" "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/Endpoint" }, }, "status": { "status": { "type": "string", "type": "string", Loading @@ -48,9 +43,14 @@ "type": "string", "type": "string", "format": "date-time" "format": "date-time" } } } }, }, "EntityInfo": {}, "required": [ "endpoint" ] }, "EntityInfo": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/EntityInfo" }, "GeoQuery": { "GeoQuery": { "type": "object", "type": "object", "required": [ "required": [ Loading Loading @@ -121,6 +121,9 @@ "@context": { "@context": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext" "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext" }, }, "entities": { "$ref": "#/definitions/EntityInfo" }, "name": { "name": { "type": "string", "type": "string", "minLength": 1 "minLength": 1 Loading @@ -129,8 +132,8 @@ "type": "string", "type": "string", "minLength": 1 "minLength": 1 }, }, "entities": { "notification": { "$ref": "#/definitions/EntityInfo" "$ref": "#/definitions/NotificationParams" }, }, "watchedAttributes": { "watchedAttributes": { "type": "array", "type": "array", Loading @@ -144,12 +147,6 @@ "type": "number", "type": "number", "minimum": 0 "minimum": 0 }, }, "geoQ": { "$ref": "#/definitions/GeoQuery" }, "notification": { "$ref": "#/definitions/NotificationParams" }, "expires": { "expires": { "type": "string", "type": "string", "format": "date-time" "format": "date-time" Loading Loading @@ -181,4 +178,3 @@ "type" "type" ] ] } } } schema/common.json +37 −0 Original line number Original line Diff line number Diff line Loading @@ -61,6 +61,43 @@ ] ] } } } } }, "EntityInfo": { "anyOf": [ { "type": "object", "required": [ "id" ], "properties": { "id": { "type": "string" } } }, { "type": "object", "required": [ "idPattern" ], "properties": { "idPattern": { "type": "string" } } }, { "type": "object", "required": [ "type" ], "properties": { "type": { "type": "string" } } } ] } } } } } } Loading
schema/Subscription.json +160 −164 Original line number Original line Diff line number Diff line Loading @@ -6,11 +6,6 @@ "definitions": { "definitions": { "NotificationParams": { "NotificationParams": { "type": "object", "type": "object", "properties": { "type": "object", "required": [ "endpoint" ], "properties": { "properties": { "attributes": { "attributes": { "type": "array", "type": "array", Loading @@ -23,7 +18,7 @@ "type": "string" "type": "string" }, }, "endpoint": { "endpoint": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/EndPoint" "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/Endpoint" }, }, "status": { "status": { "type": "string", "type": "string", Loading @@ -48,9 +43,14 @@ "type": "string", "type": "string", "format": "date-time" "format": "date-time" } } } }, }, "EntityInfo": {}, "required": [ "endpoint" ] }, "EntityInfo": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/EntityInfo" }, "GeoQuery": { "GeoQuery": { "type": "object", "type": "object", "required": [ "required": [ Loading Loading @@ -121,6 +121,9 @@ "@context": { "@context": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext" "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext" }, }, "entities": { "$ref": "#/definitions/EntityInfo" }, "name": { "name": { "type": "string", "type": "string", "minLength": 1 "minLength": 1 Loading @@ -129,8 +132,8 @@ "type": "string", "type": "string", "minLength": 1 "minLength": 1 }, }, "entities": { "notification": { "$ref": "#/definitions/EntityInfo" "$ref": "#/definitions/NotificationParams" }, }, "watchedAttributes": { "watchedAttributes": { "type": "array", "type": "array", Loading @@ -144,12 +147,6 @@ "type": "number", "type": "number", "minimum": 0 "minimum": 0 }, }, "geoQ": { "$ref": "#/definitions/GeoQuery" }, "notification": { "$ref": "#/definitions/NotificationParams" }, "expires": { "expires": { "type": "string", "type": "string", "format": "date-time" "format": "date-time" Loading Loading @@ -181,4 +178,3 @@ "type" "type" ] ] } } }
schema/common.json +37 −0 Original line number Original line Diff line number Diff line Loading @@ -61,6 +61,43 @@ ] ] } } } } }, "EntityInfo": { "anyOf": [ { "type": "object", "required": [ "id" ], "properties": { "id": { "type": "string" } } }, { "type": "object", "required": [ "idPattern" ], "properties": { "idPattern": { "type": "string" } } }, { "type": "object", "required": [ "type" ], "properties": { "type": { "type": "string" } } } ] } } } } } }