Commit 73cc783
fix: use validation_alias instead of alias for data_type fields in EntityInfo
ty v0.0.33 improved pydantic model analysis and now correctly infers
__init__ signatures. With alias=, the __init__ only accepts the alias
parameter name (e.g. dataType), even when populate_by_name=True is set.
Switching to validation_alias= keeps dataType accepted for JSON parsing
while exposing the Python field name data_type as the __init__ parameter,
which satisfies both ty's type checking and the existing tests.
Agent-Logs-Url: https://github.com/liudger/python-bsblan/sessions/42f382e1-fe63-4644-8d29-ae0689a1c1b0
Co-authored-by: liudger <4112111+liudger@users.noreply.github.com>1 parent ede9c2f commit 73cc783
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
| 334 | + | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| |||
0 commit comments