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.