From 1dd240d598328fc0c093ae94986bff6322e2374e Mon Sep 17 00:00:00 2001 From: Stijn Caerts Date: Tue, 20 Sep 2022 10:29:13 +0200 Subject: [PATCH] Add 'servers' and 'description' in OpenAPI --- stac_fastapi/api/stac_fastapi/api/app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stac_fastapi/api/stac_fastapi/api/app.py b/stac_fastapi/api/stac_fastapi/api/app.py index d18844e5c..63291720f 100644 --- a/stac_fastapi/api/stac_fastapi/api/app.py +++ b/stac_fastapi/api/stac_fastapi/api/app.py @@ -334,7 +334,11 @@ def customize_openapi(self) -> Optional[Dict[str, Any]]: return self.app.openapi_schema openapi_schema = get_openapi( - title=self.title, version=self.api_version, routes=self.app.routes + title=self.title, + version=self.api_version, + description=self.description, + routes=self.app.routes, + servers=self.app.servers, ) self.app.openapi_schema = openapi_schema