{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "contract/ingest/event.schema.json", "allOf": [ { "$ref": "contract/ingest/common.schema.json" }, { "type": "object", "properties": { "type": { "const": "event" }, "payload": { "type": "object", "required": ["name"], "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "description": "Event identifier, e.g. device.overheat" }, "severity": { "type": "string", "enum": ["debug", "info", "warn", "error", "fatal"] }, "message": { "type": "string" }, "data": { "type": "object", "additionalProperties": true } } } } } ] }