Function: validateContextRuleScope()
Makaio Framework / services-core/context-rules / validateContextRuleScope
Function: validateContextRuleScope()
Section titled “Function: validateContextRuleScope()”validateContextRuleScope(
rule):void
Defined in: ../../../packages/services/core/src/context-rules/schemas.ts:115
Validate scope invariants for a context rule input.
Invariants:
global: noprojectId, nosessionIdproject: requiresprojectId, nosessionIdsession: requiressessionId,projectIdoptional
Parameters
Section titled “Parameters”Pick<ContextRuleScopeFields, "scope" | "projectId" | "sessionId">
Rule-like object carrying scope fields
Returns
Section titled “Returns”void
Throws
Section titled “Throws”Error when the scope invariants are violated