Skip to content

Conversation

@vkarpov15
Copy link
Collaborator

Fix #15202

Summary

#15202 points out that SchemaUUID._cast() unexpectedly throws a TypeError because _cast() uses this as if it were a method, not a static function. For consistency, this PR moves that logic to a castUUID function, and that castUUID function throws a more helpful error if casting fails due to incorrectly formatted string.

Examples

@vkarpov15 vkarpov15 added this to the 8.9.6 milestone Jan 30, 2025
@vkarpov15 vkarpov15 merged commit 5f0c105 into master Jan 31, 2025
73 of 74 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-15202 branch January 31, 2025 18:53
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.

UUID caster called out of scope, and missing schema path ino.

3 participants