pydantic
https://github.com/pydantic/pydantic
Python
Data validation using Python type hints
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Python not yet supported4 Subscribers
Add a CodeTriage badge to pydantic
Help out
- Issues
- Confusing handling of badly defined `model_validator`
- Custom generic data type
- Returning instance from `@model_validate(mode="before")` raises `model_type` validation error
- Exclude with __all__ fails on Sequence fields
- Creating a TypeAdapter for a nested TypedDict removes model_validator for other TypeAdapters
- Discriminated Unions with callable `Discriminator` fail to create a class dynamically with `Optional` annotation
- `KeyError: '__main__.Model1:95063711754448'`
- An appropriate model cannot be created when using the IntEnum type in Python with values greater than 1<<63.
- Implement deprecated field in json schema
- Generic BaseModel parsing from within a generic class
- Docs
- Python not yet supported