Skip to content

Commit 0bfa2e8

Browse files
fix(specs): support synonyms type in camel case [skip-bc] (generated)
algolia/api-clients-automation#4031 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 7eaaa4c commit 0bfa2e8

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/main/scala/algoliasearch/search/SynonymType.scala

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,25 @@ object SynonymType {
5555
case object Placeholder extends SynonymType {
5656
override def toString = "placeholder"
5757
}
58-
val values: Seq[SynonymType] = Seq(Synonym, Onewaysynonym, Altcorrection1, Altcorrection2, Placeholder)
58+
case object OneWaySynonym extends SynonymType {
59+
override def toString = "oneWaySynonym"
60+
}
61+
case object AltCorrection1 extends SynonymType {
62+
override def toString = "altCorrection1"
63+
}
64+
case object AltCorrection2 extends SynonymType {
65+
override def toString = "altCorrection2"
66+
}
67+
val values: Seq[SynonymType] = Seq(
68+
Synonym,
69+
Onewaysynonym,
70+
Altcorrection1,
71+
Altcorrection2,
72+
Placeholder,
73+
OneWaySynonym,
74+
AltCorrection1,
75+
AltCorrection2
76+
)
5977

6078
def withName(name: String): SynonymType = SynonymType.values
6179
.find(_.toString == name)

0 commit comments

Comments
 (0)