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

Add support for specifying formatter config #235

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

felixzheng98
Copy link
Contributor

Issue #, if available:

Description of changes:
This PR adds support for specifying a formatter config.

It adds a new method to the Java PolicyFormatter called policiesStrToPrettyWithConfig that accepts a Config object. This is mapped to a cedar_policy_formatter::Config struct and used for calling the formatter.

Signed-off-by: Felix Zheng <felix.zheng@mongodb.com>
Signed-off-by: Felix Zheng <felix.zheng@mongodb.com>
@shaobo-he-aws
Copy link
Contributor

LGTM.

@shaobo-he-aws shaobo-he-aws merged commit 80f8077 into cedar-policy:main Oct 16, 2024
4 checks passed
@shaobo-he-aws
Copy link
Contributor

Thanks for your contribution @felixzheng98

felixzheng98 added a commit to felixzheng98/cedar-java that referenced this pull request Oct 19, 2024
Signed-off-by: Felix Zheng <felix.zheng@mongodb.com>
felixzheng98 added a commit to felixzheng98/cedar-java that referenced this pull request Oct 19, 2024
Signed-off-by: Felix Zheng <felix.zheng@mongodb.com>
cdisselkoen pushed a commit that referenced this pull request Oct 22, 2024
Signed-off-by: Felix Zheng <felix.zheng@mongodb.com>
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

Successfully merging this pull request may close these issues.

4 participants