title: Storing Avro schema in schema registry
body: <p>I am using Confluent's JDBC connector to send data into Kafka in the Avro format.  I need to store this schema in the schema registry, but I'm not sure what format it accepts.  I've read the documentation <a href="http://docs.confluent.io/3.0.0/schema-registry/docs/api.html#schemas" rel="noreferrer">here</a>, but it doesn't mention much.</p>
  
  <p>I have tried this (taking the Avro output and pasting it in - for one int and one string field):</p>
  
  <pre><code>curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json"     --data '{"type":"struct","fields":[{"type":"int64","optional":true,"field":"id"},{"type":"string","optional":true,"field":"serial"}],"optional":false,"name":"test"}' http://localhost:8081/subjects/view/versions
  </code></pre>
  
  <p>but I get the error: {"error_code":422,"message":"Unrecognized field: type"}</p>