Commit 682a03c
authored
fix: modify() preserve unknown top-level schema keys when using pick (#264)
* fix: modify() with pick drops unknown top-level schema keys
pickFields() only copied properties/x-jsf-order/required/allOf/x-jsf-logic,
silently dropping anything else (type, x-rmt-meta, additionalProperties...).
Add a default case so unrecognized keys pass through, matching v0 behavior.
* fix: TS errors from unknown-key pass-through and untyped test assertions1 parent c20265e commit 682a03c
2 files changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | | - | |
359 | | - | |
| 357 | + | |
| 358 | + | |
360 | 359 | | |
361 | 360 | | |
362 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1146 | 1146 | | |
1147 | 1147 | | |
1148 | 1148 | | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1149 | 1164 | | |
1150 | 1165 | | |
1151 | 1166 | | |
| |||
0 commit comments