View Source Avrogen.Schema (avrogen v0.8.5)
Utils for extracting various info from avro schemas. Schemas can be records or enums.
Summary
Functions
Get a list of external types referenced in a given record/enum.
Get a schema's fully qualified name by combining its namespace and name.
Load a schema from a file.
Get a schema's name.
Get a schema's namespace.
Resolve a schema's file path from its fqn.
Sort a list of avro schemas in topological order based on dependencies.
Types
@type schema() :: map()
Functions
Get a list of external types referenced in a given record/enum.
Get a schema's fully qualified name by combining its namespace and name.
Load a schema from a file.
Get a schema's name.
Get a schema's namespace.
Note: Unsure what to do if the schema has no namespace - make it a MatchError for now...
Resolve a schema's file path from its fqn.
Sort a list of avro schemas in topological order based on dependencies.