fn validation_targets<'a>(
statement: &'a Statement,
shapes: &'a Shapes,
) -> Vec<(Option<&'a str>, &'a Validator)>Expand description
The schemas a statement is validated against, each labelled with the
collection whose record type it carries (None for the base schema).
A statement that can reach record.write is checked against every
described collection it names, or every described collection when it
names none. One that reaches no described collection, or cannot reach
record.write at all, is checked against the base schema, where no
record type is in play — unless it reads the record, which the base
schema cannot type; then nothing checks it, and unvalidated_for
says so.