validate_scope_variables

Function validate_scope_variables 

Source
pub fn validate_scope_variables(
    principal: &EntityUid,
    action: &EntityUid,
    resource: &EntityUid,
    schema: &Schema,
) -> Result<(), RequestValidationError>
Expand description

Validates scope variables against the provided schema

Returns Ok(()) if the context is valid according to the schema, or an error otherwise

This validation is already handled by Request::new, so there is no need to separately call if you are validating the whole request