Skip to content

Commit aeb305b

Browse files
committed
pass collections_get_request_model to StacApi
1 parent bf66caf commit aeb305b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

stac_fastapi/pgstac/app.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
TokenPaginationExtension,
2525
TransactionExtension,
2626
)
27+
from stac_fastapi.extensions.core.collection_search.request import (
28+
BaseCollectionSearchGetRequest,
29+
)
2730
from stac_fastapi.extensions.third_party import BulkTransactionExtension
2831

2932
from stac_fastapi.pgstac.config import Settings
@@ -81,8 +84,11 @@
8184
items_get_request_model = ItemCollectionUri
8285

8386
if any(isinstance(ext, CollectionSearchExtension) for ext in collection_extensions):
84-
collections_get_request_model = create_get_request_model(
85-
extensions + collection_extensions
87+
collections_get_request_model = create_request_model(
88+
model_name="CollectionsGetRequest",
89+
base_model=BaseCollectionSearchGetRequest,
90+
extensions=extensions,
91+
request_type="GET",
8692
)
8793
else:
8894
collections_get_request_model = EmptyRequest

0 commit comments

Comments
 (0)