Kaizen
Browse modulesAccessaccess/sharedFunctions

Function: collectSelectorAttributePaths()

function collectSelectorAttributePaths(selector: ResourceSelector): string[];

Defined in: shared/access/kernel.ts:408

Collect every attribute path a selector references through a $subject.* / $context.* / $environment.* placeholder, normalized to the <namespace>.<attr> form the attribute registry declares ($context.* is normalized to environment.* — see normalizePlaceholderPath — so an attribute referenced via either spelling only ever needs declaring once, under environment). A plain (non-$) selector value references no attribute. Used by authoring-time validation (anti-spoofing §3) to reject selectors that read undeclared attributes.

Parameters

ParameterType
selectorResourceSelector

Returns

string[]

On this page