Commit 462d79c
committed
BUG: handle list-shaped response data in _model_dump_backcompat
The helper assumed `response["data"]` was always a dict of a single resource
(as in GET metadata), but search responses shape it as a list of resources.
Normalize to iterate resources uniformly and collect data_sources from all
of them before stripping.1 parent 9a71f62 commit 462d79c
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2826 | 2826 | | |
2827 | 2827 | | |
2828 | 2828 | | |
2829 | | - | |
2830 | | - | |
2831 | | - | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
2832 | 2836 | | |
2833 | | - | |
| 2837 | + | |
2834 | 2838 | | |
2835 | | - | |
| 2839 | + | |
2836 | 2840 | | |
0 commit comments