From 24ab1908a68f2c207d33c6783966cc8ada5c66c2 Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Thu, 16 Apr 2026 02:57:23 +0000 Subject: [PATCH] fix(psa): add TicketListResponseSchema response_model to search_tickets endpoint Co-Authored-By: Claude Sonnet 4.6 --- backend/app/api/endpoints/integrations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/api/endpoints/integrations.py b/backend/app/api/endpoints/integrations.py index 88e9e91d..0f66774c 100644 --- a/backend/app/api/endpoints/integrations.py +++ b/backend/app/api/endpoints/integrations.py @@ -36,6 +36,7 @@ from app.schemas.psa_tickets import ( PSATicketStatusUpdateSchema, TicketCreatePayloadSchema, PSAPrioritySchema, + TicketListResponseSchema, ) import app.services.ticket_service as ticket_svc from app.services.psa.encryption import ( @@ -375,7 +376,7 @@ async def list_boards( return [] -@router.get("/tickets/search") +@router.get("/tickets/search", response_model=TicketListResponseSchema) async def search_tickets( current_user: Annotated[User, Depends(require_engineer_or_admin)], db: Annotated[AsyncSession, Depends(get_db)],