Browse Source
This PR updates outdated code examples in body tutorial docs that still used Pydantic v1 patterns. Updated to Pydantic v2 syntax including: - Replacing `.dict()` with `.model_dump()` - Maintaining Python 3.10+ union types (`str | None`) This ensures documentation is consistent with current FastAPI + Pydantic v2 behavior.pull/14421/head
3 changed files with 3 additions and 3 deletions
Loading…
Reference in new issue