0.23.0
What's changed
-
New: it is now possible to customise the property name used when encoding and decoding polymorphic types, similar to the
classDiscriminator
option for kotlinx-serialization's built-in JSON format (#47 - thanks to @ChanTsune for the PR)Set
YamlConfiguration.polymorphismPropertyName
to configure this. The default value istype
to preserve the existing default behaviour.
Upgrading
If you're using Gradle, reference kaml in your dependencies
block like this:
implementation("com.charleskorn.kaml:kaml:0.23.0")
For other tools, refer to the Maven Central release page for more information.