You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
## [Unreleased]
4
4
5
+
## Changed
6
+
7
+
* use `string` type instead of python `datetime.datetime` for datetime parameter in `BaseSearchGetRequest`, `ItemCollectionUri` and `BaseCollectionSearchGetRequest` GET models
@@ -38,8 +37,26 @@ class BaseCollectionSearchGetRequest(APIRequest):
38
37
classBaseCollectionSearchPostRequest(BaseModel):
39
38
"""Collection-Search POST model."""
40
39
41
-
bbox: Optional[BBox] =None
42
-
datetime: Optional[str] =None
40
+
bbox: Optional[BBox] =Field(
41
+
default=None,
42
+
description="Only return items intersecting this bounding box. Mutually exclusive with **intersects**.", # noqa: E501
43
+
json_schema_extra={
44
+
"example": [-175.05, -85.05, 175.05, 85.05],
45
+
},
46
+
)
47
+
datetime: Optional[str] =Field(
48
+
default=None,
49
+
description="""Only return items that have a temporal property that intersects this value.\n
50
+
Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots.""", # noqa: E501
0 commit comments