From b24c27131a9c2a3c787fb2c23fc4b435f9cf4815 Mon Sep 17 00:00:00 2001 From: Shane Krueger Date: Fri, 26 Jan 2024 12:16:27 -0500 Subject: [PATCH 1/2] State that additional properties are ignored --- spec/GraphQLOverHTTP.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/GraphQLOverHTTP.md b/spec/GraphQLOverHTTP.md index e1b40e7e..feded57b 100644 --- a/spec/GraphQLOverHTTP.md +++ b/spec/GraphQLOverHTTP.md @@ -376,7 +376,8 @@ When encoded in JSON, a _GraphQL-over-HTTP request_ is encoded as a JSON object All other property names are reserved for future expansion; if implementors need to add additional information to a request they MUST do so via other means, the RECOMMENDED approach is to add an implementor-scoped entry to the {extensions} -object. +object. Servers receiving a request with additional properties MUST ignore the +additional properties when processing the request. ### Example From 00079d8ccee2e133bc8b75210eb081140d095c8a Mon Sep 17 00:00:00 2001 From: Shane Krueger Date: Mon, 29 Jan 2024 09:45:19 -0500 Subject: [PATCH 2/2] Update spec/GraphQLOverHTTP.md Co-authored-by: Benjie --- spec/GraphQLOverHTTP.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/GraphQLOverHTTP.md b/spec/GraphQLOverHTTP.md index feded57b..3faa37b4 100644 --- a/spec/GraphQLOverHTTP.md +++ b/spec/GraphQLOverHTTP.md @@ -376,8 +376,10 @@ When encoded in JSON, a _GraphQL-over-HTTP request_ is encoded as a JSON object All other property names are reserved for future expansion; if implementors need to add additional information to a request they MUST do so via other means, the RECOMMENDED approach is to add an implementor-scoped entry to the {extensions} -object. Servers receiving a request with additional properties MUST ignore the -additional properties when processing the request. +object. + +Servers receiving a request with additional properties MUST ignore properties +they do not understand. ### Example