Skip to content

Commit c5b3b64

Browse files
committed
Add validation rule for argument uniqueness
1 parent 65d46bb commit c5b3b64

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

spec/Section 5 -- Validation.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,19 @@ fragment multipleArgsReverseOrder on Arguments {
454454
}
455455
```
456456

457+
### Argument Uniqueness
458+
459+
Fields and directives treat arguments as a mapping of argument name to value.
460+
More than one argument with the same name in an argument set is ambiguous
461+
and invalid.
462+
463+
** Formal Specification **
464+
465+
* For each {argument} in the Document.
466+
* Let {argumentName} be the Name of {argument}.
467+
* Let {arguments} be all Arguments named {argumentName} in the Argument Set which contains {argument}.
468+
* {arguments} must be the set containing only {argument}.
469+
457470
### Argument Values Type Correctness
458471

459472
#### Compatible Values

0 commit comments

Comments
 (0)