From 085bcd700772ec0c952e439cf3a96a4192608c5d Mon Sep 17 00:00:00 2001 From: Jonathan Healy Date: Mon, 22 Apr 2024 23:28:09 +0800 Subject: [PATCH] Remove str2list converter from BaseSearchGetRequest (#668) * remove str2list converter * update changelog --- CHANGES.md | 3 ++- stac_fastapi/types/stac_fastapi/types/search.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 1a5fc8494..3c5552602 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,8 +2,9 @@ ## [Unreleased] -### Fixed +### 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 diff --git a/stac_fastapi/types/stac_fastapi/types/search.py b/stac_fastapi/types/stac_fastapi/types/search.py index 0851c1d30..fb847349e 100644 --- a/stac_fastapi/types/stac_fastapi/types/search.py +++ b/stac_fastapi/types/stac_fastapi/types/search.py @@ -108,7 +108,7 @@ class BaseSearchGetRequest(APIRequest): collections: Optional[str] = attr.ib(default=None, converter=str2list) ids: Optional[str] = attr.ib(default=None, converter=str2list) bbox: Optional[BBox] = attr.ib(default=None, converter=str2bbox) - intersects: Optional[str] = attr.ib(default=None, converter=str2list) + intersects: Optional[str] = attr.ib(default=None) datetime: Optional[DateTimeType] = attr.ib(default=None, converter=str_to_interval) limit: Optional[int] = attr.ib(default=10)