From 25879afe94296eb82b94b523bfa2871b686e035a Mon Sep 17 00:00:00 2001 From: Stijn Caerts Date: Sun, 2 Oct 2022 22:20:21 +0200 Subject: [PATCH] Add 'servers' and 'description' in OpenAPI (#459) Co-authored-by: Jeff Albrecht --- 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 aff21be58..1b48cfa63 100644 --- a/stac_fastapi/api/stac_fastapi/api/app.py +++ b/stac_fastapi/api/stac_fastapi/api/app.py @@ -314,7 +314,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