From f75f781d1a095bc205d96bc49d01764a5b86d27d Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Mon, 20 May 2024 22:34:04 +0200 Subject: [PATCH 1/2] optional limit in search query --- stac_pydantic/api/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stac_pydantic/api/search.py b/stac_pydantic/api/search.py index 62d1e73..c68fd60 100644 --- a/stac_pydantic/api/search.py +++ b/stac_pydantic/api/search.py @@ -42,7 +42,7 @@ class Search(BaseModel): bbox: Optional[BBox] = None intersects: Optional[Intersection] = None datetime: Optional[str] = None - limit: int = 10 + limit: Optional[int] = 10 # Private properties to store the parsed datetime values. Not part of the model schema. _start_date: Optional[dt] = None From 9aef470bf40db37b77a4b2ddc64f7df5c864acd8 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Mon, 20 May 2024 22:56:30 +0200 Subject: [PATCH 2/2] update changelog --- CHANGELOG.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index e9868d8..ffb7e10 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -12,6 +12,7 @@ - move datetime validation in `StacCommonMetadata` model definition (#131, @eseglem) - use `StacBaseModel` as base model for `Asset` model (#148, @vincentsarago) - add `license` in `StacCommonMetadata` model (#147, @vincentsarago) +- make `limit` optional in `api.Search` model (#150, @vincentsarago) 3.0.0 (2024-01-25) ------------------