Skip to main content

create_error

Function create_error 

Source
pub fn create_error(
    code: &str,
    path: &str,
    context: HashMap<&str, String>,
) -> ValidationError
Expand description

Create a ValidationError from an error code, JSON path, and context values that are interpolated into the message template.