avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curtis Jensen <cur...@the-jensens.org>
Subject Schema for array of records
Date Mon, 21 Mar 2011 15:28:45 GMT
How does one create a schema for an array of records?

For example, I have a record schema for a user (name and id; see
below).  I would like to serialize an array of users.  I've tried
various combinations of things, and I'm not getting it to work.


 "name": "User",
 "type": "record",
 "fields": [
   {"name": "name", "type": "string"},
   {"name": "id", "type": "int"}]
 "type": "array", "items": "User"

View raw message