redis-om-python icon indicating copy to clipboard operation
redis-om-python copied to clipboard

[Enhancement] Support Pydantic v2

Open XChikuX opened this issue 1 year ago • 3 comments

image

Pydantic v2 comes with several performance and safety benefits due to being compiled in Rust with python bindings.

I'd love to see the models: HashModel, JsonModel, EmbeddedJsonModel all use the new and improved pydantic.

There maybe a small migration workflow, which the pydantic team is building a tool for.

XChikuX avatar Jun 19 '23 00:06 XChikuX

take a look at https://docs.pydantic.dev/latest/migration/ also take a look at this tool that will automatically upgrade some of the changes for you: https://github.com/pydantic/bump-pydantic

bonastreyair avatar Jul 03 '23 07:07 bonastreyair

So far, commit #533 does not successfully support Pydantic v2. Keeping this open.

XChikuX avatar Jul 14 '23 05:07 XChikuX

Also waiting for this to be supported.

pr0ton11 avatar Jul 15 '23 08:07 pr0ton11