API Reference data_schema v0.1.0
Modules
DataSchemas are declarative specifications of how to create structs from some kind of data source. For example you can define a schema that knows how to turn an elixir map into a struct, casting all of the values as it goes. Alternatively you can set up a schema to ingest XML data and create structs from the values inside the XML.
Defines how DataSchema.to_struct!/2
should access data for each given field type.
An error for when a schema is specified incorrectly. Usually this means there has been a syntax error when defining the schema.
Provides helper functions for schemas where the input data is a map.
Defines a way to use elixir maps as an input data source. This will Map.get/2
the fields
from the source data, meaning it will return nil in the case of the key being missing.