Skip to content

Commit 2e41749

Browse files
committed
update label validation rule
1 parent c1f3f65 commit 2e41749

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

spec/Section 5 -- Validation.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,17 +1560,17 @@ mutation {
15601560

15611561
** Formal Specification **
15621562

1563-
- For every {directive} in a document.
1564-
- Let {directiveName} be the name of {directive}.
1565-
- If {directiveName} is "defer" or "stream":
1566-
- For every {argument} in {directive}:
1567-
- Let {argumentName} be the name of {argument}.
1568-
- Let {argumentValue} be the value passed to {argument}.
1569-
- If {argumentName} is "label":
1570-
- {argumentValue} must not be a variable.
1571-
- Let {labels} be all label values passed to defer or stream directive label
1572-
arguments.
1573-
- {labels} must be a set of one.
1563+
- Let {labelValues} be an empty set.
1564+
- For every {directive} in the document:
1565+
- Let {directiveName} be the name of {directive}.
1566+
- If {directiveName} is "defer" or "stream":
1567+
- For every {argument} in {directive}:
1568+
- Let {argumentName} be the name of {argument}.
1569+
- Let {argumentValue} be the value passed to {argument}.
1570+
- If {argumentName} is "label":
1571+
- {argumentValue} must not be a variable.
1572+
- {argumentValue} must not be present in {labelValues}.
1573+
- Append {argumentValue} to {labelValues}.
15741574

15751575
**Explanatory Text**
15761576

0 commit comments

Comments
 (0)