First of all, thank you for producing such an awesome project! Working with FastAPI has been an absolute pleasure so far!
Following the the FastAPI example
from fastapi import FastAPI
tags_metadata = [
{
"name": "users",
"description": "Operations with users. The **login** logic is also here.",
},
{
"name": "items",
"description": "Manage items. So _fancy_ they have their own docs.",
"externalDocs": {
"description": "Items external docs",
"url": "https://fastapi.tiangolo.com/",
},
},
]
app = FastAPI(openapi_tags=tags_metadata)
@app.get("/users/", tags=["users"])
async def get_users():
return [{"name": "Harry"}, {"name": "Ron"}]
@app.get("/items/", tags=["items"])
async def get_items():
return [{"name": "wand"}, {"name": "flying broom"}]
/docs and /redoc), the tag descriptions are not visible (e.g. "description": "Operations with users. The **login** logic is also here." is missing).Everyone here, it is now natively supported in FastAPI from version 0.57.0. 馃帀
Could you upgrade your FastAPI version?
Thanks @phy25 will try this tomorrow and close
For reference: If you're using docker you're probably here because of tiangolo/uvicorn-gunicorn-fastapi-docker/issues/53. See that ticket for a temporary solution.
Most helpful comment
Could you upgrade your FastAPI version?