Skip to content

Commit

Permalink
Add 'servers' and 'description' in OpenAPI (#459)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeff Albrecht <geospatialjeff@gmail.com>
  • Loading branch information
StijnCaerts and geospatial-jeff authored Oct 2, 2022
1 parent d1daa92 commit 25879af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stac_fastapi/api/stac_fastapi/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25879af

Please sign in to comment.