Closed aaronjeline closed 5 days ago
I'd like to prioritize this issue as it's been shown to help multiple PRs.
One PR this would have helped is #1027. (Note that the PR also updates the ContextRecord
invariant to accurately reflect that a Context
can never be purely unknown).
I think the right solution here is to store the context contents as a hash map (or similar data structure) instead of a record expression.
Category
Internal refactors/changes
Describe the feature you'd like to request
cedar_policy_core::ast::request::Context
looks like:We should enforce this invariant statically if possible
Describe alternatives you've considered
Status quo, enforce it dynamically.
Additional context
No response
Is this something that you'd be interested in working on?