redis / redis-om-python

Object mapping, and more, for Redis and Python
MIT License
1.06k stars 108 forks source link

run pydantic validation before .update #576

Closed dearkafka closed 2 months ago

dearkafka commented 8 months ago

It would be nice if redis_om would run pydantic validation (to allow things like '@validator') before updating the model (when .update is called) so that it would prevent from using wrong types and making updated data unaccessible from index