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 48fde1e commit 668d1be
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ package algoliasearch.abtesting
/** A/B test configuration.
*/
case class ABTestConfiguration(
outliers: Outliers,
outliers: Option[Outliers] = scala.None,
emptySearch: Option[EmptySearch] = scala.None,
minimumDetectableEffect: Option[MinimumDetectableEffect] = scala.None
)
2 changes: 1 addition & 1 deletion src/main/scala/algoliasearch/abtesting/Variant.scala
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ case class Variant(
conversionCount: Int,
conversionRate: Option[Double] = scala.None,
currencies: Option[Map[String, Currency]] = scala.None,
description: String,
description: Option[String] = scala.None,
estimatedSampleSize: Option[Int] = scala.None,
filterEffects: Option[FilterEffects] = scala.None,
index: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import org.json4s.{Extraction, Formats, JField, JObject, JValue, Serializer, Typ
* Computed geographical location.
* @param automaticRadius
* Distance from a central coordinate provided by `aroundLatLng`.
* @param appliedRules
* Rules applied to the query.
* @param exhaustiveFacetsCount
* See the `facetsCount` field of the `exhaustive` object in the response.
* @param exhaustiveNbHits
Expand Down Expand Up @@ -88,6 +90,7 @@ case class BaseSearchResponse(
aroundLatLng: Option[String] = scala.None,
automaticRadius: Option[String] = scala.None,
exhaustive: Option[Exhaustive] = scala.None,
appliedRules: Option[Seq[Any]] = scala.None,
exhaustiveFacetsCount: Option[Boolean] = scala.None,
exhaustiveNbHits: Option[Boolean] = scala.None,
exhaustiveTypo: Option[Boolean] = scala.None,
Expand Down Expand Up @@ -127,6 +130,7 @@ class BaseSearchResponseSerializer extends Serializer[BaseSearchResponse] {
"aroundLatLng",
"automaticRadius",
"exhaustive",
"appliedRules",
"exhaustiveFacetsCount",
"exhaustiveNbHits",
"exhaustiveTypo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ package algoliasearch.recommend
* Computed geographical location.
* @param automaticRadius
* Distance from a central coordinate provided by `aroundLatLng`.
* @param appliedRules
* Rules applied to the query.
* @param exhaustiveFacetsCount
* See the `facetsCount` field of the `exhaustive` object in the response.
* @param exhaustiveNbHits
Expand Down Expand Up @@ -93,6 +95,7 @@ case class RecommendationsResults(
aroundLatLng: Option[String] = scala.None,
automaticRadius: Option[String] = scala.None,
exhaustive: Option[Exhaustive] = scala.None,
appliedRules: Option[Seq[Any]] = scala.None,
exhaustiveFacetsCount: Option[Boolean] = scala.None,
exhaustiveNbHits: Option[Boolean] = scala.None,
exhaustiveTypo: Option[Boolean] = scala.None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ package algoliasearch.search
* Timestamp when the object was created, in milliseconds since the Unix epoch.
*/
case class BaseGetApiKeyResponse(
value: Option[String] = scala.None,
value: String,
createdAt: Long
)
4 changes: 4 additions & 0 deletions src/main/scala/algoliasearch/search/BaseSearchResponse.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ import org.json4s.{Extraction, Formats, JField, JObject, JValue, Serializer, Typ
* Computed geographical location.
* @param automaticRadius
* Distance from a central coordinate provided by `aroundLatLng`.
* @param appliedRules
* Rules applied to the query.
* @param exhaustiveFacetsCount
* See the `facetsCount` field of the `exhaustive` object in the response.
* @param exhaustiveNbHits
Expand Down Expand Up @@ -92,6 +94,7 @@ case class BaseSearchResponse(
aroundLatLng: Option[String] = scala.None,
automaticRadius: Option[String] = scala.None,
exhaustive: Option[Exhaustive] = scala.None,
appliedRules: Option[Seq[Any]] = scala.None,
exhaustiveFacetsCount: Option[Boolean] = scala.None,
exhaustiveNbHits: Option[Boolean] = scala.None,
exhaustiveTypo: Option[Boolean] = scala.None,
Expand Down Expand Up @@ -131,6 +134,7 @@ class BaseSearchResponseSerializer extends Serializer[BaseSearchResponse] {
"aroundLatLng",
"automaticRadius",
"exhaustive",
"appliedRules",
"exhaustiveFacetsCount",
"exhaustiveNbHits",
"exhaustiveTypo",
Expand Down
3 changes: 3 additions & 0 deletions src/main/scala/algoliasearch/search/BrowseResponse.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ package algoliasearch.search
* Computed geographical location.
* @param automaticRadius
* Distance from a central coordinate provided by `aroundLatLng`.
* @param appliedRules
* Rules applied to the query.
* @param exhaustiveFacetsCount
* See the `facetsCount` field of the `exhaustive` object in the response.
* @param exhaustiveNbHits
Expand Down Expand Up @@ -107,6 +109,7 @@ case class BrowseResponse(
aroundLatLng: Option[String] = scala.None,
automaticRadius: Option[String] = scala.None,
exhaustive: Option[Exhaustive] = scala.None,
appliedRules: Option[Seq[Any]] = scala.None,
exhaustiveFacetsCount: Option[Boolean] = scala.None,
exhaustiveNbHits: Option[Boolean] = scala.None,
exhaustiveTypo: Option[Boolean] = scala.None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ import algoliasearch.search.Acl._
* Duration (in seconds) after which the API key expires. By default, API keys don't expire.
*/
case class GetApiKeyResponse(
value: Option[String] = scala.None,
value: String,
createdAt: Long,
acl: Seq[Acl],
description: Option[String] = scala.None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ package algoliasearch.search
* Retrieved records.
*/
case class GetObjectsResponse(
results: Seq[Any]
results: Option[Seq[Any]] = scala.None
)
3 changes: 3 additions & 0 deletions src/main/scala/algoliasearch/search/SearchResponse.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ package algoliasearch.search
* Computed geographical location.
* @param automaticRadius
* Distance from a central coordinate provided by `aroundLatLng`.
* @param appliedRules
* Rules applied to the query.
* @param exhaustiveFacetsCount
* See the `facetsCount` field of the `exhaustive` object in the response.
* @param exhaustiveNbHits
Expand Down Expand Up @@ -104,6 +106,7 @@ case class SearchResponse(
aroundLatLng: Option[String] = scala.None,
automaticRadius: Option[String] = scala.None,
exhaustive: Option[Exhaustive] = scala.None,
appliedRules: Option[Seq[Any]] = scala.None,
exhaustiveFacetsCount: Option[Boolean] = scala.None,
exhaustiveNbHits: Option[Boolean] = scala.None,
exhaustiveTypo: Option[Boolean] = scala.None,
Expand Down

0 comments on commit 668d1be

Please sign in to comment.