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) ------------------ 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