mozilla / jsonschema-transpiler

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

Fix #16: Add Union type to ast::Type #20

Closed acmiyaguchi closed 5 years ago

acmiyaguchi commented 5 years ago

Fixes #16. This adds a union type to the AST that can be mapped to the JSON Schema's oneOf construct. This also adds defaults to the data structure.