From 2ebc15b65e20e5570cdbcedf00f14797d2c3e609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 2 Dec 2025 10:06:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Tweak=20docstring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/applications.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fastapi/applications.py b/fastapi/applications.py index 76b5e146a..02193312b 100644 --- a/fastapi/applications.py +++ b/fastapi/applications.py @@ -303,9 +303,10 @@ class FastAPI(Starlette): If the servers `list` is not provided, or is an empty `list`, the `servers` property in the generated OpenAPI will be: - * a `dict` with a `url` value of application's mounting point + * a `dict` with a `url` value of the application's mounting point (`root_path`) if it's different from `/`. - * otherwise, `servers` property will be omitted from the OpenAPI schema. + * otherwise, the `servers` property will be omitted from the OpenAPI + schema. Each item in the `list` is a `dict` containing: