diff --git a/CHANGES/1213.bugfix.rst b/CHANGES/1213.bugfix.rst new file mode 100644 index 00000000..a9787889 --- /dev/null +++ b/CHANGES/1213.bugfix.rst @@ -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.