Skip to content

Add Support for Parsing Policy Templates and Expose in MarshallJSON #42

@independentid

Description

@independentid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions