Commit 35f5ded
authored
Add test coverage: don't make
After merging #1118, I realized that there's an alternate implementation
that would pass the test added in that PR but would be wrong: we could
always set the `id` field of any object type to be non-nullable. We only
want to do so on indexed types.
This adds a test confirming that `id: ID` is left as nullable in on a
non-indexed type.id: ID non-nullable on non-indexed types. (#1122)1 parent bd68e85 commit 35f5ded
1 file changed
Lines changed: 22 additions & 1 deletion
File tree
- elasticgraph-schema_definition/spec/unit/elastic_graph/schema_definition
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1140 | 1140 | | |
1141 | 1141 | | |
1142 | 1142 | | |
1143 | | - | |
| 1143 | + | |
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
| |||
1163 | 1163 | | |
1164 | 1164 | | |
1165 | 1165 | | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1166 | 1187 | | |
1167 | 1188 | | |
1168 | 1189 | | |
| |||
0 commit comments