{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://git.eeqj.de/sneak/chat/schema/s2c/error.json", "title": "S2C Error", "description": "Error message delivered via the message stream.", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "const": "error" }, "ts": { "type": "string", "format": "date-time" }, "code": { "type": "string", "description": "Machine-readable error code.", "examples": ["nick_in_use", "no_such_channel", "not_on_channel", "permission_denied"] }, "content": { "type": "string", "description": "Human-readable error message." }, "channel": { "type": "string", "description": "Related channel, if applicable." } }, "required": ["id", "type", "ts", "code", "content"] }