Skip to content

Commit 6fb00f4

Browse files
committed
Add note above variables to Values of Correct Type rule
1 parent e546aac commit 6fb00f4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/Section 5 -- Validation.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,15 @@ fragment resourceFragment on Resource {
13071307
- Let {type} be the type expected in the position {value} is found.
13081308
- {value} must be coercible to {type}.
13091309

1310+
Note: Because all variable usages must be allowed,
1311+
[as specified below separately](#sec-All-Variable-Usages-Are-Allowed), it can be
1312+
assumed that any variables found within input Values are within allowed
1313+
positions. Because variable values are supplied only at runtime, validation of
1314+
the supplied values is deferred to the {CoerceVariableValues()} algorithm
1315+
[as part of execution](#sec-Coercing-Variable-Values). For the purpose of this
1316+
algorithm, it can therefore be assumed that all variables found within input
1317+
Values in a document are coercible.
1318+
13101319
**Explanatory Text**
13111320

13121321
Literal values must be compatible with the type expected in the position they

0 commit comments

Comments
 (0)