pub(crate) fn violations_of(
payload: &[u8],
schema: Option<&Schema>,
mode: Mode,
) -> Vec<Violation>Expand description
Everything in payload that schema does not permit.
Parses on its own account rather than reusing any earlier parse. A payload that will not parse at all is not reported here — unlike OWP, DDS has no conversion step of its own to have already failed on it, so this simply has nothing to say about the schema rather than saying it twice.