title: Duplicate key in YAML configuaration file
body: <p>Have the following in YAML-</p>
  
  <pre><code>key1
    key2: "value"
  
  key1
    key2
      key3: "value2"
  </code></pre>
  
  <p>Get exception duplicate key key1. 
  Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing MappingNode</p>
  
  <p>Trying various combinations but unable to parse it correctly.</p>
  
  <p>Could someone please help or guide here.</p>
  
  <p>Thanks</p>