I have the following in YAML:
key1
key2: "value"
key1
key2
key3: "value2"
Get exception duplicate key key1
.
Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing MappingNode
Tried various combinations but was unable to parse it correctly.