Type transformer / validator
superbobry opened this issue · comments
transformer
is a module, which converts primitive YAML types to the types defined in the corresponding record, if we need to convert between the types we don't support, we require the user to provide a callback module:
-module(my_tranformer).
transform(string, my_awesome_type, _Value) ->
42.
validator
simply calls callback_module:validate/1
, which takes a single Value
argument.
Done in ed897b1.