Loading schema/ContextSourceNotification.json 0 → 100644 +51 −0 Changes for schema/ContextSourceNotification.json: 51 added lines, 0 removed lines. Original line number Diff line number Diff line { "$schema": "http://json-schema.org/schema#", "id": "https://uri.etsi.org/ngsi-ld/schema/ContextSourceNotification.json", "title": "NGSI-LD Context Source Notification", "description": "NGSI-LD Context Source Notification", "type": "object", "properties": { "id": { "type": "string", "format": "uri" }, "type": { "type": "string", "const": "ContextSourceNotification" }, "subscriptionId": { "type": "string", "format": "uri" }, "@context": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext" }, "notifiedAt": { "type": "string", "format": "date-time" }, "data": { "type": "array", "items": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/ContextSourceRegistration.json#" }, "minItems": 1 }, "triggerReason": { "type": "string", "enum": [ "newlyMatching", "updated", "noLongerMatching" ] } }, "required": [ "id", "type", "subscriptionId", "notifiedAt", "data", "triggerReason" ] } schema/ContextSourceRegistration.json +1 −1 Changes for schema/ContextSourceRegistration.json: 1 added line, 1 removed line. Original line number Diff line number Diff line { "$schema": "http://json-schema.org/schema#", "id": "https://uri.etsi.org/ngsi-ld/schema/ContextSourceRegistration.json", "id": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/ContextSourceRegistration.json", "title": "NGSI-LD Context Source Registration", "description": "NGSI-LD Context Source Registration", "definitions": { Loading schema/Notification.json +4 −0 Changes for schema/Notification.json: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -13,6 +13,10 @@ "type": "string", "const": "Notification" }, "subscriptionId": { "type": "string", "format": "uri" }, "@context": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext" }, Loading scripts/validate_schema.sh +3 −0 Changes for scripts/validate_schema.sh: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -9,3 +9,6 @@ ajv compile -s $SCHEMAS/EntityTemporal.json -r $SCHEMAS/common.json -r $SCHEMAS/ ajv compile -s $SCHEMAS/ContextSourceRegistration.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json ajv compile -s $SCHEMAS/Notification.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/Entity.json ajv compile -s $SCHEMAS/ContextSourceNotification.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/ContextSourceRegistration.json Loading
schema/ContextSourceNotification.json 0 → 100644 +51 −0 Changes for schema/ContextSourceNotification.json: 51 added lines, 0 removed lines. Original line number Diff line number Diff line { "$schema": "http://json-schema.org/schema#", "id": "https://uri.etsi.org/ngsi-ld/schema/ContextSourceNotification.json", "title": "NGSI-LD Context Source Notification", "description": "NGSI-LD Context Source Notification", "type": "object", "properties": { "id": { "type": "string", "format": "uri" }, "type": { "type": "string", "const": "ContextSourceNotification" }, "subscriptionId": { "type": "string", "format": "uri" }, "@context": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext" }, "notifiedAt": { "type": "string", "format": "date-time" }, "data": { "type": "array", "items": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/ContextSourceRegistration.json#" }, "minItems": 1 }, "triggerReason": { "type": "string", "enum": [ "newlyMatching", "updated", "noLongerMatching" ] } }, "required": [ "id", "type", "subscriptionId", "notifiedAt", "data", "triggerReason" ] }
schema/ContextSourceRegistration.json +1 −1 Changes for schema/ContextSourceRegistration.json: 1 added line, 1 removed line. Original line number Diff line number Diff line { "$schema": "http://json-schema.org/schema#", "id": "https://uri.etsi.org/ngsi-ld/schema/ContextSourceRegistration.json", "id": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/ContextSourceRegistration.json", "title": "NGSI-LD Context Source Registration", "description": "NGSI-LD Context Source Registration", "definitions": { Loading
schema/Notification.json +4 −0 Changes for schema/Notification.json: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -13,6 +13,10 @@ "type": "string", "const": "Notification" }, "subscriptionId": { "type": "string", "format": "uri" }, "@context": { "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext" }, Loading
scripts/validate_schema.sh +3 −0 Changes for scripts/validate_schema.sh: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -9,3 +9,6 @@ ajv compile -s $SCHEMAS/EntityTemporal.json -r $SCHEMAS/common.json -r $SCHEMAS/ ajv compile -s $SCHEMAS/ContextSourceRegistration.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json ajv compile -s $SCHEMAS/Notification.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/Entity.json ajv compile -s $SCHEMAS/ContextSourceNotification.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/ContextSourceRegistration.json