File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 8585else :
8686 collections_get_request_model = EmptyRequest
8787
88- post_request_model = create_post_request_model (extensions , base_model = PgstacSearch )
88+ post_request_model = create_post_request_model (
89+ extensions + collection_extensions , base_model = PgstacSearch
90+ )
8991get_request_model = create_get_request_model (extensions + collection_extensions )
9092
9193api = StacApi (
9698 items_get_request_model = items_get_request_model ,
9799 search_get_request_model = get_request_model ,
98100 search_post_request_model = post_request_model ,
99- collections_get_request_model = collections_get_request_model ,
100101)
101102app = api .app
102103
Original file line number Diff line number Diff line change 1414from pygeofilter .parsers .cql2_text import parse as parse_cql2_text
1515from pypgstac .hydration import hydrate
1616from stac_fastapi .api .models import JSONResponse
17- from stac_fastapi .extensions .core .collection_search .request import (
18- BaseCollectionSearchPostRequest ,
19- )
2017from stac_fastapi .types .core import AsyncBaseCoreClient , Relations
2118from stac_fastapi .types .errors import InvalidQueryParameter , NotFoundError
2219from stac_fastapi .types .requests import get_base_url
4138class CoreCrudClient (AsyncBaseCoreClient ):
4239 """Client for core endpoints defined by stac."""
4340
44- collections_post_request_model : BaseCollectionSearchPostRequest = attr .ib (
45- default = BaseCollectionSearchPostRequest
46- )
47-
4841 async def all_collections ( # noqa: C901
4942 self ,
5043 request : Request ,
@@ -88,8 +81,7 @@ async def all_collections( # noqa: C901
8881
8982 # Do the request
9083 try :
91- search_request = self .collections_post_request_model (** clean )
92- # search_request = self.post_request_model(**clean)
84+ search_request = self .post_request_model (** clean )
9385 except ValidationError as e :
9486 raise HTTPException (
9587 status_code = 400 , detail = f"Invalid parameters provided { e } "
You can’t perform that action at this time.
0 commit comments