View Source DataSchema.MapAccessor (data_schema v0.5.0)

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.

Link to this section Summary

Functions

Accesses the source data using Map.get/2 when a :field type is encountered during struct creation. If the incoming data is not a map we will function clause error.

Accesses the source data using Map.get/2 when a :has_many type is encountered during struct creation.

Accesses the source data using Map.get/2 when a :has_one type is encountered during struct creation.

Accesses the source data using Map.get/2 when a :list_of type is encountered during struct creation.

Link to this section Functions

Accesses the source data using Map.get/2 when a :field type is encountered during struct creation. If the incoming data is not a map we will function clause error.

Accesses the source data using Map.get/2 when a :has_many type is encountered during struct creation.

Accesses the source data using Map.get/2 when a :has_one type is encountered during struct creation.

Accesses the source data using Map.get/2 when a :list_of type is encountered during struct creation.