mongo-java-driver icon indicating copy to clipboard operation
mongo-java-driver copied to clipboard

Enhance KotlinSerializer with value codecs for widening primitive conversion.

Open vbabanin opened this issue 1 year ago • 1 comments

JAVA-5303

vbabanin avatar Jan 31 '24 01:01 vbabanin

Kotlinx Json has a configuration to allow for lenient parsing: https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/json.md#lenient-parsing

Should this be configurable?

rozza avatar Jan 31 '24 09:01 rozza

@rozza I think in this case it's better to be consistent with other codecs and also with the way numeric values are treated in MongoDB is basically interchangeable and compatible with each other, so long as there is no loss of precision or magnitude.

jyemin avatar Jun 17 '24 20:06 jyemin

@vbabanin can this come out of Draft now?

jyemin avatar Jun 17 '24 20:06 jyemin