Skip to content

0.45.0

Compare
Choose a tag to compare
@charleskorn charleskorn released this 05 Jun 06:24
· 514 commits to main since this release
1b26562
  • New: it is now possible to serialise comments for object properties by applying a YamlComment annotation to the property (#287 - thanks to @slava110 for the PR)

    For example, serializing this class:

    @Serializable
    data class Configuration(
        @YamlComment("The host to connect to")
        val hostname: String,
        @YamlComment("The port to connect to ")
        val port: Int
    )

    will result in output like:

    # The host to connect to
    hostname: my.server.com
    # The port to connect to
    port: 1234