Skip to main content

validate_policy_patch

Function validate_policy_patch 

Source
pub fn validate_policy_patch(check: PatchCheck<'_>) -> Result<(), PatchError>
Expand description

What: Check a policy patch against the exact supported grammar. Why: Each rule removes one way a proposal could address another path or change another mode.

In TS you’d write (pseudocode):

validatePolicyPatch({ patch, expectedRevision }); // throws TypeError