Repository navigation
Commit 81010aa
test(downgrader): cover mixed literal union edge cases, note boolean-ish flags with coercing validators (#136)
Three cases close the Stryker gaps in the enum merge of a literal union: a described branch stops the same-type merge, typeless multi-value enums stay as written, and a lone described typed enum stays as written.
The "Validators that coerce" README line now says a query flag of "true", "false", "0", "1" or a boolean, as GrowthBook writes, rejects ?flag=true, since "true" matches the string and, coerced, the boolean of the oneOf.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018XRYDXpPjZLwYYLKH7PZWd1 parent b10f7fa commit 81010aa
2 files changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1224 | 1224 | | |
1225 | 1225 | | |
1226 | 1226 | | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1227 | 1249 | | |
1228 | 1250 | | |
1229 | 1251 | | |
| |||
0 commit comments