event_match
push rule condition behavior for non-string values is unspecified
#3082
Labels
clarification
An area where the spec could do with being more explicit
Link to problem area: https://matrix.org/docs/spec/client_server/r0.6.1#conditions
Issue
The
event_match
condition has akey
parameter that allows choosing any part of an event to be matched against a glob pattern. Glob matches operate on strings, but the JSON value atkey
might be an array, a number, a boolean ornull
too (an object is impossible if matching is implemented the same way as in Synapse, i.e. by first flattening the event JSON). The spec should clarify what to do in this case. The two possibilities I see:See also:
event_match
: spec is wrong for event_match.pattern push rule condition #2637, Glob flavor used forevent_match
is not clear #3075The text was updated successfully, but these errors were encountered: