mozilla / jsonschema-transpiler

Compile JSON Schema into Avro and BigQuery schemas
Mozilla Public License 2.0
43 stars 9 forks source link

Implement grammar for Avro #29

Closed acmiyaguchi closed 5 years ago

acmiyaguchi commented 5 years ago

This fixes #14. I learned from the other grammars, making the avro schema cleaner than the other implementations. The spec was useful during this stage.

https://avro.apache.org/docs/current/spec.html

https://github.com/acmiyaguchi/jsonschema-transpiler/blob/2de4ca494d8488fac1d4041ddcf88d189bbf3671/src/jsonschema.rs#L79-L85

https://github.com/acmiyaguchi/jsonschema-transpiler/blob/2de4ca494d8488fac1d4041ddcf88d189bbf3671/src/bigquery.rs#L52-L55

https://github.com/acmiyaguchi/jsonschema-transpiler/blob/2de4ca494d8488fac1d4041ddcf88d189bbf3671/src/bigquery.rs#L69-L72

badboy commented 5 years ago

(I have no idea why my review was submitted twice)