Skip to content

Conversation

isabelatkinson
Copy link
Contributor

Fix for the bug report in #467.

where
V: serde::de::Visitor<'de>,
{
if let DeserializerHint::BinarySubtype(expected_st) = hint {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should only validate this when the thing we're deserializing is a binary -- otherwise the hint is irrelevant.

@isabelatkinson isabelatkinson marked this pull request as ready for review April 1, 2024 20:51
@isabelatkinson isabelatkinson requested a review from abr-egn April 1, 2024 20:51
@isabelatkinson isabelatkinson merged commit 0bec43e into mongodb:main Apr 1, 2024
@isabelatkinson isabelatkinson deleted the fix-uuid-deserialization branch December 12, 2024 16:29
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 this pull request may close these issues.

2 participants