Skip to content

Commit

Permalink
Use provided GET search basemodel (stac-utils#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
moradology authored Dec 19, 2021
1 parent 256ae3d commit a1e32cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
### Changed

* Refactor to remove hardcoded search request models. Request models are now dynamically created based on the enabled extensions.
([#213](https://github.com/stac-utils/stac-fastapi/pull/213))
([#213](https://github.com/stac-utils/stac-fastapi/pull/213))

### Removed

Expand All @@ -25,11 +25,13 @@

### Added

* Add CQL2 support ([#308](https://github.com/stac-utils/stac-fastapi/pull/308))
* Add ability to override ItemCollectionUri and SearchGetRequest models ([#271](https://github.com/stac-utils/stac-fastapi/pull/271))
* Added `collections` attribute to list of default fields to include, so that we satisfy the STAC API spec, which requires a `collections` attribute to be output when an item is part of a collection ([#276](https://github.com/stac-utils/stac-fastapi/pull/276))

### Changed

* Update pgstac to 0.4.0 ([#308](https://github.com/stac-utils/stac-fastapi/pull/308))
* Update get_item in sqlalchemy backend to allow for querying for items with same ids but in different collections. ([#275](https://github.com/stac-utils/stac-fastapi/pull/275))

## [2.1.1]
Expand Down
2 changes: 1 addition & 1 deletion stac_fastapi/api/stac_fastapi/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def create_get_request_model(
"""Wrap create_request_model to create the GET request model."""
return create_request_model(
"SearchGetRequest",
base_model=BaseSearchGetRequest,
base_model=base_model,
extensions=extensions,
request_type="GET",
)
Expand Down

0 comments on commit a1e32cb

Please sign in to comment.