API Reference peri v#0.4.0
View SourceModules
Peri is a schema validation library for Elixir, inspired by Clojure's Plumatic Schema. It provides a flexible and powerful way to define and validate data structures using schemas. The library supports nested schemas, optional fields, custom validation functions, and various type constraints.
Responsible to convert between Peri <> Ecto types definitions
Represents any type. Passes data to Cassandra as is.
Custom Ecto type for storing atoms as strings
Custom Ecto type for storing either of two types
Custom Ecto type for storing one of many types, aka sum types
Custom Ecto type for storing PIDs, use with caution
Custom Ecto type for storing tuples with multiple types/elements
Defines the structure and functions for handling validation errors in the Peri schema validation library.
A module for generating sample data based on Peri schemas using StreamData.
Exception raised when an invalid schema is encountered.
The Peri.Parser
module is responsible for managing the state during schema validation.
It centralizes functions to handle updating data, adding errors, and managing the path within
the data structure being validated.