Reject non-object requests and arguments before stdio dispatch

This commit is contained in:
omar committed 2026-11-27 21:43:48 +03:00
1 parent 0d7edae8cf
commit 0e7d0b9bf4
6 files changed
+45 -12

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ Request (stdin):
(high-rate, never answered; an `id` there is ignored).
- `cmd`: one of the commands in §4. Unknown `cmd` → `unknown_command`.
- `args`: object; may be omitted when a command takes no arguments.
Unknown argument keys are rejected (`bad_request`).
Explicit `null`, positional arrays and unknown argument keys are rejected (`bad_request`).
Response (stdout), exactly one per request with `id`: