Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.2k
SupportHashable
for json validation#10324
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
cloudflare-workers-and-pagesbot commentedSep 5, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Deploying pydantic-docs with |
Latest commit: | 418ca00 |
Status: | ✅ Deploy successful! |
Preview URL: | https://71485969.pydantic-docs.pages.dev |
Branch Preview URL: | https://hashable-json.pydantic-docs.pages.dev |
codspeed-hqbot commentedSep 5, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
CodSpeed Performance ReportMerging#10324 willnot alter performanceComparing Summary
|
github-actionsbot commentedSep 5, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
dmontagu left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I think you should add a test for the cases that fail validation from JSON (presumably nested JSON objects/arrays would?). I vaguely recall seeing a version where it would convert arrays to tuples and objects to frozendict; I think we should keep the behavior like this and not do that, but I think it's worth adding a test with a note indicating that it was added to document the current behavior.
Other than that, LGTM
Uh oh!
There was an error while loading.Please reload this page.
0fdf06f
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Alternative to#10005 based on#10005 (comment)
Fix#9567
Thanks@kc0506 for the test inspo!