pub fn create_error(
code: &str,
path: &str,
context: HashMap<&str, String>,
) -> ValidationErrorExpand description
Create a ValidationError from an error code, JSON path, and context
values that are interpolated into the message template.