From 88e6e67b46a1359856095d570ecba5956ae74552 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Tue, 11 Jul 2023 23:36:50 +0300 Subject: [PATCH] Added changes description --- CHANGES/1213.bugfix.rst | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 CHANGES/1213.bugfix.rst 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.