Skip to content

Commit

Permalink
Typing
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Snaps <[email protected]>
  • Loading branch information
alexsnaps committed Nov 5, 2024
1 parent 13d6c22 commit c9ae52a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions src/data/cel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -639,10 +639,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());
}

Expand Down

0 comments on commit c9ae52a

Please sign in to comment.