| Did you know ... | Search Documentation: |
| Predicates |
error(Formal, json_path(Path)), where Path is a
list of properties from the root element to the culprit element. Formal
is typically a type, domain or existence error. This file contains the
message hooks to generate a human readable error from these exceptions
using print_message/2.
If Input is a file name, the loaded and compiled schema is
cached. Reusing the cache validates the modification file of the schema
file and reloads it if the file's time stamp has changed. Note that
true and false are valid schemas and cannot be
used as file names.
This predicate is often used through validate_json_dict/3, which mantains a cached mapping from the JSON Schema to Spec.