-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Add additonal OpenAPI metadata parameters to FastAPI
class, shown on the automatic API docs UI
#1812
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1812 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 401 401
Lines 10080 10090 +10
=========================================
+ Hits 10080 10090 +10
Continue to review full report at Codecov.
|
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
📝 Docs preview for commit d977bce at: https://5f22d4d7fd565b6ce626f92a--fastapi.netlify.app |
@Kludex do you mind approving this PR? Thanks! |
📝 Docs preview for commit 01144e1 at: https://5f2ae80bbc92b5c8d4e9f3cc--fastapi.netlify.app |
@tiangolo any ETA for approving this request? In my team we are waiting for this change. |
Thanks @dkreeft! 🚀 I updated it a bit, updated the type annotations, order of arguments, and the docs. Thanks for your contribution! ☕ 🍰 This will be available later today in FastAPI version |
📝 Docs preview for commit 69e3b4b at: https://6102c48f4a903a39c0f03146--fastapi.netlify.app |
FastAPI
class, shown on the automatic API docs UI
… on the automatic API docs UI (fastapi#1812) Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com> Co-authored-by: dkreeft <dkreeft@xccelerated.io> Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
As described in #843 that I needed and stumbled upon. This PR adds extra metadata parameters to the code and docs. So now you can specify contact and license information as well as terms of service.
I tried to keep the naming of the parameters in line with the specification, but unfortunately
license
is a Python built-in, so I went withlicense_info
instead.