title: How to create an Avro schema?
body: <p>I would like to know what the Avro schema would look like for this json document.</p>
  <p>tweet.json:</p>
  <pre><code>{
    &quot;_id&quot;: {
      &quot;$oid&quot; : &quot;54d148b471eb130b1e8b4567&quot;
    },
    &quot;nome&quot;: &quot;Marco Correia&quot;,
    &quot;tweet&quot;: &quot;This and a simple tweet&quot;,
    &quot;datahora&quot;: &quot;Tue Feb 03 22:15:54 +0000 2015&quot;
  }
  </code></pre>
  <p>The schema I've created is giving error.</p>
  <p>schema.avsc:</p>
  <pre><code>{
    &quot;type&quot; : &quot;record&quot;,
    &quot;name&quot; : &quot;twitter_schema&quot;,
    &quot;namespace&quot; : &quot;com.miguno.avro&quot;,
    &quot;fields&quot; : [
      {
          &quot;name&quot; : &quot;_id&quot;, &quot;type&quot;: &quot;array&quot;,&quot;items&quot;: &quot;bytes&quot;
      },
  
      { &quot;name&quot; : &quot;nome&quot;,&quot;type&quot; : &quot;string&quot;,&quot;doc&quot; : &quot;Name of the user account on Twitter.com&quot; },
      { &quot;name&quot; : &quot;tweet&quot;, &quot;type&quot; : &quot;string&quot;,&quot;doc&quot; : &quot;The content of the user's Twitter message&quot; },
      { &quot;name&quot; : &quot;datahora&quot;, &quot;type&quot; : &quot;string&quot;,&quot;doc&quot; : &quot;Unix epoch time in seconds&quot;}
  
      ],
    &quot;doc:&quot; : &quot;A basic schema for storing Twitter messages&quot;
  }
  </code></pre>