Commit 15102a9
fix(models): type extended_attributes as list[AttributeSpec] in ScenarioSpec
extended_attributes was typed as list[Any], so pydantic deserialized them
as raw dicts from YAML. This caused sampling_order merge to silently skip
all extended attributes (hasattr(dict, "name") is False). Typing the field
as list[AttributeSpec] ensures pydantic auto-converts dicts on load.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9789eec commit 15102a9
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
354 | 356 | | |
355 | 357 | | |
356 | 358 | | |
357 | | - | |
| 359 | + | |
358 | 360 | | |
359 | 361 | | |
360 | 362 | | |
| |||
0 commit comments