Here is my codes :
```kotlin
@JsonTypeInfo(
use = JsonTypeInfo.Id.CUSTOM,
property = "type",
include = JsonTypeInfo.As.PROPERTY,
visible = true
)
@JsonNaming(SnakeCaseStrategy::class)
@JsonTypeIdResolver(BaseTypeIdResolver::class)
interface Base
private object BaseTypeIdResolver :
Or instead of using TypeIdResolver, how about writing a custom deserializer
yourself.
On Wed, May 22, 2024 at 5:04 PM Chuanwise Rafter
wrote:
> I searched and TypeIdResolver must return a type depend on single type id,
> but I need type id combinations to know the final POJO class. I wrote
> cus
I searched and TypeIdResolver must return a type depend on single type id,
but I need type id combinations to know the final POJO class. I wrote
custom deserializer but StackOverflow will be thrown because in the
deserializer of `Sub`, I read field "type" and use statements like
`mapper.convert