BeanieODM / beanie

Asynchronous Python ODM for MongoDB
http://beanie-odm.dev/
Apache License 2.0
2.04k stars 215 forks source link

Replace custom 'hidden=True' field attribute with builtin 'exclude=True' #741

Closed gsakkis closed 12 months ago

gsakkis commented 1 year ago

Replace the custom hidden Pydantic Field attribute with exclude and remove a bunch of code needed to support it.

roman-right commented 1 year ago

Hi, Thank you for the PR! This is a breaking change. Please add a check and a warning log in case the hidden parameter was used.

gsakkis commented 1 year ago

Restored backwards compatibility by transparently converting hidden field to exclude and logging a DeprecationWarning.

roman-right commented 12 months ago

Merged. It will be published tomorrow

roman-right commented 12 months ago

Thank you for the PR!