Skip to content

Commit

Permalink
Clarify 'Values of Correct Type' rule does not apply to variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Oct 17, 2024
1 parent 7073e3a commit df483ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/Section 5 -- Validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -1303,14 +1303,16 @@ fragment resourceFragment on Resource {

**Formal Specification**

- For each input Value {value} in the document:
- For each literal input Value {value} in the document:
- Let {type} be the type expected in the position {value} is found.
- {value} must be coercible to {type}.

**Explanatory Text**

Literal values must be compatible with the type expected in the position they
are found as per the coercion rules defined in the Type System chapter.
are found as per the coercion rules defined in the Type System chapter. Variable
values are handled by the rule
[All Variable Usages Are Allows](#sec-All-Variable-Usages-Are-Allowed).

The type expected in a position includes the type defined by the argument a
value is provided for, the type defined by an input object field a value is
Expand Down

0 comments on commit df483ec

Please sign in to comment.