Skip to content

Commit

Permalink
Set length limit to search query
Browse files Browse the repository at this point in the history
  • Loading branch information
koldakov committed Jan 3, 2024
1 parent c60d145 commit 8d86183
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/routers/characters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 8d86183

Please sign in to comment.