View Source AvroEx.Schema.Context (AvroEx v1.2.0)

Link to this section Summary

Link to this section Types

Specs

t() :: %AvroEx.Schema.Context{
  names: %{required(AvroEx.Schema.full_name()) => AvroEx.Schema.Record.t()}
}

Link to this section Functions

Link to this function

add_name(context, name, value)

View Source

Specs

add_name(t(), binary(), any()) :: t()
Link to this function

add_schema(context, schema)

View Source

Specs

add_schema(
  t(),
  binary()
  | %{
      __struct__:
        AvroEx.Schema.Array
        | AvroEx.Schema.Enum
        | AvroEx.Schema.Fixed
        | AvroEx.Schema.Map
        | AvroEx.Schema.Primitive
        | AvroEx.Schema.Record
        | AvroEx.Schema.Union
    }
) :: any()

Specs

lookup(t(), String.t()) :: nil | AvroEx.Schema.schema_types()