We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08abf49 commit 59cb12dCopy full SHA for 59cb12d
spec/Section 3 -- Type System.md
@@ -1668,7 +1668,7 @@ Literal Value | Variables | Coerced Value
1668
`$var` | `{ var: { a: "abc" } }` | `{ a: "abc" }`
1669
`{ a: "abc", b: null }` | `{}` | Error: Exactly one key must be specified
1670
`{ b: $var }` | `{ var: null }` | Error: Value for member field {b} must be non-null
1671
-`{ b: 123, c: "xyz" }` | `{}` | Error: Exactly one key must be specified
+`{ b: 123, c: "xyz" }` | `{}` | Error: Unexpected field {c}
1672
`{ a: $a, b: $b }` | `{ a: "abc" }` | Error: Exactly one key must be specified
1673
1674
**Type Validation**
0 commit comments