mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
Fixed subtypes and union types generation, new enums added (#1213)
* Fixed subtypes and union types generation, new enums added * Added changes description
This commit is contained in:
parent
a7b92bb050
commit
31c11c31e0
115 changed files with 680 additions and 359 deletions
7
CHANGES/1213.bugfix.rst
Normal file
7
CHANGES/1213.bugfix.rst
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
Fixed the serialization error associated with nested subtypes
|
||||
like InputMedia, ChatMember, etc.
|
||||
|
||||
The previously generated code resulted in an invalid schema under pydantic v2,
|
||||
which has stricter type parsing.
|
||||
Hence, subtypes without the specification of all subtype unions were generating
|
||||
an empty object. This has been rectified now.
|
||||
Loading…
Add table
Add a link
Reference in a new issue