Skip to content

Commit de87d2f

Browse files
committed
Add a:null example
1 parent 6a6be52 commit de87d2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/Section 3 -- Type System.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,6 +1693,7 @@ input ExampleInputTagged @oneOf {
16931693
| ------------------------ | ----------------------- | --------------------------------------------------- |
16941694
| `{ a: "abc", b: 123 }` | `{}` | Error: Exactly one key must be specified |
16951695
| `{ a: null, b: 123 }` | `{}` | Error: Exactly one key must be specified |
1696+
| `{ a: null }` | `{}` | Error: Value for member field {a} must be non-null |
16961697
| `{ b: 123 }` | `{}` | `{ b: 123 }` |
16971698
| `{ a: $var, b: 123 }` | `{ var: null }` | Error: Exactly one key must be specified |
16981699
| `{ a: $var, b: 123 }` | `{}` | Error: Exactly one key must be specified |

0 commit comments

Comments
 (0)