Skip to content

Commit 548a680

Browse files
fix(specs): remove unnecessary required fields (generated)
algolia/api-clients-automation#5959 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Mario-Alexandru Dan <marioalexandrudan@gmail.com>
1 parent b4c0fe6 commit 548a680

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

algoliasearch/search/models/browse_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ class BrowseResponse(BaseModel):
131131
""" Number of hits per page. """
132132
hits: List[Hit]
133133
""" Search results (hits). Hits are records from your index that match the search criteria, augmented with additional attributes, such as, for highlighting. """
134-
query: str
134+
query: Optional[str] = None
135135
""" Search query. """
136-
params: str
136+
params: Optional[str] = None
137137
""" URL-encoded string of all search parameters. """
138138
cursor: Optional[str] = None
139139
""" Cursor to get the next page of the response. The parameter must match the value returned in the response of a previous request. The last page of the response does not return a `cursor` attribute. """

algoliasearch/search/models/search_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ class SearchResponse(BaseModel):
130130
""" Number of hits per page. """
131131
hits: List[Hit]
132132
""" Search results (hits). Hits are records from your index that match the search criteria, augmented with additional attributes, such as, for highlighting. """
133-
query: str
133+
query: Optional[str] = None
134134
""" Search query. """
135-
params: str
135+
params: Optional[str] = None
136136
""" URL-encoded string of all search parameters. """
137137

138138
@field_validator("around_lat_lng")

0 commit comments

Comments
 (0)