Skip to content

Commit 2254daf

Browse files
algolia-botmillotp
andcommitted
fix(ruby): use discriminators for oneOf [skip-bc] (generated)
algolia/api-clients-automation#4310 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 68b98ea commit 2254daf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/scala/algoliasearch/recommend/RecommendationsHit.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ object RecommendationsHitSerializer extends Serializer[RecommendationsHit] {
5454
json match {
5555
case value: JObject if value.obj.exists(_._1 == "facetName") && value.obj.exists(_._1 == "facetValue") =>
5656
Extraction.extract[TrendingFacetHit](value)
57+
case value: JObject if value.obj.exists(_._1 == "objectID") => Extraction.extract[RecommendHit](value)
5758
case _ => throw new MappingException("Can't convert " + json + " to RecommendationsHit")
5859
}
5960
}

0 commit comments

Comments
 (0)