Commit 0c9e93d
Test the Mapping deserializer's reserved schema-key skip
The deserializer constructs a SchemaName from each schemas entry's key to
validate it and skips the entry when that throws, so one dead entry never
sinks the whole page's mapping. A reserved key ("page"/"subject") reaches this
branch through a normal save, not only an import: the save-time validator
enforces only propertyNames minLength and never constructs a SchemaName. That
skip was untested — deleting it would silently null the entire page's mapping
with no red test. Cover it with a reserved-key entry between two valid
siblings, mirroring the missing-subject.class skip test.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent ad28a42 commit 0c9e93d
1 file changed
Lines changed: 21 additions & 0 deletions
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
71 | 92 | | |
72 | 93 | | |
73 | 94 | | |
| |||
0 commit comments