Happy New Year with FastAPI 0.89.0! 🚀

You can now declare the response model using the function return type annotation. ✨

It will be used for data validation, automatic docs, data filtering (security), etc. 🤓

Read more in the docs: https://fastapi.tiangolo.com/tutorial/response-model/

Thanks to Yurii Karabas for the contribution! 🚀

Response Model - Return Type - FastAPI

FastAPI framework, high performance, easy to learn, fast to code, ready for production

@FastAPI Very helpful change. I alway found it frustrating to declare this twice. 👍