Add get_string convenience method to Context for string value extraction #1319
Labels
internal-improvement
Refactoring, minor performance improvement, or other changes that Cedar users may never notice
pending-triage
The cedar maintainers haven't looked at this yet. Automicaly added to all new issues.
Describe the improvement you'd like to request
Problem
When working with Context objects, extracting values requires verbose pattern matching through the internal AST structure. This creates unnecessary boilerplate code and complexity for a common operation.
Proposed Solution
Add a
get
convenience method toContext
that would simplify value extraction:Let me know if you'd like any adjustments to the issue title or description!
Open PR: #1318
Describe alternatives you've considered
No response
Additional context
No response
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: