When I use custom SerialDescriptor like below
override val descriptor: SerialDescriptor = SerialDescriptor("PetDboCustomSerializer", PetDboSurrogate.serializer().descriptor)
a ___type field is assigned to the document and saved to collection. This field is not assigned when I use kotlinx 1.3.3.
Is it some known behavior?
Is it kotlinx or kbson or kmongo fault?
Used versions:
org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0
kmongo: 4.6.0