Skip to content
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

kick off type validation before update #615

Merged
merged 2 commits into from
May 7, 2024

Conversation

slorello89
Copy link
Member

Solves #576 - as it stands now, if you call update and you have garbage data in the update dict you can break your redis index. This causes the new pydantic v2 type adapter to validate the model prior to sending the update across.

@slorello89 slorello89 requested review from bsbodden and guyroyse May 7, 2024 11:34
@slorello89 slorello89 linked an issue May 7, 2024 that may be closed by this pull request
@slorello89 slorello89 added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels May 7, 2024
Copy link

@bsbodden bsbodden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@slorello89 slorello89 merged commit 75fa446 into main May 7, 2024
3 checks passed
@slorello89 slorello89 deleted the bugfix/validate-before-update branch May 7, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

run pydantic validation before .update
2 participants