0.45.0
-
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