-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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 Performance ReportMerging #11658 will not alter performanceComparing Summary
|
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 the MappingValidator
is not a thing anymore but I think the comment is still relevant.
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