Commit ec17fa6
authored
fix: handle by_alias=None for Pydantic 2.10+ compatibility (#619)
Pydantic 2.10+ (pydantic-core 2.27+) rejects None for the by_alias
parameter in model_dump(), raising TypeError. Coerce None to False
to match the v1 fallback path behavior.
Co-authored-by: viniciusdsmello <viniciusdsmello@users.noreply.github.com>1 parent 08eddb5 commit ec17fa6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments