check / check (push) Waiting to run
Each file in schema/ now describes what the HTTP API on next sends and accepts. A numeric reply has its name in command and its number in code. body is always an array of strings. MODE, KICK and JOIN carry their values in body, and TOPIC needs a non-empty body. PING takes no token, and its PONG is the HTTP response. A channel name is limited to 63 characters, and the leading # is optional from a client. PUBKEY.json is deleted, since the server has no such command. The section of schema/README.md that listed the differences is removed, and the sentences it made false are corrected. Model: opus-5-5
16 lines
601 B
JSON
16 lines
601 B
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://sneak.berlin/go/neoirc/schema/commands/PONG.json",
|
|
"title": "PONG",
|
|
"description": "The answer to a PING. The server sends it as the HTTP response to the PING, with only 'command' and 'from'. A client's PONG gets ERR_UNKNOWNCOMMAND (421). RFC 1459 §4.6.3.",
|
|
"$ref": "../message.json",
|
|
"properties": {
|
|
"command": { "const": "PONG" },
|
|
"from": { "type": "string", "description": "The server name." }
|
|
},
|
|
"required": ["command", "from"],
|
|
"examples": [
|
|
{ "command": "PONG", "from": "neoirc" }
|
|
]
|
|
}
|