Skip to main content

check_union

Function check_union 

Source
fn check_union(
    catalog: &Catalog,
    document: &str,
    refs: &[String],
    closed: bool,
    value: &Value,
    path: &str,
    depth: usize,
) -> Result<(), InvalidRecord>
Expand description

Checks a union: an object whose $type chooses the schema.