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
2 lines
172 B
Markdown
2 lines
172 B
Markdown
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 |