diff --git a/README.md b/README.md index cb52533..a638a36 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ actionSets: - service: ratelimit-service scope: ratelimit-scope-a predicates: - - auth.identity.anonymous == "true" + - auth.identity.anonymous == true data: - expression: key: my_header diff --git a/src/data/cel.rs b/src/data/cel.rs index a45d13b..a4c0105 100644 --- a/src/data/cel.rs +++ b/src/data/cel.rs @@ -656,10 +656,8 @@ mod tests { "request.query".into(), "%F0%9F%91%BE".bytes().collect(), ))); - let predicate = Predicate::route_rule( - "decodeQueryString(request.query) == {'👾': ''}", - ) - .expect("This is valid!"); + let predicate = Predicate::route_rule("decodeQueryString(request.query) == {'👾': ''}") + .expect("This is valid!"); assert!(predicate.test()); }