Skip to content

Commit

Permalink
fix(specs): remove private beta endpoint from recommend [skip-bc] (ge…
Browse files Browse the repository at this point in the history
…nerated)

algolia/api-clients-automation#4110

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Nov 15, 2024
1 parent 5bdc106 commit c7df9ed
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 160 deletions.
1 change: 0 additions & 1 deletion src/main/scala/algoliasearch/recommend/JsonSupport.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ object JsonSupport {
new MatchLevelSerializer() :+
new QueryTypeSerializer() :+
new RecommendModelsSerializer() :+
new RecommendedForYouModelSerializer() :+
new RelatedModelSerializer() :+
new RemoveWordsIfNoResultsSerializer() :+
new SortRemainingBySerializer() :+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/
package algoliasearch.recommend

import algoliasearch.recommend.RecommendedForYouModel._
import algoliasearch.recommend.LookingSimilarModel._

import org.json4s._

Expand All @@ -51,20 +51,18 @@ object RecommendationsRequestSerializer extends Serializer[RecommendationsReques
case value: JObject => Extraction.extract[TrendingItemsQuery](value)
case value: JObject => Extraction.extract[TrendingFacetsQuery](value)
case value: JObject => Extraction.extract[LookingSimilarQuery](value)
case value: JObject => Extraction.extract[RecommendedForYouQuery](value)
case _ => throw new MappingException("Can't convert " + json + " to RecommendationsRequest")
}
}

override def serialize(implicit format: Formats): PartialFunction[Any, JValue] = {
case value: RecommendationsRequest =>
value match {
case value: BoughtTogetherQuery => Extraction.decompose(value)(format - this)
case value: RelatedQuery => Extraction.decompose(value)(format - this)
case value: TrendingItemsQuery => Extraction.decompose(value)(format - this)
case value: TrendingFacetsQuery => Extraction.decompose(value)(format - this)
case value: LookingSimilarQuery => Extraction.decompose(value)(format - this)
case value: RecommendedForYouQuery => Extraction.decompose(value)(format - this)
case value: BoughtTogetherQuery => Extraction.decompose(value)(format - this)
case value: RelatedQuery => Extraction.decompose(value)(format - this)
case value: TrendingItemsQuery => Extraction.decompose(value)(format - this)
case value: TrendingFacetsQuery => Extraction.decompose(value)(format - this)
case value: LookingSimilarQuery => Extraction.decompose(value)(format - this)
}
}
}
39 changes: 0 additions & 39 deletions src/main/scala/algoliasearch/recommend/RecommendedForYou.scala

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit c7df9ed

Please sign in to comment.