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:
Alex Root Junior 2023-07-11 23:39:54 +03:00 committed by GitHub
parent a7b92bb050
commit 31c11c31e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
115 changed files with 680 additions and 359 deletions

7
CHANGES/1213.bugfix.rst Normal file
View 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.