Commit 0be4339
fix: remove null assignment to fix strictNullChecks compile error in ObjectSerializer
baseNameToAttr was conditionally set to null when keepAllInAdditional is false,
which fails under strict: true. Always initialize to {} and skip population via
the existing keepAllInAdditional guard in the loop body.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e4344f4 commit 0be4339
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- packages
- datadog-api-client-v1/models
- datadog-api-client-v2/models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3343 | 3343 | | |
3344 | 3344 | | |
3345 | 3345 | | |
3346 | | - | |
| 3346 | + | |
3347 | 3347 | | |
3348 | 3348 | | |
3349 | 3349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14359 | 14359 | | |
14360 | 14360 | | |
14361 | 14361 | | |
14362 | | - | |
| 14362 | + | |
14363 | 14363 | | |
14364 | 14364 | | |
14365 | 14365 | | |
| |||
0 commit comments