dict_schema.pl -- Dict validation and conversion
Converts string to atoms and vice versa. Validates
your dicts. See the project's README
file for examples.
- register_schema(+Name, +Schema) is det
- Registers a named schema. The existing schema
with the same name is replaced.
- unregister_schema(+Name) is det
- Unregisters the given named schema. Does
nothing when the schema does not exist.
- convert(+In, +Schema, -Out, -Errors) is det
- Checks/converts the input value according to the schema.
Errors contains the errors occurred during the
check/conversion process. When Schema is atom,
the named schema will be used.