Skip to main content

only_fields

Function only_fields 

Source
fn only_fields(
    object: &Map<String, Value>,
    declared: &[&str],
    what: &str,
) -> Result<(), InvalidRecord>
Expand description

Refuses any field of object outside declared (and $type).