Skip to content

Commit fd44bd2

Browse files
fix(specs): ingestion destination reject indexPrefix (generated)
algolia/api-clients-automation#3478 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 4f6efb7 commit fd44bd2

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

src/main/scala/algoliasearch/ingestion/DestinationIndexPrefix.scala

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/main/scala/algoliasearch/ingestion/DestinationInput.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,14 @@ object DestinationInputSerializer extends Serializer[DestinationInput] {
4040

4141
case (TypeInfo(clazz, _), json) if clazz == classOf[DestinationInput] =>
4242
json match {
43-
case value: JObject => Extraction.extract[DestinationIndexPrefix](value)
4443
case value: JObject => Extraction.extract[DestinationIndexName](value)
4544
case _ => throw new MappingException("Can't convert " + json + " to DestinationInput")
4645
}
4746
}
4847

4948
override def serialize(implicit format: Formats): PartialFunction[Any, JValue] = { case value: DestinationInput =>
5049
value match {
51-
case value: DestinationIndexPrefix => Extraction.decompose(value)(format - this)
52-
case value: DestinationIndexName => Extraction.decompose(value)(format - this)
50+
case value: DestinationIndexName => Extraction.decompose(value)(format - this)
5351
}
5452
}
5553
}

0 commit comments

Comments
 (0)