MapSchema.Types (map_schema v0.2.7) View Source

MapSchema.Types

Link to this section Summary

Functions

Take the custom_types map of schema and try find the type, if dont found the module (is_nil) then search the type in default types.

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

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

Link to this function

cast_value(module_custom_type, value)

View Source
Link to this function

check_is_valid?(module_custom_type, after_cast_value)

View Source
Link to this function

execute_autocast_typechecking(module_custom_type, value)

View Source
Link to this function

get_custom_type_module(custom_types, type)

View Source

Take the custom_types map of schema and try find the type, if dont found the module (is_nil) then search the type in default types.

The default types always can be rewrite

Link to this function

get_doctest(custom_types, type)

View Source

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

have_doctest?(custom_types, type)

View Source
Link to this function

is_flexible_nested?(custom_types, 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.