Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## [Unreleased]

## [5.1.1] - 2025-03-17

### Fixed

- allow bbox with 6 coordinates (3D) in `GET` requests

## [5.1.0] - 2025-03-07

### Added
Expand Down Expand Up @@ -597,7 +603,8 @@ Full changelog: https://stac-utils.github.io/stac-fastapi/migrations/v3.0.0/#cha

* First PyPi release!

[Unreleased]: <https://github.com/stac-utils/stac-fastapi/compare/5.1.0..main>
[Unreleased]: <https://github.com/stac-utils/stac-fastapi/compare/5.1.1..main>
[5.1.1]: <https://github.com/stac-utils/stac-fastapi/compare/5.1.0..5.1.1>
[5.1.0]: <https://github.com/stac-utils/stac-fastapi/compare/5.0.3..5.1.0>
[5.0.3]: <https://github.com/stac-utils/stac-fastapi/compare/5.0.2..5.0.3>
[5.0.2]: <https://github.com/stac-utils/stac-fastapi/compare/5.0.1..5.0.2>
Expand Down
6 changes: 6 additions & 0 deletions stac_fastapi/api/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ def test_create_get_request_model():
assert d.microsecond == 10
assert not model.end_date

model = request_model(bbox="0,0,0,1,1,1")
assert model.bbox == (0.0, 0.0, 0.0, 1.0, 1.0, 1.0)

with pytest.raises(AssertionError):
request_model(bbox="0,0,0,1,1")

model = request_model(
datetime="2020-01-01T00:00:00.00001Z/2020-01-02T00:00:00.00001Z",
)
Expand Down
2 changes: 1 addition & 1 deletion stac_fastapi/types/stac_fastapi/types/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def str2bbox(x: str) -> Optional[BBox]:
"""Convert string to BBox based on , delimiter."""
if x:
t = tuple(float(v) for v in str2list(x))
assert len(t) == 4, f"BBox '{x}' must have 4 values."
assert len(t) in [4, 6], f"BBox '{x}' must have 4 or 6 values."
return t

return None
Expand Down