Skip to main content

normalize

Function normalize 

Source
pub fn normalize(raw: RawPolicy) -> Result<Policy>
Expand description

Normalize a validated RawPolicy into the stable Policy model.

Applies all defaults and validates semantic constraints: valid glob patterns, valid role names, known output target IDs.

ยงErrors

Returns Error::InvalidRoleName for role names with disallowed characters, Error::Glob for malformed glob patterns, Error::UnknownTarget for unrecognized output target IDs, or Error::NoOutputs if the resolved outputs list is empty.