Commit b701d1e
fix: default is_rich_text and custom_metadata_version to UNSET with __post_init__ injection
Both fields had concrete defaults (False / "v2") that caused omit_defaults=True
to silently drop them when the server sent those exact values, breaking round-trip
fidelity. Changed both to msgspec.UNSET and added a conditional __post_init__ on
AttributeDef.Options that injects the defaults only when absent, so explicit values
from Atlas responses are never clobbered.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 09f35be commit b701d1e
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
| 553 | + | |
554 | 554 | | |
555 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
556 | 562 | | |
557 | 563 | | |
558 | 564 | | |
| |||
0 commit comments