Skip to content

Commit 693a204

Browse files
committed
define collections_get_request_model
1 parent a5c57b5 commit 693a204

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stac_fastapi/pgstac/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@
8181
items_get_request_model = ItemCollectionUri
8282

8383
if any(isinstance(ext, CollectionSearchExtension) for ext in collection_extensions):
84-
collections_get_request_model = CollectionSearchExtension().GET
84+
collections_get_request_model = create_get_request_model(
85+
extensions + collection_extensions
86+
)
8587
else:
8688
collections_get_request_model = EmptyRequest
8789

@@ -98,6 +100,7 @@
98100
items_get_request_model=items_get_request_model,
99101
search_get_request_model=get_request_model,
100102
search_post_request_model=post_request_model,
103+
collections_get_request_model=collections_get_request_model,
101104
)
102105
app = api.app
103106

0 commit comments

Comments
 (0)