Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.2k
Properly validate parameterized mappings#11658
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 commentedMar 31, 2025 • 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: | a071a50 |
Status: | ✅ Deploy successful! |
Preview URL: | https://36bb88bf.pydantic-docs.pages.dev |
Branch Preview URL: | https://mapping-regression.pydantic-docs.pages.dev |
codspeed-hqbot commentedMar 31, 2025 • 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#11658 willnot alter performanceComparing Summary
|
github-actionsbot commentedMar 31, 2025 • 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.
LGTM with one comment
tests/test_types.py Outdated
Note - we still don't do a good job of handling subclasses, as we convert the input to a dict | ||
via the MappingValidator annotation's schema. |
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.
Is this comment now out of date?
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.
Good catch -- well theMappingValidator
is not a thing anymore but I think the comment is still relevant.
34095c7
intomainUh oh!
There was an error while loading.Please reload this page.
Change Summary
Fixes#11650.
Regression in#11247, the logic was somehow tweaked when moved to the
GenerateSchema
class, so it was restored to how it was before.Related issue number
Checklist