checkExprfunctionfunction checkExpr(e: unknown, path?: string): string | undefinedWhy a value is not an expression, or nothing.
The expression language of attribute-based policies (commons data 0041-identity-authorize): a small closed tree written as JSON, with no code in it, that reads attributes by their keys and answers true, false or unknown. An attribute that is not known makes what reads it unknown, and what is unknown never allows.
checkExprfunctionfunction checkExpr(e: unknown, path?: string): string | undefinedWhy a value is not an expression, or nothing.
evaluatefunctionfunction evaluate(e: Expr, attrs: Readonly<Record<string, unknown>>): TruthEvaluates an expression.
| Parameter | What it is |
|---|---|
e | the expression |
attrs | the attributes that are known, by key |
Returns: true, false, or unknown
Truthtypeno test imports ittype Truth = boolean | undefined;What an expression says: true, false, or unknown (undefined).