Skip to content

Commit

Permalink
Add validation rule for argument uniqueness
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron committed Aug 7, 2015
1 parent 65d46bb commit c5b3b64
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/Section 5 -- Validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5b3b64

Please sign in to comment.