Commit c162b49
fix: preserve int64 precision for typed fields in keepAllInAdditional mode
When _keepTypedInAdditionalProperties is true, known typed attributes are now
deserialized with their declared type/format before being stored in
additionalProperties. This routes int64 fields through the BigInt conversion
path instead of raw JSON number assignment. Also removes the redundant
instance.additionalProperties initialization guard that was immediately
overwritten.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ddb11e1 commit c162b49
2 files changed
Lines changed: 52 additions & 26 deletions
File tree
- packages
- datadog-api-client-v1/models
- datadog-api-client-v2/models
Lines changed: 26 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3350 | 3350 | | |
3351 | 3351 | | |
3352 | 3352 | | |
3353 | | - | |
3354 | | - | |
3355 | | - | |
3356 | | - | |
3357 | 3353 | | |
3358 | | - | |
3359 | | - | |
| 3354 | + | |
| 3355 | + | |
| 3356 | + | |
| 3357 | + | |
| 3358 | + | |
| 3359 | + | |
| 3360 | + | |
| 3361 | + | |
| 3362 | + | |
| 3363 | + | |
| 3364 | + | |
| 3365 | + | |
| 3366 | + | |
| 3367 | + | |
| 3368 | + | |
| 3369 | + | |
| 3370 | + | |
| 3371 | + | |
| 3372 | + | |
| 3373 | + | |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
3360 | 3380 | | |
3361 | | - | |
3362 | | - | |
3363 | | - | |
3364 | | - | |
3365 | | - | |
3366 | | - | |
3367 | | - | |
3368 | 3381 | | |
3369 | 3382 | | |
3370 | 3383 | | |
| |||
Lines changed: 26 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14366 | 14366 | | |
14367 | 14367 | | |
14368 | 14368 | | |
14369 | | - | |
14370 | | - | |
14371 | | - | |
14372 | | - | |
14373 | 14369 | | |
14374 | | - | |
14375 | | - | |
| 14370 | + | |
| 14371 | + | |
| 14372 | + | |
| 14373 | + | |
| 14374 | + | |
| 14375 | + | |
| 14376 | + | |
| 14377 | + | |
| 14378 | + | |
| 14379 | + | |
| 14380 | + | |
| 14381 | + | |
| 14382 | + | |
| 14383 | + | |
| 14384 | + | |
| 14385 | + | |
| 14386 | + | |
| 14387 | + | |
| 14388 | + | |
| 14389 | + | |
| 14390 | + | |
| 14391 | + | |
| 14392 | + | |
| 14393 | + | |
| 14394 | + | |
| 14395 | + | |
14376 | 14396 | | |
14377 | | - | |
14378 | | - | |
14379 | | - | |
14380 | | - | |
14381 | | - | |
14382 | | - | |
14383 | | - | |
14384 | 14397 | | |
14385 | 14398 | | |
14386 | 14399 | | |
| |||
0 commit comments