From e52b9ff9b651c8228c96d5371c1efba003f79c9a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 24 Mar 2023 17:50:15 +0000 Subject: [PATCH] rpc: Be more explicit about ignoring JSON fields --- doc/dev/notes/rpc-meta-draft.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/dev/notes/rpc-meta-draft.md b/doc/dev/notes/rpc-meta-draft.md index 4572136fa..4c190011e 100644 --- a/doc/dev/notes/rpc-meta-draft.md +++ b/doc/dev/notes/rpc-meta-draft.md @@ -153,10 +153,13 @@ and the names and types of the parameters `params`. and the expected contents of the successful `result`. Unrecognized parameters must be ignored. +Indeed, any unrecognized fields in a JSON object must be ignored, +both by the server and by the client. Invalid JSON and parameter values that do not match their specified types -will be treated as an error. +must be treated as an error, +both by the server and by the client. ## Data Streams