MapSchema.DefaultTypes.MSchemaAny (map_schema v0.2.2) View Source

Any type

Link to this section Summary

Functions

Always the same

Always the same

Always true

Callback implementation for MapSchema.CustomType.name/0.

Callback implementation for MapSchema.CustomType.nested?/0.

Link to this section Functions

Specs

cast(any()) :: any()

Always the same

Examples

iex> alias MapSchema.DefaultTypes.MSchemaAny
iex> MSchemaAny.cast(["1","2"])
["1","2"]

Specs

doctest_values() :: [{any(), any()}]

Always the same

Examples

iex> alias MapSchema.DefaultTypes.MSchemaAny
iex> MSchemaAny.doctest_values()
[{"\"its_anything\"","\"its_anything\""}]

Specs

is_valid?(any()) :: boolean()

Always true

Examples

iex> alias MapSchema.DefaultTypes.MSchemaAny
iex> MSchemaAny.is_valid?(["1","2"])
true

iex> alias MapSchema.DefaultTypes.MSchemaAny
iex> MSchemaAny.is_valid?("always is anything")
true

Specs

name() :: atom()

Callback implementation for MapSchema.CustomType.name/0.

Callback implementation for MapSchema.CustomType.nested?/0.