Skip to content

Commit

Permalink
Update docs/migration/fastapi.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Janek Nouvertné <provinzkraut@posteo.de>
  • Loading branch information
euri10 and provinzkraut authored Feb 6, 2025
1 parent e2d720b commit 47f1037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/migration/fastapi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ The way dependencies parameters are passed differs between FastAPI and Litestar,
Post json
~~~~~~~~~
In FastAPI, you pass the JSON object directly as a parameter to the endpoint, you are forced to use pydantic. In Litestar, you use the `data` keyword argument and can pass whatever library supported.
In FastAPI, you pass the JSON object directly as a parameter to the endpoint, which will then be validated by Pydantic. In Litestar, you use the `data` keyword argument. The data will be parsed and validated by the associated modelling library.

.. tab-set::

Expand Down

0 comments on commit 47f1037

Please sign in to comment.