Commit 083f0f7
fix: deduplicate toCamelCase and guard importJson item shape
- Export toCamelCase from render-token.ts and import it in
render-msw-file.ts instead of maintaining a second copy
- Guard each mock entry in applyScenario with typeof m?.key === 'string'
so malformed importJson payloads (nulls, bare numbers, etc.) skip
silently instead of throwing a TypeError
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5894270 commit 083f0f7
3 files changed
Lines changed: 3 additions & 9 deletions
File tree
- apps/devtools-panel/src/app
- tools/openapi-resource-gen/src/generators/api-resource
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 2 | + | |
10 | 3 | | |
11 | 4 | | |
12 | 5 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments