Example:
scala> Map("a" -> "1").asYaml
val res6: String = "a: 1
"
I would expect the yaml to be
as with #220, this is problematic in kubernetes when encoding e.g. maps of labels.
I managed a workaround for now: s"\"${value}\"".asNode, but it would be nice if
object ScalarNode {
def apply(value: String): ScalarNode = new ScalarNode(value, Tag.resolveTag(value))
could be generalised a bit so we can pass the style argument to resolveTag (at least).
However, I would argue that when you encode a Map[String, String] you should only get Yaml Strings in your values. For a Map[String, Any] I could imagine wanting to resolve the tags.
Example:
I would expect the yaml to be
as with #220, this is problematic in kubernetes when encoding e.g. maps of labels.
I managed a workaround for now:
s"\"${value}\"".asNode, but it would be nice ifcould be generalised a bit so we can pass the
styleargument toresolveTag(at least).However, I would argue that when you encode a
Map[String, String]you should only get YamlStrings in your values. For aMap[String, Any]I could imagine wanting to resolve the tags.