pydantic-core
pydantic-core copied to clipboard
Core validation logic for pydantic written in rust
## Change Summary Adds schema tree traversal which gathers necessary schema nodes and information for schema inlining and discriminator handling. Schema tree traversal is done in a single pass gathering...
First opening this as a draft with just the failing test to demo that we fix it... edit: and now added the fix :) ready to review ## Change Summary...
- added support for URL path joining with optional trailing slashes and multiple arguments. ## Change Summary This PR implements a feature based on pydantic/pydantic#9794 to join URL path into...
## Change Summary Add feature pydantic https://github.com/pydantic/pydantic/issues/9789 ## Related issue number ## Checklist * [ ] Unit tests for the changes exist * [ ] Documentation reflects the changes where...
I am getting quite a few of these `Expected 'int' but got 'float' - serialized value may not be as expected` warnings in the log files. Is there a way...
## Change Summary Built atop #1359 The concern I had with that PR is that the "fix" seemed to be a strange special case, which to me implied that there...
~/MyProject $ pip install pydantic Collecting pydantic Downloading pydantic-2.9.2-py3-none-any.whl.metadata (149 kB) Collecting annotated-types>=0.6.0 (from pydantic) Downloading annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB) Collecting pydantic-core==2.23.4 (from pydantic) Downloading pydantic_core-2.23.4.tar.gz (402 kB) Installing build dependencies...
## Change Summary - Add ValidationError.__new__ - Change from_exception_data to classmethod - remove @final decorators. ## Related issue number https://github.com/pydantic/pydantic/issues/9686 #1380 https://github.com/pydantic/pydantic/issues/8092 ## Checklist * [x] Unit tests for the...
## Change Summary Related to an issue i've opened in pydantic, adds a new config option to customise how pydantic serializes datetimes. We now from this PR have 3 options:...
I am wondering if there is anyway to deal with Python coroutine in `pydantic_core`. I found [the async-await section of PyO3 docs](https://pyo3.rs/v0.22.2/async-await), but the feature seems not enabled for `pydantic_core`....