Does the "in" operator work in the playground? I'm...
# help
m
Does the "in" operator work in the playground? I'm trying to write a parallel example to
Copy code
condition:
  match:
    any:
      of:
        - expr: R.attr.status == "PENDING_APPROVAL"
        - expr: "GB" in R.attr.geographies
        - expr: P.attr.geography == "GB"
like this:
Copy code
condition:
          match:
              expr: "name" in request.resource.attr
but just getting
Copy code
Failed to read: failed to convert YAML to JSON: yaml: line 28: did not find expected key
a
Hey this an annoying YAML/JSON/CEL parsing issue - you can’t start with a
"
If you change your rule to break onto a new line it will work
Copy code
condition:
              match:
                  expr: >
                    "name" in request.resource.attr
m
ooo there we go!