Skip to content

Commit ebb987c

Browse files
add numberMatch and numberReturned in Collections model (#760)
* add numberMatch and numberReturned in Collections model * update stac-pydantic version
1 parent 3c4ce2e commit ebb987c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
### Added
1010

1111
* Add `numberMatched` and `numberReturned` properties in `types.stac.ItemCollection` model
12+
* Add `numberMatched` and `numberReturned` properties in `types.stac.Collections` model
1213

1314
## [3.0.3] - 2024-10-09
1415

stac_fastapi/types/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"fastapi>=0.109.0",
1010
"attrs>=23.2.0",
1111
"pydantic-settings>=2",
12-
"stac_pydantic~=3.1",
12+
"stac_pydantic>=3.1.3,<4.0",
1313
"iso8601>=1.0.2,<2.2.0",
1414
]
1515

stac_fastapi/types/stac_fastapi/types/stac.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,5 @@ class Collections(TypedDict, total=False):
8484

8585
collections: List[Collection]
8686
links: List[Dict[str, Any]]
87+
numberMatched: Optional[int] = None
88+
numberReturned: Optional[int] = None

0 commit comments

Comments
 (0)