package awsm
Module Awsm.ImportSource
Extension of Core library.
check_string_min s m returns Ok () if s is at least of size m, or an error otherwise.
check_string_max s m returns Ok () if s is at most of size m, or an error otherwise.
check_pattern s p returns Ok () if s matches with pattern p, or an error otherwise.
check_list_min l m returns Ok () if l is at least of size m, or an error otherwise.
check_list_max l m returns Ok () if l is at most of size m, or an error otherwise.
check_int_min i m returns Ok () if i is at least equal to m, or an error otherwise.
check_int_max i m returns Ok () if i is at most equal to m, or an error otherwise.
check_int64_min i m f returns Ok () if i is at least equal to m, or an error otherwise.
check_int64_min i m f returns Ok () if i is at most equal to m, or an error otherwise.
check_float_min i m returns Ok () if i is at least equal to m, or an error otherwise.
check_float_max i m returns Ok () if i is at most equal to m, or an error otherwise.
string_of_xml ~kind node checks if node represents a string, and returns it. Otherwise, it returns an error (mentioning the kind of value being parsed).
Convert a JSON value to a boolean (or fail with an exception).
Convert a JSON value to a float (or fail with an exception mentioning the kind of value being parsed).
Convert a JSON value to a string (or fail with an exception mentioning the kind of value being parsed).
Convert a JSON value to a timestamp (or fail with an exception).
Convert a JSON value to a list (or fail with an exception mentioning the kind of value being parsed).