How to negate a condition in "route_rule.data"? #1045
-
I have this condition: And I can't deny it, I have used several combinations using the ! symbol and none of them work:
This is the file:
By the way, in the official documentation you can find it in this format: However that doesn't work and throws an error during JSON parsing. These forms work: My suggestion is that they update the documentation or at least point it out. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Condition does support Logical NOT operator "!".
would reject any path which is prefixed with /register, /recover , or /swap, for example, /register /registerabc /register/abc, etc. What's path you used in the test? And in your conf file, primitive "default_t()" is used, so any request which doesn't match following conditions would fall back to cluster "cluster_other_page"
Yes, the embedded quotes should be escaped for json parsing. We may update the doc later. Thanks for the suggestion. |
Beta Was this translation helpful? Give feedback.
Condition does support Logical NOT operator "!".
The Expression:
would reject any path which is prefixed with /register, /recover , or /swap, for example, /register /registerabc /register/abc, etc. What's path you used in the test?
And in your conf file, primitive "default_t()" is used, so any request which doesn't match following conditions would fall back to cluster "cluster_other_page"