File tree Expand file tree Collapse file tree
src/main/kotlin/fi/hsl/jore4/mapmatching/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import tools.jackson.core.JsonGenerator
88import tools.jackson.databind.SerializationContext
99import tools.jackson.databind.SerializationFeature
1010import tools.jackson.databind.ValueSerializer
11+ import tools.jackson.databind.introspect.DefaultAccessorNamingStrategy
1112import tools.jackson.databind.module.SimpleModule
1213
1314@Configuration
@@ -25,6 +26,11 @@ class JacksonGeoJsonConfig {
2526 builder.addModule(module)
2627 builder.disable(SerializationFeature .FAIL_ON_SELF_REFERENCES )
2728 builder.enable(SerializationFeature .WRITE_SELF_REFERENCES_AS_NULL )
29+
30+ // Jackson 3.x treats Kotlin `isXxx` boolean properties as JavaBean is-getters and
31+ // strips the "is" prefix (e.g. `isTraversalForwards` → `traversalForwards`).
32+ // Disable is-getter detection so Kotlin property names are preserved verbatim.
33+ builder.accessorNaming(DefaultAccessorNamingStrategy .Provider ().withIsGetterPrefix(" " ))
2834 }
2935
3036 private class GeoLatteLineStringSerializer : ValueSerializer <LineString <* >>() {
You can’t perform that action at this time.
0 commit comments