Skip to content

Commit

Permalink
Merge pull request #45 from lightningkite/geodistance-serializer-fix
Browse files Browse the repository at this point in the history
GeoDistance serialization fix
  • Loading branch information
UnknownJoe796 authored Nov 1, 2024
2 parents 1cec44b + d2113b1 commit 1f609c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class ConditionSerializer<T>(val inner: KSerializer<T>): MySealedClassSerializer
inner.descriptor.serialName.substringBefore('/') == "kotlin.String" -> stringOptions
IsRawString.Companion.serialNames.contains(inner.descriptor.serialName) -> rawStringOptions(inner as KSerializer<IsRawString>)
inner.descriptor.serialName == "kotlin.Int" -> intOptions
inner.descriptor.serialName == "com.lightningkite.GeoCoordinate" -> geocoordinateOptions
inner.descriptor.serialName.substringBefore('/') == "com.lightningkite.GeoCoordinate" -> geocoordinateOptions
inner.descriptor.kind == StructureKind.MAP -> stringMapOptions(inner.innerElement2())
inner.descriptor.kind == StructureKind.LIST -> {
if(inner.descriptor.serialName.contains("Set")) setOptions(inner.innerElement())
Expand Down

0 comments on commit 1f609c9

Please sign in to comment.