Skip to content

Commit c8bcff9

Browse files
fix(specs): remove fields requirement from run response in CompAPI client (generated)
algolia/api-clients-automation#5809 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Clara Muller <5667350+ClaraMuller@users.noreply.github.com>
1 parent 55643bd commit c8bcff9

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

algoliasearch/composition/models/search_results_item.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,19 @@ class SearchResultsItem(BaseModel):
124124
""" Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics). """
125125
automatic_insights: Optional[bool] = None
126126
""" Whether automatic events collection is enabled for the application. """
127-
hits: List[Hit]
127+
hits: Optional[List[Hit]] = None
128128
""" Search results (hits). Hits are records from your index that match the search criteria, augmented with additional attributes, such as, for highlighting. """
129-
hits_per_page: int
129+
hits_per_page: Optional[int] = None
130130
""" Number of hits returned per page. """
131-
nb_hits: int
131+
nb_hits: Optional[int] = None
132132
""" Number of results (hits). """
133-
nb_pages: int
133+
nb_pages: Optional[int] = None
134134
""" Number of pages of results. """
135-
page: int
135+
page: Optional[int] = None
136136
""" The current page of the results. """
137-
params: str
137+
params: Optional[str] = None
138138
""" URL-encoded string of all search parameters. """
139-
query: str
139+
query: Optional[str] = None
140140
""" The search query string. """
141141
compositions: Dict[str, ResultsCompositionInfoResponse]
142142

0 commit comments

Comments
 (0)