Skip to content

run pydantic validation before .update #576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dearkafka opened this issue Oct 31, 2023 · 0 comments · Fixed by #615
Closed

run pydantic validation before .update #576

dearkafka opened this issue Oct 31, 2023 · 0 comments · Fixed by #615

Comments

@dearkafka
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant