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

`to_jsonable_python` only seems to apply `exclude_none` for pydantic models, presumbly for `dataclass.dataclass` or `dict` types it is just returning `asdict` or the supplied value for the top level # Expected...

bug

I'm not sure about this, it would need to have minimal or no impact on performance when switched off. Some questions if we are to support it: * Should we...

None Selected Assignee: @lig

unconfirmed

## Change Summary Implement the `timestamp_unit` setting, as discussed in the issue linked below ## Related issue number Implements [pydantic/pydantic/#7940](https://github.com/pydantic/pydantic/issues/7940) ## Checklist * [ ] Unit tests for the changes...

`pydantic` fails to generate a schema for `typing.Never`; I ran into this in a model generic over a `TypeVar` whose bound involved `Never`. ## Error encountered > pydantic.errors.PydanticSchemaGenerationError: Unable to...

unconfirmed

## Change Summary Updated computed field serialization to use the serialization function directly (if one exists) instead of always looking up a model attribute. ## Related issue number fix #657...

ready for review

Hi! First of all, thanks for all the hard work put into this awesome library. I'm in the process of migrating a service heavily reliant on pydantic from v1 to...

performance

In theory we could have a `MultiHostUrl`, but with host optional. Example from a postgresql dsn: `postgresql://derp@/databasename?host=/var/run/postgresql` See https://github.com/pydantic/pydantic/issues/3900

bug
good first issue

They're in the schema but there are no tests and if you look at the source it's grabbing attributes, which won't work with TypedDict. We should do the same thing...

enhancement

Based on https://github.com/marshallpierce/rust-base64/issues/105 I imagine our current use of the base64 crate could annoy some people.