title: How to create schema containing list of objects using Avro?
body: <p>Does anyone knows how to create Avro schema which contains list of objects of some class?</p>
  
  <p>I want my generated classes to look like below :</p>
  
  <pre><code>class Child {
      String name;
  }
  
  class Parent {
      list&lt;Child&gt; children;
  }
  </code></pre>
  
  <p>For this, I have written part of schema file but do not know how to tell Avro to create list of objects of type <code>Children</code>?</p>
  
  <p>My schema file looks like below :</p>
  
  <pre><code>{
      "name": "Parent",
      "type":"record",
      "fields":[
          {
              "name":"children",
              "type":{
                  "name":"Child",
                  "type":"record",
                  "fields":[
                      {"name":"name", "type":"string"}
                  ]
              }
          }
      ] 
  }
  </code></pre>
  
  <p>Now problem is  that I can mark field <code>children</code> as either <code>Child</code> type or array but do not know how to mark it as a <code>array of objects of type Child</code> class?</p>
  
  <p>Can anyone please help?</p>