Skip to content

Commit

Permalink
Add note above variables to Values of Correct Type rule
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Sep 24, 2024
1 parent e546aac commit 6fb00f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/Section 5 -- Validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,15 @@ fragment resourceFragment on Resource {
- Let {type} be the type expected in the position {value} is found.
- {value} must be coercible to {type}.

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

**Explanatory Text**

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

0 comments on commit 6fb00f4

Please sign in to comment.