diff --git a/shared/src/commonMain/kotlin/com/lightningkite/lightningdb/ConditionSerialization.kt b/shared/src/commonMain/kotlin/com/lightningkite/lightningdb/ConditionSerialization.kt index 291c6004..80207660 100644 --- a/shared/src/commonMain/kotlin/com/lightningkite/lightningdb/ConditionSerialization.kt +++ b/shared/src/commonMain/kotlin/com/lightningkite/lightningdb/ConditionSerialization.kt @@ -32,14 +32,14 @@ private fun > comparableOptions(inner: KSerializer): List listOptions(element: KSerializer): List>, *>> = commonOptions(ListSerializer(element)) + listOf( - MySealedClassSerializer.Option(Condition.ListAllElements.serializer(element), setOf("AllElements")) { it is Condition.ListAllElements }, - MySealedClassSerializer.Option(Condition.ListAnyElements.serializer(element), setOf("AnyElements")) { it is Condition.ListAnyElements }, - MySealedClassSerializer.Option(Condition.ListSizesEquals.serializer(element), setOf("SizesEquals")) { it is Condition.ListSizesEquals }, + MySealedClassSerializer.Option(Condition.ListAllElements.serializer(element), setOf("SetAllElements", "AllElements")) { it is Condition.ListAllElements }, + MySealedClassSerializer.Option(Condition.ListAnyElements.serializer(element), setOf("SetAnyElements", "AnyElements")) { it is Condition.ListAnyElements }, + MySealedClassSerializer.Option(Condition.ListSizesEquals.serializer(element), setOf("SetSizesEquals", "SizesEquals")) { it is Condition.ListSizesEquals }, ) private fun setOptions(element: KSerializer): List>, *>> = commonOptions(SetSerializer(element)) + listOf( - MySealedClassSerializer.Option(Condition.SetAllElements.serializer(element)) { it is Condition.SetAllElements }, - MySealedClassSerializer.Option(Condition.SetAnyElements.serializer(element)) { it is Condition.SetAnyElements }, - MySealedClassSerializer.Option(Condition.SetSizesEquals.serializer(element)) { it is Condition.SetSizesEquals }, + MySealedClassSerializer.Option(Condition.SetAllElements.serializer(element), setOf("ListAllElements", "AllElements")) { it is Condition.SetAllElements }, + MySealedClassSerializer.Option(Condition.SetAnyElements.serializer(element), setOf("ListAnyElements", "AnyElements")) { it is Condition.SetAnyElements }, + MySealedClassSerializer.Option(Condition.SetSizesEquals.serializer(element), setOf("ListSizesEquals", "SizesEquals")) { it is Condition.SetSizesEquals }, ) private fun stringMapOptions(element: KSerializer): List>, *>> = commonOptions( MapSerializer(String.serializer(), element)