cedar_policy_validator

Function context_schema_for_action

Source
pub fn context_schema_for_action(
    schema: &ValidatorSchema,
    action: &EntityUID,
) -> Option<ContextSchema>
Expand description

Since different Actions have different schemas for Context, you must specify the Action in order to get a ContextSchema.

Returns None if the action is not in the schema.