MapSchema.Utils (map_schema v0.1.0) View Source

The module have the utils functions.

Link to this section Summary

Functions

Take a type of data and returns a tuple {testing_value, testing_result} with the example values that we used in doctest.

Take list of fields and build a full name.

Take a type of data and return the guard that we need use for check the value.

The field of schema can save flexible content, if the user say that it use a :map, :list, or any custom type. In this cases we wont check the type of data.

Link to this section Functions

Take a type of data and returns a tuple {testing_value, testing_result} with the example values that we used in doctest.

Link to this function

get_field_name(lista_fields)

View Source

Take list of fields and build a full name.

Take a type of data and return the guard that we need use for check the value.

Link to this function

is_flexible_nested?(type)

View Source

The field of schema can save flexible content, if the user say that it use a :map, :list, or any custom type. In this cases we wont check the type of data.