Skip to content

Why does strings.any_prefix_match failed to match an input #581

Discussion options

You must be logged in to vote

The Rego playground doesn't expect an outer input attribute in the provided input JSON document; this is something you use when e.g. passing parameters to the REST query API, but not to the playground.

If you change the input JSON to

{
    "attributes": {
        "request": {
            "http": {
                "path": "/anything"
            }
        }
    }
}

as in: https://play.openpolicyagent.org/p/9CN3VEixkU, your code should evaluate as expected.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ylbeethoven
Comment options

Answer selected by ylbeethoven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants