aiogram/CHANGES
Alex Root Junior 98780dfb49
Added model validation to remove UNSET before field validation (#1233)
* Add model validation to remove UNSET before field validation

Updated aiogram/types/base.py to include a model validator which removes any 'UNSET' before field validation. This change was necessary to correctly handle `parse_mode` where 'UNSET' is used as a sentinel value. Without the removal of 'UNSET', it would create issues when passed to model initialization from `Bot.method_name`. 'UNSET' was also added to typing. Tiny documentation fix was made.

* Added changelog
2023-07-30 00:01:23 +03:00
..
.template.rst.jinja2 Update towncrier config 2021-08-03 23:50:10 +03:00
1143.doc.rst Migration guide 2.x -> 3.0 (#1143) 2023-07-29 22:36:12 +03:00
1230.removal.rst Removed the use of the context instance (Bot.get_current) from all placements that were used previously. (#1230) 2023-07-28 22:23:32 +03:00
1232.bugfix.rst Ensure all message types are assigned to the correct bot. (#1232) 2023-07-29 22:59:43 +03:00
1233.bugfix.rst Added model validation to remove UNSET before field validation (#1233) 2023-07-30 00:01:23 +03:00