Skip to main content

eval_jsonlogic

Function eval_jsonlogic 

Source
pub fn eval_jsonlogic(module: &str, context: &Value) -> &'static str
Expand description

Minimal JSONLogic — supports the SINGLE pattern shipped in rate-limit.json:

{"and": [{"<=": [{"var": "X"}, N]}]}

Ports _eval_jsonlogic. Anything else falls through to ALLOW.