-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Background
Following on the heels of #10055, I'm going to continue with this public weekly plan approach.
The motivation behind tickets like these is to:
- Communicate and coordinate with the community
- Summarize and track weekly developments in
pydantic
- Help me / our team organize and prioritize issues
Last Week's Highlights
- Remove allOf JSON schema workarounds #10029
- Raise a better user error when failing to evaluate a forward reference #10030
- Experimental feature: opt-in fast build #10064
My plans for this week
This week, I'm going to wrap up the union serialization fixes discussed in #9688, and spend the remainder of my development time trying to figure out the best way forward with #10074. Next week, I'll pivot to readying for the v2.9 release 🚀. I'm also looking forward to doing lots of reviewing, both on pydantic
and pydantic-core
as we prep for this release.
I anticipate putting up a docs PR or two as always 📝.
Issues
- Notes on Union Serialization Fixes #9688
- Refactor how we handle parent namespaces for model construction #10074
PRs in progress
- Try each option in union serializer before inference pydantic-core#1398
- Fix float serialization behavior in strict mode pydantic-core#1400
- Fix ip schema serialization logic #10112
- For missing fields, we don't warn on
exclude_
, so don't warn onexclude
pydantic-core#1403 - Fix
ImportString
special cases #10137 - Blacklist default globals to support exotic user code with
__
prefixed annotations #10136 - Remove default module globals from types namespace #10123
- Performance boost: skip caching parent namespaces in most cases #10113
- Adding tagged union serializer 🚀 pydantic-core#1397
- Introduce
exactness
intoDecimal
validation logic pydantic-core#1405
Whenever the above two high prio issues are fixed, I can move to other work in the v2.9 milestone 🚀.
Review Queue
Lots to review this week - will try to front load providing this feedback.
pydantic
- Support complex number #9654
- Allow
WithJsonSchema
to inject$ref
s w/http
orhttps
links #9863 - Fix
Hashable
not working withmodel_validate_json
#10005 - Add initial architeture documentation #10077
- Docs update and warning frozen defined both #10082
- Improve
pyright
tests, refactor model decorators signatures #10092 - Fix
mro
of generic subclass #10100 - fix model_dump json mode serialization issue #10102
- Improve documentation of the
@computed_field
decorator #10103 - Do not compute JSON Schema default when plain serializers are used with
when_used
set to'json-unless-none'
and the default value isNone
#10121
pydantic-core
- Fix float
multiple_of
validation for negative numbers pydantic-core#1373 - Expose wrapped iterator in SerializationIterator pydantic-core#1399
- Fix serialize_as_any with recursive ref pydantic-core#1359
Feedback
I'd love to get some feedback from the community / other contributors here. What else would be helpful for you to see on weekly reports like these?
Other sections I think could be valuable:
- high priority issues
- good first issues