From c5b3b649f9d3ca30e0f7da94b6c16de4cd779915 Mon Sep 17 00:00:00 2001 From: Lee Byron Date: Fri, 7 Aug 2015 12:40:52 -0700 Subject: [PATCH] Add validation rule for argument uniqueness --- spec/Section 5 -- Validation.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spec/Section 5 -- Validation.md b/spec/Section 5 -- Validation.md index 29b2b4389..1b2093496 100644 --- a/spec/Section 5 -- Validation.md +++ b/spec/Section 5 -- Validation.md @@ -454,6 +454,19 @@ fragment multipleArgsReverseOrder on Arguments { } ``` +### Argument Uniqueness + +Fields and directives treat arguments as a mapping of argument name to value. +More than one argument with the same name in an argument set is ambiguous +and invalid. + +** Formal Specification ** + + * For each {argument} in the Document. + * Let {argumentName} be the Name of {argument}. + * Let {arguments} be all Arguments named {argumentName} in the Argument Set which contains {argument}. + * {arguments} must be the set containing only {argument}. + ### Argument Values Type Correctness #### Compatible Values