Skip to content

Commit d3e359b

Browse files
committed
Clarity and correctness
1 parent 128807c commit d3e359b

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

spec/Section 3 -- Type System.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,13 +1707,18 @@ is constructed with the following rules:
17071707
Further, if the input object is a _OneOf Input Object_, the following additional
17081708
rules apply:
17091709

1710-
- Prior to coercion of the input object literal, if the literal does not contain
1711-
exactly one entry, or if the value of this single entry is the {null} literal,
1712-
a _request error_ must be raised.
1713-
1714-
- After coercion a the input object, if the resulting coerced unordered map does
1715-
not contain exactly one entry, or if this single entry has the value {null}, a
1716-
_request error_ must be raised.
1710+
- Prior to the input object input coercion rules above:
1711+
1712+
- If the value of the input object is an input object literal and it does not
1713+
contain exactly one entry, or if the value of this single entry is the
1714+
{null} literal, a _request error_ must be raised.
1715+
- Otherwise, it must be a map supplied by a variable. If the map does not
1716+
contain exactly one entry, or if the value of this single entry is {null}, a
1717+
_request error_ must be raised.
1718+
1719+
- After following the input coercion rules above, if the resulting coerced
1720+
unordered map does not contain exactly one entry, or if this single entry has
1721+
the value {null}, a _request error_ must be raised.
17171722

17181723
Following are examples of input coercion for an input object type with a
17191724
`String` field `a` and a required (non-null) `Int!` field `b`:

0 commit comments

Comments
 (0)