Skip to main content

validate_correlation_policy

Function validate_correlation_policy 

Source
pub fn validate_correlation_policy(
    raw: &str,
    origin: &str,
) -> Result<(), String>
Expand description

Validate a candidate correlation policy document.

The shipped policy is compiled in and validated at first use; this entry point exists so the same fail-closed rules can be exercised against hand-written documents without a rebuild.

ยงErrors

Returns the human-readable reason the document was rejected.