Skip to content

Commit 6962c1c

Browse files
author
Phil Varner
committed
Merge branch 'main' into pv/pagination-link-incorrect
2 parents 7a33b09 + 97c760c commit 6962c1c

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

stapi-fastapi/src/stapi_fastapi/routers/root_router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ async def get_orders( # noqa: C901
287287
return OrderCollection(
288288
features=orders,
289289
links=links,
290-
numberMatched=orders_count,
290+
number_matched=orders_count,
291291
)
292292

293293
async def get_order(self, order_id: str, request: Request) -> Order[OrderStatus]:

stapi-pydantic/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
1212

1313
- pydantic >= 2.12 is now required.
1414

15+
### Changed
16+
17+
- pydantic >= 2.12 is now required.
18+
1519
## [0.0.4] - 2025-07-17
1620

1721
### Added

stapi-pydantic/src/stapi_pydantic/order.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ class OrderCollection(_GeoJsonBase, Generic[T]):
129129
type: Literal["FeatureCollection"] = "FeatureCollection"
130130
features: list[Order[T]]
131131
links: list[Link] = Field(default_factory=list)
132-
numberMatched: int | None = Field(default=None, exclude_if=lambda x: x is None)
132+
number_matched: int | None = Field(
133+
serialization_alias="numberMatched", default=None, exclude_if=lambda x: x is None
134+
)
133135

134136
def __iter__(self) -> Iterator[Order[T]]: # type: ignore [override]
135137
"""iterate over features"""

0 commit comments

Comments
 (0)