Commit 3346805
committed
fix: relax AttributeDef.default_value and index_type_es_fields to Any
Atlas API responses can return non-string scalars for these fields:
- default_value: native bool/int (e.g. false, 0) where str was expected
- index_type_es_fields values: int (e.g. {"ignore_above": 256}) where str was expected
msgspec strict=False does not coerce int/bool -> str, causing
ValidationError on live typedef responses. Widening to Any lets the
decoder accept whatever the API returns without pre-decode traversal.1 parent 95b1974 commit 3346805
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
630 | | - | |
| 630 | + | |
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| |||
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
677 | | - | |
| 677 | + | |
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
| |||
0 commit comments