mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
f11b3ae313
* feat: avoid reconstructing models used as fields of another model on validation closes #265 closes #1837 * docs: add section to change config * change default value to avoid breaking change * refactor: only suggest custom BaseModel approach
172 B
172 B
Add Config.copy_on_model_validation flag. When set to False, pydantic will keep models used as fields
untouched on validation instead of reconstructing (copying) them