handoff-protocol / contracts /log-append-receipt.schema.json
LucioLiu's picture
Initial release - mirrors github.com/LucioLiu/handoff-protocol
f24bcdf verified
Raw
History Blame Contribute Delete
664 Bytes
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/LucioLiu/handoff-protocol/contracts/log-append-receipt.schema.json",
"title": "Atomic log append receipt",
"type": "object",
"additionalProperties": false,
"required": [
"exit_code",
"event_id",
"timestamp",
"append_position",
"provider"
],
"properties": {
"exit_code": {"const": 0},
"event_id": {"type": "string", "minLength": 1},
"timestamp": {"type": "string", "format": "date-time"},
"append_position": {"type": "integer", "minimum": 0},
"provider": {"type": "object", "minProperties": 1}
}
}