pydantic-core icon indicating copy to clipboard operation
pydantic-core copied to clipboard

Core validation logic for pydantic written in rust

Results 181 pydantic-core issues
Sort by recently updated
recently updated
newest added

## Change Summary Related to https://github.com/pydantic/jiter/pull/184 By making json object lookup less efficient we should move away from it as much as possible and prefer iteration. We've wanted this anyway...

I think when allowing partial JSON, and parsing from bytes, we shouldn't get errors if the trailing characters are not valid unicode. Example demonstrating misbehavior: ```python from pydantic_core import SchemaValidator,...

`validator-` or `serializer-` is prepended, and the existing ones are deprecated. ## Change Summary Partly fixes https://github.com/pydantic/pydantic/issues/11087. ## Related issue number ## Checklist * [ ] Unit tests for the...

Hi, I am trying to make pydantic-core to work with Chaquopy. I am progressing, but I face an issue I do not understand. Maybe you have some clues on what...

## Change Summary Add fail-fast feature to: - dict - typed-dict - dataclass-arguments - model-fields ## Related issue number #1345 ## Checklist * [x] Unit tests for the changes exist...

ready for review

## Change Summary When validating floats in non-strict mode, this PR adds support for properly handling complex to float coercion by by extracting their real component, this behavior is prohibited...

ready for review

See #1539, and #1240 where `from_json` originally suffered from this issue. Also discussion [here](https://pydantic.slack.com/archives/C04SY6R5H4Z/p1731418149663529).

## Change Summary Validate enum values against other possible forms of expected values, specifically tuples. The problem is actually bigger than what the initial commit solves. Please see my comment....

ready for review

This dates back to when `TypedDictValidator` was used to build fields for models. `extra` is not supported by Python `TypedDict`s so we can remove the logic from here. @sydney-runkle can...

As per #1512, the following validators disable partial support: * [ ] `DataclassArgsValidator` * [ ] `ModelFieldsValidator` * [ ] `TupleValidator` * [ ] `ArgumentsValidator` * [ ] `GeneratorValidator` *...