avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Experiment: a JSON Schema describing Avro schemas
Date Fri, 22 Feb 2013 22:01:10 GMT
A few quick comments:
 - properties besides those mentioned in the spec are permitted as
metadata, e.g., {"type":"int", "java":"short"}.
 - a name can be prefixed by a namespace, e.g., {"type":"record",
 - a schema can be the name of a schema defined earlier, e.g.
{"type":"record", "name":"List", "fields":[{"name":"next",
"type":[null, "List"]}]}


On Fri, Feb 22, 2013 at 1:45 PM, Francis Galiegue <fgaliegue@gmail.com> wrote:
> Hello,
> I have written a JSON Schema describing Avro schemas (in their JSON
> form), at least to the best of my knowledge -- that is, I read the
> spec, adapted, injected some sample data, and until now it seems to
> work:
> https://github.com/fge/sample-json-schemas/blob/master/avro/avro-schema.json
> Note that this is a structural description only, as such it won't
> express constraints such as "this or that namespace must exist" etc.
> Comments welcome! In particular data that is failing and why -- I
> could not find much data so far...
> Have fun,
> --
> Francis Galiegue, fgaliegue@gmail.com
> Try out your JSON Schemas: http://json-schema-validator.herokuapp.com

View raw message