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 Parsing Policy Templates and Expose in MarshallJSON #42

Open
independentid opened this issue Sep 26, 2024 · 0 comments
Open

Comments

@independentid
Copy link

When parsing an AVP template such as:

permit(
    principal == ?principal,
    action in [avpTest::Action::"ReadAccount"],
    resource == ?resource
);

The parser will return an error: parser error: parse error at <input>:3:19 "principal": expected ident

As a work around, replacing ?resource and ?Principal with Template::"resource" etc seems to be a good enough workaround to convert to JSON format for now.

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