fix: Update collection_name parameter to remove default value for better clarity

This commit is contained in:
salah 2026-02-26 23:05:46 +01:00
parent de270529dd
commit 439405dead
1 changed files with 1 additions and 1 deletions

View File

@ -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"),
):