Skip to main content

validate_scope

Function validate_scope 

Source
pub fn validate_scope(scope: &DelegationScope) -> Result<(), DelegationError>
Expand description

Validates that a delegation scope is well-formed.

A scope is well-formed if:

  • Actions, resources, and chains contain no empty strings
  • If limits are present, numeric fields parse as valid numbers