Zodish.Type.Map (zodish v0.2.4)

View Source

Summary

Functions

Either enables or disables coercion for the given Map type.

Creates a new Map type.

Creates a new Map type.

Types

shape()

@type shape() :: %{required(atom()) => Zodish.Type.t()}

t()

@type t() :: %Zodish.Type.Map{
  coerce: boolean(),
  mode: :strip | :strict,
  shape: shape()
}

Functions

coerce(type, value \\ true)

Either enables or disables coercion for the given Map type.

new(opts)

Creates a new Map type.

new(opts, shape)

Creates a new Map type.

shape(type, shape)

strict(type)

strip(type)