avro-builder
avro-builder copied to clipboard
Ruby DSL to create Avro schemas
Is there a way to import (or otherwize) bring in shared fields into a record? (if not..this would be soooo great) e.g, like this ``` record :foobar do required :highlight_id,...
This would be used to skip generating an Avro JSON schema file (.avsc) for abstract types.
It would be useful to optionally accept a single DSL file (or list of files) to regenerate instead of reprocessing all files.
This should include all the methods in the DSL, where they can be called, and options accepted. Perhaps this should be a separate document instead of making the README extremely...
When loading a DSL from a file infer the namespace from the file path relative to a configured load path. The namespace should still be overridable in the DSL.
See http://avro.apache.org/docs/current/spec.html#order
By default generated schemas are validated by attempting to parse using the `avro` gem. This is a placeholder for now to collect other validations that would be useful to give...
Is this useful outside protocols?
According to the [Avro specification](https://avro.apache.org/docs/1.12.0/specification/) any attribute can be added to a field and used as extra metadata provided it does not clash with the other attributes specified. To enable...