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

Touch up Decimal validator #6327

Merged
merged 7 commits into from Jul 11, 2023
Merged

Touch up Decimal validator #6327

merged 7 commits into from Jul 11, 2023

Conversation

adriangb
Copy link
Member

@adriangb adriangb commented Jun 30, 2023

This improves performance slightly by not always going through Python, but error messages actually get less intelligible.

skip change file check

Selected Reviewer: @dmontagu

This improves performance slightly by not always going through Python, but error messages actually get less intelligle
@cloudflare-pages
Copy link

cloudflare-pages bot commented Jul 8, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5d97970
Status: ✅  Deploy successful!
Preview URL: https://e2e2e764.pydantic-docs2.pages.dev
Branch Preview URL: https://touch-up-decimal.pydantic-docs2.pages.dev

View logs

@adriangb
Copy link
Member Author

please review

Copy link
Contributor

@dmontagu dmontagu left a comment

Choose a reason for hiding this comment

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

Seems fine to me if there's a good performance improvement but we really need to fix these error messages. In particular, I think there should be a way to have a union schema where you don't get an error for every possible case, among other things, as is it seems painfully verbose. But that's not a problem introduced by this PR

@adriangb
Copy link
Member Author

Agreed!

@adriangb adriangb merged commit 5baac76 into main Jul 11, 2023
49 checks passed
@adriangb adriangb deleted the touch-up-decimal branch July 11, 2023 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants