Validate a rule expression with tests (WAF or Smart Firewall)
validate_waf_expression_with_testsCheck the syntax and matching behavior of Wirefilter rule expressions by testing them against sample data, returning validation and match results.
Instructions
Validate a Wirefilter rule expression and match it against test data (mock data if none given). rule_type selects the scheme: 'waf' (HTTP L7, default) or 'smart_firewall' (L3/L4 + JA4; no http.* fields). Returns valid (boolean), error_message (string), matched (boolean), and test_error (string) if the test fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | ||
| test | No | ||
| rule_type | No | waf |