From 439405deadce75536213b4421d7e3e174087cbde Mon Sep 17 00:00:00 2001 From: salah Date: Thu, 26 Feb 2026 23:05:46 +0100 Subject: [PATCH] fix: Update collection_name parameter to remove default value for better clarity --- app/routers/hadiths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/hadiths.py b/app/routers/hadiths.py index 013210e..226baf7 100644 --- a/app/routers/hadiths.py +++ b/app/routers/hadiths.py @@ -68,7 +68,7 @@ async def get_hadith(hadith_id: str): description="Paginated listing of hadiths in a specific collection. " "Collection names use partial matching (e.g. 'bukhari' matches 'Sahih Bukhari').") async def list_by_collection( - collection_name: str = Field(description="Collection name (partial match). Examples: bukhari, muslim, tirmidhi, abudawud"), + collection_name: str, page: int = Query(1, ge=1, description="Page number"), per_page: int = Query(20, ge=1, le=100, description="Results per page"), ):