kaml
kaml copied to clipboard
Fix Decoder not representing the current node correctly
First bug from https://github.com/charleskorn/kaml/pull/607
Previously the
node
property on the decoders was not traversed in deep YAML trees (e.g. withYamlMapLikeInputBase
andYamlListInput
). This behaviour is different from the JSON serialization library and makes it impossible to implement a content based polymorphicKSerializer
in a meaningful way without knowing of the whole YAML tree. See also theDecodingFromYamlNodeSerializer
inYamlReadingTest.kt
for an affected case