zigzago

Results 59 comments of zigzago

jackson kotlin module as an issue about this https://github.com/FasterXML/jackson-module-kotlin/issues/199

First idea: try to use org.litote.kmongo:kmongo-serialization:4.7.0. Because org.litote.kmongo:kmongo-serialization:4.6.1 is compiled with org.mongodb:bson:4.6.0 (and not 4.7.1) HTH

Check if you have other version of mongo jar in your dependencies (from third party dependencies). Usually this is the origin of this stacktrace HTH

Indeed there is a bug. Workaround: `data class Test1(@get:JsonProperty("isClosed") val isClosed:String)`

Looks like a bug in jackson-module-kotlin lib https://github.com/FasterXML/jackson-module-kotlin/issues/575

The issue is that KMongo provides stateless methods like [.json ](https://litote.org/kmongo/dokka/kmongo/org.litote.kmongo/kotlin.-any/json.html) or `.bson` with no relation with MongoClient instance. So allowing to provide different configurations for a same java runtime...

In java driver, CodecRegistry can be Collection scoped, Database scoped or Client scoped. It should be doable to pass a configuration for each of this class. If you "legacy stuff"...

In reproduce the bug. This is a kbson bug (see https://github.com/jershell/kbson/issues/25) Workaround: In your build.gradle.kts: ```kotlin @CacheableRule abstract class TargetJvmVersionRule @Inject constructor(val jvmVersion: Int) : ComponentMetadataRule { @get:Inject abstract val...

What is your gradle version ? Tested on my side with gradle 8.1.1