feat: paginated list responses, issue sorting + filtering by assignee/tag

This commit is contained in:
Zhi
2026-02-23 10:12:07 +00:00
parent 703103af91
commit 107102e775
3 changed files with 86 additions and 13 deletions

View File

@@ -198,3 +198,15 @@ class MilestoneResponse(MilestoneBase):
class Config:
from_attributes = True
# Paginated response
from typing import Generic, TypeVar
T = TypeVar("T")
class PaginatedResponse(BaseModel, Generic[T]):
items: List[T]
total: int
page: int
page_size: int
total_pages: int