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

fix(schema): improve reason for UUID cast error, currently a TypeError #15215

Merged
merged 1 commit into from
Jan 31, 2025

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.
2 participants