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.
19 lines
478 B
JSON
19 lines
478 B
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://git.eeqj.de/sneak/chat/schema/c2s/nick.json",
|
|
"title": "C2S Nick",
|
|
"description": "Change the user's nickname.",
|
|
"type": "object",
|
|
"properties": {
|
|
"nick": {
|
|
"type": "string",
|
|
"description": "Desired new nickname.",
|
|
"minLength": 1,
|
|
"maxLength": 32,
|
|
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
|
|
}
|
|
},
|
|
"required": ["nick"],
|
|
"additionalProperties": false
|
|
}
|