encoding a Map[String, String]
should encode keys and values as Yaml String
s, even if some of them look like Int
s or other scalars
#361
Labels
bug
Something isn't working
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
style
argument toresolveTag
(at least).However, I would argue that when you encode a
Map[String, String]
you should only get YamlString
s in your values. For aMap[String, Any]
I could imagine wanting to resolve the tags.The text was updated successfully, but these errors were encountered: