Files
buryan-infra/contracts/events/envelope-v1.json
T
architect 8f8ee4186e
lint / hygiene (pull_request) Failing after 41s
lint / hygiene (push) Failing after 39s
standard / check (pull_request) Successful in 13s
standard / check (push) Successful in 15s
[STAGE2] Event envelope + outbox/inbox idempotency (100→1)
2026-11-27 10:45:37 +03:00

22 lines
963 B
JSON

{
"$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"}
}
}