Skip to content

Commit 802e469

Browse files
committed
fix openapi for vector
1 parent f8fdb58 commit 802e469

File tree

1 file changed

+4
-0
lines changed
  • runtimes/eoapi/vector/eoapi/vector

1 file changed

+4
-0
lines changed

runtimes/eoapi/vector/eoapi/vector/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from tipg.errors import DEFAULT_STATUS_CODES, add_exception_handlers
1616
from tipg.factory import Endpoints as TiPgEndpoints
1717
from tipg.middleware import CacheControlMiddleware, CatalogUpdateMiddleware
18+
from tipg.openapi import _update_openapi
1819
from tipg.settings import DatabaseSettings
1920

2021
from . import __version__ as eoapi_vector_version
@@ -75,6 +76,9 @@ async def lifespan(app: FastAPI):
7576
},
7677
)
7778

79+
# Fix OpenAPI response header for OGC Common compatibility
80+
_update_openapi(app)
81+
7882
# add eoapi_vector templates and tipg templates
7983
jinja2_env = jinja2.Environment(
8084
loader=jinja2.ChoiceLoader(

0 commit comments

Comments
 (0)