exchema v0.4.0 Exchema.Types.Map

Represents a Map with given key and value types.

If you want a map of integers to atoms, then you want to use {Exchema.Types.Map, {Exchema.Types.Integer, Exchema.Types.Atom}} as your type.

If you don’t care about map key and value types, it will default to :any, so Exchema.Types.Map is the same as {Exchema.Types.Map, {:any, :any}}.