Skip to content

Commit

Permalink
fix(specs): multiple clients fixes (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3971

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
  • Loading branch information
algolia-bot committed Oct 16, 2024
1 parent 1750751 commit 397f822
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion algoliasearch/abtesting/models/ab_test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ABTestConfiguration(BaseModel):
A/B test configuration.
"""

outliers: Outliers
outliers: Optional[Outliers] = None
empty_search: Optional[EmptySearch] = None
minimum_detectable_effect: Optional[MinimumDetectableEffect] = None

Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/abtesting/models/variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Variant(BaseModel):
""" [Conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate) for this variant. """
currencies: Optional[Dict[str, Currency]] = None
""" A/B test currencies. """
description: str
description: Optional[str] = None
""" Description for this variant. """
estimated_sample_size: Optional[int] = None
""" Estimated number of searches required to achieve the desired statistical significance. The A/B test configuration must include a `mininmumDetectableEffect` setting for this number to be included in the response. """
Expand Down
3 changes: 3 additions & 0 deletions algoliasearch/recommend/models/recommendations_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"around_lat_lng": "aroundLatLng",
"automatic_radius": "automaticRadius",
"exhaustive": "exhaustive",
"applied_rules": "appliedRules",
"exhaustive_facets_count": "exhaustiveFacetsCount",
"exhaustive_nb_hits": "exhaustiveNbHits",
"exhaustive_typo": "exhaustiveTypo",
Expand Down Expand Up @@ -77,6 +78,8 @@ class RecommendationsResults(BaseModel):
automatic_radius: Optional[str] = None
""" Distance from a central coordinate provided by `aroundLatLng`. """
exhaustive: Optional[Exhaustive] = None
applied_rules: Optional[List[object]] = None
""" Rules applied to the query. """
exhaustive_facets_count: Optional[bool] = None
""" See the `facetsCount` field of the `exhaustive` object in the response. """
exhaustive_nb_hits: Optional[bool] = None
Expand Down
3 changes: 3 additions & 0 deletions algoliasearch/search/models/browse_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"around_lat_lng": "aroundLatLng",
"automatic_radius": "automaticRadius",
"exhaustive": "exhaustive",
"applied_rules": "appliedRules",
"exhaustive_facets_count": "exhaustiveFacetsCount",
"exhaustive_nb_hits": "exhaustiveNbHits",
"exhaustive_typo": "exhaustiveTypo",
Expand Down Expand Up @@ -80,6 +81,8 @@ class BrowseResponse(BaseModel):
automatic_radius: Optional[str] = None
""" Distance from a central coordinate provided by `aroundLatLng`. """
exhaustive: Optional[Exhaustive] = None
applied_rules: Optional[List[object]] = None
""" Rules applied to the query. """
exhaustive_facets_count: Optional[bool] = None
""" See the `facetsCount` field of the `exhaustive` object in the response. """
exhaustive_nb_hits: Optional[bool] = None
Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/search/models/get_api_key_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class GetApiKeyResponse(BaseModel):
GetApiKeyResponse
"""

value: Optional[str] = None
value: str
""" API key. """
created_at: int
""" Timestamp when the object was created, in milliseconds since the Unix epoch. """
Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/search/models/get_objects_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class GetObjectsResponse(BaseModel):
GetObjectsResponse
"""

results: List[object]
results: Optional[List[object]] = None
""" Retrieved records. """

model_config = ConfigDict(
Expand Down
3 changes: 3 additions & 0 deletions algoliasearch/search/models/search_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"around_lat_lng": "aroundLatLng",
"automatic_radius": "automaticRadius",
"exhaustive": "exhaustive",
"applied_rules": "appliedRules",
"exhaustive_facets_count": "exhaustiveFacetsCount",
"exhaustive_nb_hits": "exhaustiveNbHits",
"exhaustive_typo": "exhaustiveTypo",
Expand Down Expand Up @@ -79,6 +80,8 @@ class SearchResponse(BaseModel):
automatic_radius: Optional[str] = None
""" Distance from a central coordinate provided by `aroundLatLng`. """
exhaustive: Optional[Exhaustive] = None
applied_rules: Optional[List[object]] = None
""" Rules applied to the query. """
exhaustive_facets_count: Optional[bool] = None
""" See the `facetsCount` field of the `exhaustive` object in the response. """
exhaustive_nb_hits: Optional[bool] = None
Expand Down

0 comments on commit 397f822

Please sign in to comment.