Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Policy compiler] Return explanation output policy #974

Open
seirl opened this issue Jul 4, 2024 · 0 comments
Open

[Policy compiler] Return explanation output policy #974

seirl opened this issue Jul 4, 2024 · 0 comments

Comments

@seirl
Copy link
Collaborator

seirl commented Jul 4, 2024

The policy compiler now parses the "explanation" field of match blocks, but does not do anything with it.

It would be useful to provide an API that returns a copy of the policy, except the output would be replaced by the contents of the "explanation" block. This would effectively generate a separate expression that outputs the explanation instead of the result of the policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant