Technology
pydantic-deep
Deep merge Pydantic models and dictionaries recursively while maintaining strict schema validation.
Standard Pydantic models lack native deep merge capabilities for nested structures. This library fills that gap by recursively updating nested BaseModels and dictionaries. It ensures partial updates to complex schemas remain type-safe and validated. Use it to handle API PATCH requests or layered configuration files where shallow updates would overwrite entire objects. It supports Python 3.8+ and integrates directly with Pydantic v1 and v2 workflows.
1 project
·
1 city
Related technologies
Recent Talks & Demos
Showing 1-1 of 1