File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
stac_fastapi/api/stac_fastapi/api Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 43
43
from the request body, if present, and falls back to using the path parameter if no ` "collection" ` property is found in the body
44
44
([ #425 ] ( https://github.com/stac-utils/stac-fastapi/pull/425 ) )
45
45
* PGStac Backend Transactions endpoints return added Item/Collection instead of Item/Collection from request ([ #424 ] ( https://github.com/stac-utils/stac-fastapi/pull/424 ) )
46
+ * Application no longer breaks on startup when pagination extension is not included ([ #444 ] ( https://github.com/stac-utils/stac-fastapi/pull/444 ) )
46
47
47
48
## [ 2.3.0]
48
49
Original file line number Diff line number Diff line change @@ -275,11 +275,15 @@ def register_get_item_collection(self):
275
275
Returns:
276
276
None
277
277
"""
278
- get_pagination_model = self .get_extension (self .pagination_extension ).GET
278
+ pagination_extension = self .get_extension (self .pagination_extension )
279
+ if pagination_extension is not None :
280
+ mixins = [pagination_extension .GET ]
281
+ else :
282
+ mixins = None
279
283
request_model = create_request_model (
280
284
"ItemCollectionURI" ,
281
285
base_model = ItemCollectionUri ,
282
- mixins = [ get_pagination_model ] ,
286
+ mixins = mixins ,
283
287
)
284
288
self .router .add_api_route (
285
289
name = "Get ItemCollection" ,
You can’t perform that action at this time.
0 commit comments