Rules
Validate a CEL condition
Check whether a CEL expression is syntactically valid without creating a rule.
post/v1/rules/validate
Request
- Base URL: https://api.scrip.dev
- URL: https://api.scrip.dev/v1/rules/validate
- Auth: HTTP bearer
Request body
Response
Validation result
Example response
{
"message": "CEL condition is valid",
"note": "Validation checks syntax only. Field references are not verified against an event schema.",
"valid": true,
"warnings": [
{
"code": "unknown_state_key",
"key": "purchaseCnt",
"kind": "counter",
"message": "unknown counter \"purchaseCnt\" on participant: no rule in this program writes it; did you mean \"purchase_count\"?",
"scope": "participant",
"suggestion": "purchase_count"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.