update requirements.txt

This commit is contained in:
cwilvx
2025-02-28 19:27:10 +03:00
parent bcd4f6688c
commit 7aae38ae3b
3 changed files with 14 additions and 16 deletions
+7 -3
View File
@@ -26,8 +26,11 @@ The max amount of items to return per request
class SearchQuery(GenericLimitSchema):
q: str = Field(description="The search query", example=Defaults.API_ARTISTNAME)
start: int = Field(description="The index to start from", default=0, example=0)
q: str = Field(
description="The search query",
json_schema_extra={"example": "Fleetwood Mac"},
)
start: int = Field(description="The index to start from", default=0)
limit: int = Field(
description="The number of items to return", default=SEARCH_COUNT
)
@@ -41,7 +44,8 @@ class TopResultsQuery(SearchQuery):
class SearchLoadMoreQuery(SearchQuery):
itemtype: Literal["tracks", "albums", "artists"] = Field(
description="The type of search", example="tracks"
description="The type of search",
json_schema_extra={"example": "tracks"},
)