Skip to main content

is_not_empty

Function is_not_empty 

Source
pub fn is_not_empty(
    field: &str,
    value: &Value,
    custom: Option<&str>,
) -> Result<(), ValidationException>
Expand description

Requires a JSON value to be non-empty (non-null, non-empty string/array/object).