litmus v1.0.1 API Reference

Modules

Litmus is a data validation library for Elixir.

This type provides validation for any type of value.

This type validates and converts values to booleans. It converts truthy and falsy values to true or false.

This type validates DateTimes. It accepts either DateTime structs or ISO-8601 strings. ISO-8601 datetime with timezone strings will be converted into DateTimes.

This type validates that a value is list.

This type validates that values are numbers, and converts them to numbers if possible. It converts "stringified" numerical values to numbers.

This type validates and converts values to strings It converts boolean and number values to strings.