Skip to content

0.23.0

Compare
Choose a tag to compare
@charleskorn charleskorn released this 18 Sep 06:57
0.23.0
2ecca3c

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 is type 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.