{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://git.eeqj.de/sneak/chat/schema/commands/NICK.json", "title": "NICK", "description": "Change nickname. C2S: request new nick. S2C: notification of nick change. RFC 1459 ยง4.1.2.", "$ref": "../message.json", "properties": { "command": { "const": "NICK" }, "from": { "type": "string", "description": "Old nick (S2C)." }, "body": { "type": "string", "description": "New nick.", "minLength": 1, "maxLength": 32, "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$" } }, "required": ["command", "body"], "examples": [ { "command": "NICK", "from": "oldnick", "body": "newnick" } ] }