Skip to content

Commit 25879af

Browse files
Add 'servers' and 'description' in OpenAPI (#459)
Co-authored-by: Jeff Albrecht <[email protected]>
1 parent d1daa92 commit 25879af

File tree

1 file changed

+5
-1
lines changed
  • stac_fastapi/api/stac_fastapi/api

1 file changed

+5
-1
lines changed

stac_fastapi/api/stac_fastapi/api/app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,11 @@ def customize_openapi(self) -> Optional[Dict[str, Any]]:
314314
return self.app.openapi_schema
315315

316316
openapi_schema = get_openapi(
317-
title=self.title, version=self.api_version, routes=self.app.routes
317+
title=self.title,
318+
version=self.api_version,
319+
description=self.description,
320+
routes=self.app.routes,
321+
servers=self.app.servers,
318322
)
319323

320324
self.app.openapi_schema = openapi_schema

0 commit comments

Comments
 (0)