Currently, if a policy_expr has a JSON pointer (most all of them do), we can't parse the expression into the structured Expr type until the analysis completes and we have the value to insert at said pointer. This means we can't ensure that the policy expression strings from a policy file are syntactically valid until the analysis steps are already complete.
Update the Expr type to support a variant marking JSON pointers, and change code that currently holds policy expressions as strings to Exprs.
Currently, if a
policy_expr
has a JSON pointer (most all of them do), we can't parse the expression into the structuredExpr
type until the analysis completes and we have the value to insert at said pointer. This means we can't ensure that the policy expression strings from a policy file are syntactically valid until the analysis steps are already complete.Update the
Expr
type to support a variant marking JSON pointers, and change code that currently holds policy expressions as strings toExpr
s.