Avrora.Storage.Registry.get

You're seeing just the function get, go back to Avrora.Storage.Registry module for more information.

Get schema by integer ID or by the subject name.

If subject name was used by default the latest version will be used unless it explicitly given (e.g io.confluent.Payment:1).

Examples

...> {:ok, schema} = Avrora.Storage.Registry.get(1)
...> schema.full_name
"io.confluent.Payment"
...> {:ok, schema} = Avrora.Storage.Registry.get("io.confluent.Payment")
...> schema.full_name
"io.confluent.Payment"