Skip to content

validateVisibilityRule

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/reader-access/visibility.util.ts

Validate an owner-submitted rule (the admin PUT). Returns a list of problems; empty = valid. Depth/size-capped so a hostile payload can't be stored.

Signature

ts
function validateVisibilityRule(rule: unknown, depth): string[]

Parameters

NameType
ruleunknown
depthany

Returns: string[]

Was this page helpful?

Download as PDF