aiogram/aiogram
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
..
client Migration guide 2.x -> 3.0 (#1143) 2023-07-29 22:36:12 +03:00
dispatcher Migration guide 2.x -> 3.0 (#1143) 2023-07-29 22:36:12 +03:00
enums Fixed subtypes and union types generation, new enums added (#1213) 2023-07-11 23:39:54 +03:00
filters 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
fsm #1186 Renamed USER_IN_THREAD to USER_IN_TOPIC 2023-07-01 21:53:34 +03:00
handlers 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
methods Fixed #1217: Fixed union subtypes generation inside arrays of elements 2023-07-17 00:10:47 +03:00
types Added model validation to remove UNSET before field validation (#1233) 2023-07-30 00:01:23 +03:00
utils Migration guide 2.x -> 3.0 (#1143) 2023-07-29 22:36:12 +03:00
webhook Fixed pydantic deprecation warnings 2023-07-04 00:33:57 +03:00
__init__.py #1191 Added possibility to pass custom headers to URLInputFile object (#1197) 2023-06-25 01:39:26 +03:00
__meta__.py Bump dependencies and own version 2023-07-28 21:54:09 +03:00
exceptions.py Migration guide 2.x -> 3.0 (#1143) 2023-07-29 22:36:12 +03:00
loggers.py Bot API 5.7 and some new features (#834) 2022-02-19 01:45:59 +02:00
py.typed Add py.typed 2020-04-11 22:01:53 +03:00