You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
try_get_anything - converts a 32 hex string to UUID #487
I'd like to +1 this issue. I've just stumbled over the same problem.
To generalize, try_get_anything is IMO too aggressive in it's type guessing/coercion. Just because a string looks remotely like a specific type doesn't mean that the user wants it to be that type.
As a rule, the developer should be able to control deserialization but I can't find any way to do that.
For additional context: I'm indirectly using this package through microsoftgraph/msgraph-sdk-python and ran into the issue when fetching SharePoint list items with fields that contain 32 character hash values.
Activity
ksachdeva commentedon Aug 18, 2025
Hi,
Any update or guidance on this?
This conversion to a string just because it is a 32 hex string to UUID is invalid and caused the schema validation issues later in my app.
Regards
Kapil
mmarseu commentedon Apr 30, 2026
I'd like to +1 this issue. I've just stumbled over the same problem.
To generalize,
try_get_anythingis IMO too aggressive in it's type guessing/coercion. Just because a string looks remotely like a specific type doesn't mean that the user wants it to be that type.As a rule, the developer should be able to control deserialization but I can't find any way to do that.
For additional context: I'm indirectly using this package through microsoftgraph/msgraph-sdk-python and ran into the issue when fetching SharePoint list items with fields that contain 32 character hash values.
fix(json): only convert unambiguous date/datetime/UUID strings in add…