Open joshlong opened 2 weeks ago
try register jackson kotlin module, at least it works for me. essentially kotlin's data class compiles into a class with a full-parameter constructor. register relevant module should resolve the issue
add dependency:
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-kotlin</artifactId>
</dependency>
ObjectMapper register module:
OBJECT_MAPPER.registerModule(new KotlinModule.Builder().build())
I'm afk but I got an error trying to deserialize a Kotlin data class using the ChatClient's
entity(Class<T>)
method