 <p>According to the yaml <a href="http://yaml.org/type/set.html" rel="nofollow">specification</a> the set syntax is the following one : </p> <pre><code>- Person(paul): firstName: Paul lastName: Lumbergh children : !!set ? Person(bill) ? Person(jane) – </code></pre>