From 2cce459070c01ec0e8741199af21ce0d5dd9512b Mon Sep 17 00:00:00 2001 From: Ivan Koldakov Date: Thu, 4 Jan 2024 00:02:57 +0100 Subject: [PATCH] Set limit to search query --- app/routers/characters.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/routers/characters.py b/app/routers/characters.py index 411ec7b..5978c92 100644 --- a/app/routers/characters.py +++ b/app/routers/characters.py @@ -60,6 +60,7 @@ async def get_characters( Query( alias="query", description="Name search query.", + max_length=128, ), ] = None, session: AsyncSession = Depends(get_async_session),