Files
chat/schema/s2c/join.json
user 065b243def docs: add JSON Schema definitions for all message types (draft 2020-12)
C2S (7): send, join, part, nick, topic, mode, ping
S2C (12): message, dm, notice, join, part, quit, nick, topic, mode, system, error, pong
S2S (6): relay, link, unlink, sync, ping, pong

Each message type has its own schema file under schema/{c2s,s2c,s2s}/.
schema/README.md provides an index of all types with descriptions.
2026-02-10 10:25:42 -08:00

30 lines
669 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://git.eeqj.de/sneak/chat/schema/s2c/join.json",
"title": "S2C Join",
"description": "A user joined a channel.",
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"type": {
"const": "join"
},
"ts": {
"type": "string",
"format": "date-time"
},
"nick": {
"type": "string",
"description": "The nick that joined."
},
"channel": {
"type": "string",
"description": "The channel joined.",
"pattern": "^#[a-zA-Z0-9_-]+$"
}
},
"required": ["id", "type", "ts", "nick", "channel"]
}