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

Adds PolicySet .toJson #283

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

muditchaudhary
Copy link
Contributor

@muditchaudhary muditchaudhary commented Jan 24, 2025

Description of Changes

  • Adds .toJson for PolicySet and corresponding FFI functions
  • Adds unit tests for .toJson
  • Changes visibility of CedarJson to public and add modifications to comply with spotbugs
  • Modifies JSONTests to use immutable ObjectReader instead of ObjectMapper for CedarJson

Note:
This change depends on this PR which exposes ffi::PolicySet .parse() in cedar_policy which will be released in the next minor version update of cedar-policy i.e., 4.4.

Signed-off-by: Mudit Chaudhary <chmudit@amazon.com>
Signed-off-by: Mudit Chaudhary <chmudit@amazon.com>
…jectMapper

Signed-off-by: Mudit Chaudhary <chmudit@amazon.com>
Signed-off-by: Mudit Chaudhary <chmudit@amazon.com>
Signed-off-by: Mudit Chaudhary <chmudit@amazon.com>
@muditchaudhary muditchaudhary marked this pull request as ready for review January 26, 2025 23:40
@muditchaudhary muditchaudhary marked this pull request as draft January 30, 2025 19:10
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.

1 participant