Skip to content

Commit

Permalink
Merge branch 'main' into GET-search-intersection-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhealy1 authored Apr 22, 2024
2 parents ea89648 + dddd710 commit 29a41ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixed

* Remove the str2list converter from intersection queries via BaseSearchGetRequest ([#668](https://github.com/stac-utils/stac-fastapi/pull/668))
* Apply datetime converter in ItemCollection endpoint model ([#667](https://github.com/stac-utils/stac-fastapi/pull/667))

## [2.5.2] - 2024-04-19

Expand Down
3 changes: 2 additions & 1 deletion stac_fastapi/api/stac_fastapi/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
BaseSearchGetRequest,
BaseSearchPostRequest,
str2bbox,
str_to_interval,
)


Expand Down Expand Up @@ -127,7 +128,7 @@ class ItemCollectionUri(CollectionUri):

limit: int = attr.ib(default=10)
bbox: Optional[BBox] = attr.ib(default=None, converter=str2bbox)
datetime: Optional[DateTimeType] = attr.ib(default=None)
datetime: Optional[DateTimeType] = attr.ib(default=None, converter=str_to_interval)


class POSTTokenPagination(BaseModel):
Expand Down

0 comments on commit 29a41ce

Please sign in to comment.