Skip to content

pydantic model for endpoint args? #2333

Answered by Kludex
jamesbraza asked this question in Q&A
Discussion options

You must be logged in to vote

I am wondering how to do the migration, does Starlette support pydantic model schemas?

No.

Is the intended workflow to go from Starlette request to pydantic model instantiation within the endpoint?

On FastAPI, you should define the body you want in the signature function.

Replies: 1 comment

Comment options

Kludex
Jan 14, 2024
Maintainer Sponsor

You must be logged in to vote
0 replies
Answer selected by Kludex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants