Commit 70e029b
committed
feat(schema): clarify error for types that cannot have a default value
The unknown/variant/geometry/geography branch reported "{type} fields must
default to null", which is ambiguous for the unknown type (reads as
"unrecognized fields") and awkwardly interpolates a parametrized type
(e.g. geometry(srid:...)) into a categorical sentence. Reword to
"type {} cannot have a default value" and align with the sibling
"Invalid {} value for {}: ..." messages.1 parent 2efca23 commit 70e029b
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
0 commit comments