Reputation: 197
Currently I have a YAML file with a Key-Value pair specified as following:
name: bla
Is there a way to force the value to be a String without quoting "bla".
Upvotes: 2
Views: 2856
Reputation: 39738
Sure, tag it:
name: !!str bla
You can also use the non-specific tag !
, which will also resolve to a string:
name: ! bla
Upvotes: 1