Skip to content

Commit 75f2fa5

Browse files
committed
add numberMatch and numberReturned in api.collections.Collections model
1 parent f9eda3b commit 75f2fa5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2+
## Unreleased
3+
4+
- Add optional `numberMatched` and `numberReturned` to `api.collections.Collections` model to match the OGC Common part2 specification
5+
16
## 3.1.2 (2024-08-20)
27

38
- Add more **MimeTypes** (geojsonseq, pbf, mvt, ndjson, openapi_yaml, pdf, csv, parquet)

stac_pydantic/api/collections.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import List
1+
from typing import List, Optional
22

33
from pydantic import model_validator
44

@@ -16,6 +16,8 @@ class Collections(StacBaseModel):
1616

1717
links: Links
1818
collections: List[Collection]
19+
numberMatched: Optional[int] = None
20+
numberReturned: Optional[int] = None
1921

2022
@model_validator(mode="after")
2123
def required_links(self) -> "Collections":

0 commit comments

Comments
 (0)