Loading schema/Notification.json 0 → 100644 +37 −0 Original line number Diff line number Diff line { "$schema": "http://json-schema.org/schema#", "id": "https://uri.etsi.org/ngsi-ld/schema/Notification.json", "title": "NGSI-LD Notification", "description": "NGSI-LD Notification", "type": "object", "properties": { "id": { "type": "string", "format": "uri" }, "type": { "type": "string", "const": "Notification" }, "@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/Entity.json#" }, "minItems": 1 } }, "required": [ "id", "type", "notifiedAt", "data" ] } scripts/validate_schema.sh +2 −0 Original line number Diff line number Diff line Loading @@ -7,3 +7,5 @@ ajv compile -s $SCHEMAS/Subscription.json -r $SCHEMAS/common.json -r $SCHEMAS/ge ajv compile -s $SCHEMAS/EntityTemporal.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/Entity.json 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 Loading
schema/Notification.json 0 → 100644 +37 −0 Original line number Diff line number Diff line { "$schema": "http://json-schema.org/schema#", "id": "https://uri.etsi.org/ngsi-ld/schema/Notification.json", "title": "NGSI-LD Notification", "description": "NGSI-LD Notification", "type": "object", "properties": { "id": { "type": "string", "format": "uri" }, "type": { "type": "string", "const": "Notification" }, "@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/Entity.json#" }, "minItems": 1 } }, "required": [ "id", "type", "notifiedAt", "data" ] }
scripts/validate_schema.sh +2 −0 Original line number Diff line number Diff line Loading @@ -7,3 +7,5 @@ ajv compile -s $SCHEMAS/Subscription.json -r $SCHEMAS/common.json -r $SCHEMAS/ge ajv compile -s $SCHEMAS/EntityTemporal.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/Entity.json 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