File tree 2 files changed +8
-4
lines changed
stac_fastapi/types/stac_fastapi/types
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ Unreleased]
4
4
5
+ ### Added
6
+
7
+ - added descriptive message to ` types.search.str2bbox ` length assert
8
+
5
9
### Fixed
6
10
7
- - Fix collection-search POST request model:
8
- - Fix pydantic model to make sure class variables ` _start_date ` and ` _end_date ` not edited (ported from stac-pydantic)
9
- - Fix bbox validation to allow anti-meridian crossing (ported from stac-pydantic)
11
+ - fix collection-search POST request model:
12
+ - fix pydantic model to make sure class variables ` _start_date ` and ` _end_date ` not edited (ported from stac-pydantic)
13
+ - fix bbox validation to allow anti-meridian crossing (ported from stac-pydantic)
10
14
11
15
## [ 5.0.2] - 2025-01-30
12
16
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def str2bbox(x: str) -> Optional[BBox]:
35
35
"""Convert string to BBox based on , delimiter."""
36
36
if x :
37
37
t = tuple (float (v ) for v in str2list (x ))
38
- assert len (t ) == 4
38
+ assert len (t ) == 4 , f"BBox ' { x } ' must have 4 values."
39
39
return t
40
40
41
41
return None
You can’t perform that action at this time.
0 commit comments