tiangolo / fastapi

FastAPI framework, high performance, easy to learn, fast to code, ready for production
https://fastapi.tiangolo.com/
MIT License
73.78k stars 6.22k forks source link

Update body.md with Python 3.10 union type example #11415

Open rangzen opened 3 months ago

rangzen commented 3 months ago

Small update for the union note because the default example is from the non-default displayed version.

tiangolo commented 3 months ago

📝 Docs preview for commit b0759c463f912237824b422252f1e79fff5bb472 at: https://bfd4257d.fastapitiangolo.pages.dev

rangzen commented 3 months ago

Looks good, see https://bfd4257d.fastapitiangolo.pages.dev/tutorial/body/#request-body-path-query-parameters