{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://buryans.ru/contracts/events/envelope-v1.json", "title": "Buryans CloudEvent envelope v1", "type": "object", "additionalProperties": false, "required": ["specversion", "id", "source", "type", "time", "idempotency_key", "data"], "properties": { "specversion": {"const": "1.0"}, "id": {"type": "string", "minLength": 1, "maxLength": 128}, "source": {"type": "string", "minLength": 1, "maxLength": 256}, "type": {"type": "string", "minLength": 1, "maxLength": 128}, "subject": {"type": "string", "maxLength": 256}, "time": {"type": "string", "format": "date-time"}, "datacontenttype": {"const": "application/json"}, "idempotency_key": {"type": "string", "minLength": 1, "maxLength": 256}, "correlation_id": {"type": "string", "maxLength": 128}, "causation_id": {"type": "string", "maxLength": 128}, "data": {"type": "object"} } }