API Reference Zoi v#0.17.1
View SourceModules
Zoi is a schema validation library for Elixir, designed to provide a simple and flexible way to define and validate data.
The Context provides the parsing information such as the input data, parsed data and errors.
Zoi.describe/1 introspect schemas, finding it's :description metadata and type specifications to generate documentation strings.
This documentation that can be used in HexDocs or other places where you want to describe the options your schema accepts.
Represents a validation error with detailed information.
Helpers for integrating Zoi objects with Phoenix (or any Phoenix.HTML.FormData)
forms.
This module defines schemas for ISO time, date, and datetime formats, along with transformations to convert them into Elixir's native types.
JSON Schema is a declarative language for annotating and validating JSON document's structure, constraints, and data types. It helps you standardize and define expectations for JSON data.
Utilities for traversing and transforming Zoi schemas.
A helper module to define and validate structs using Zoi schemas.
This module provides functions to extract @enforce_keys and struct fields from a Zoi struct schema.
It is particularly useful when you want to create Elixir structs that align with Zoi schemas.
Protocol for defining types in Zoi.
Protocol for generating Elixir type specifications from Zoi schemas.