Skip to main content

validate_raw_documents

Function validate_raw_documents 

Source
pub fn validate_raw_documents<I, S>(raws: I) -> Result<Vec<AdmittedMessage>>
where I: IntoIterator<Item = S>, S: AsRef<str>,
Expand description

Validate one or more raw JSON documents. Set rules run across the slice.

This function and validate_message are the only contract-admission path. Public serde::Deserialize on AgentWaitMessage can bypass schema and normative checks. Callers must not treat serde_json::from_str as admission.

A single document is checked alone. Two or more documents are also checked as a set: revision freeze, fairness across outcomes, and ack/retention. Independent goldens are not one registration set.