Clarify that only boolean TRUE values pass filter

Signed-off-by: Calum Murray <cmurray@redhat.com>
This commit is contained in:
Calum Murray 2023-10-23 10:22:17 -04:00
parent d0eccd083b
commit 35eaaae5e9
No known key found for this signature in database
GPG Key ID: D9837BD1D90C1512
1 changed files with 4 additions and 4 deletions

View File

@ -872,10 +872,10 @@ this specification:
Use of this MUST have a string value, representing a [CloudEvents SQL
Expression](../cesql/spec.md).
The filter result MUST be true if the result value of the expression,
coerced to boolean, equals to the `TRUE` boolean value,
otherwise MUST be false if an error occurred while evaluating the expression or if the result value,
coerced to boolean, equals to the `FALSE` boolean value.
The filter result MUST be true if the result value of the expression
equals to the `TRUE` boolean value, otherwise MUST be false if an
error occurred while evaluating the expression or if the result value
is equal to the `FALSE` boolean value, or if the result value is not a boolean.
Implementations SHOULD reject subscriptions with invalid CloudEvents SQL
expressions.