BeanieODM / beanie

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

Update deprecated call of general_plain_validator_function (#676) #897

Closed dslemusp closed 2 months ago

dslemusp commented 3 months ago

https://docs.pydantic.dev/latest/api/pydantic_core_schema/#pydantic_core.core_schema.with_info_plain_validator_function

hasB4K commented 3 months ago

I would love this to merged! Most of my pytests warning on a project of mine are actually caused by this.

@roman-right, FYI, the deprecation was done by this PR: https://github.com/pydantic/pydantic-core/pull/980 And I think this PR can be merged like this since others projects just did exactly what @dslemusp is doing in this PR (a simple function replacement, see: https://github.com/vitalik/django-ninja/pull/922)

roman-right commented 3 months ago

Hi @hasB4K ,

Thank you for following up. I'll pick it up at the beginning of the next week.

roman-right commented 2 months ago

It looks good. I plan to have it merged at this weekend

roman-right commented 2 months ago

Merged. It will be published today