View Source Shapex.Types.List (shapex v0.2.0)

Module that contains List type for Shapex.

It's better to use the Shapex.Types.list/1 function to create a schema, since it covers implementation details and provides a more user-friendly API.

Summary

Types

@type t() :: %Shapex.Types.List{item: Shapex.Type.t()}

Functions

@spec validate(t(), list()) :: {:ok, :valid} | {:error, term()}

Callback implementation for Shapex.Type.validate/2.