pub fn require_known_lexicon(
collection: &str,
record: &Value,
validate: Option<bool>,
) -> Option<ApiError>Expand description
The pre-check validate: true asks for, which is the explicit stance for
one request.
Runs before anything is stored. The optimistic check the store performs is a subset of this one, so a record that passes here passes there.