pub fn normalise(
definitions: &Definitions,
shape: &ShapeDef,
value: &Value,
) -> ValueExpand description
The document as shape reads it, for a document that check accepted: an object keeps the keys its shape names, in
the order the shape lists them (a tag first), then the keys its shape types without naming (in the document’s
order), a map drops a key called __proto__, and a union is read as the alternative that matches. A closed object
that strips (see crate::ObjectDef::strips) loses the keys it does not name. The value is undefined for a
document check refused.