MapSchema.DefaultTypes.MSchemaMap (map_schema v0.2.2) View Source
Map type
Link to this section Summary
Functions
Callback implementation for MapSchema.CustomType.cast/1
.
Callback implementation for MapSchema.CustomType.doctest_values/0
.
Using is_map guard
Callback implementation for MapSchema.CustomType.name/0
.
Callback implementation for MapSchema.CustomType.nested?/0
.
Link to this section Functions
Specs
Callback implementation for MapSchema.CustomType.cast/1
.
Specs
Callback implementation for MapSchema.CustomType.doctest_values/0
.
Specs
Using is_map guard
Examples
iex> alias MapSchema.DefaultTypes.MSchemaMap
iex> MSchemaMap.is_valid?(%{ a: "1"})
true
iex> alias MapSchema.DefaultTypes.MSchemaMap
iex> MSchemaMap.is_valid?("it isnt a map")
false
Specs
name() :: atom()
Callback implementation for MapSchema.CustomType.name/0
.
Callback implementation for MapSchema.CustomType.nested?/0
.