Commit 02050b8
fix: Add recursive type conversion for nested Mapping objects
- Add _to_builtin_types helper function to recursively convert Mapping-like
and Sequence-like objects to plain Python types
- This fixes CI test failure where nested objects (like address field) were
not being properly converted for genson schema inference
- Genson doesn't handle custom Mapping/Sequence implementations properly,
so we need to convert everything to plain dicts, lists, and primitives
Co-Authored-By: AJ Steers <[email protected]>1 parent 32b512a commit 02050b8
File tree
1 file changed
+28
-2
lines changed- airbyte_cdk/sources/declarative/schema
1 file changed
+28
-2
lines changedLines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
16 | 41 | | |
17 | 42 | | |
18 | 43 | | |
| |||
63 | 88 | | |
64 | 89 | | |
65 | 90 | | |
66 | | - | |
67 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
68 | 94 | | |
69 | 95 | | |
70 | 96 | | |
| |||
0 commit comments