From 25a9157f0a51ebc932c4132160c572932f0b75ce Mon Sep 17 00:00:00 2001 From: No Date: Thu, 16 Nov 2023 08:25:15 -0500 Subject: [PATCH] Add event_property_is and event_property_contains props to PushConditions (#1673) Signed-off-by: tusooa Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> --- .../client_server/newsfragments/1673.clarification | 1 + data/api/client-server/definitions/push_condition.yaml | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 changelogs/client_server/newsfragments/1673.clarification diff --git a/changelogs/client_server/newsfragments/1673.clarification b/changelogs/client_server/newsfragments/1673.clarification new file mode 100644 index 00000000..8ab3da4d --- /dev/null +++ b/changelogs/client_server/newsfragments/1673.clarification @@ -0,0 +1 @@ +Add missing properties for `event_property_is` and `event_property_contains` push conditions to `PushConditions` object. diff --git a/data/api/client-server/definitions/push_condition.yaml b/data/api/client-server/definitions/push_condition.yaml index 8a3a9f32..4c35cfe4 100644 --- a/data/api/client-server/definitions/push_condition.yaml +++ b/data/api/client-server/definitions/push_condition.yaml @@ -23,8 +23,8 @@ properties: key: type: string description: |- - Required for `event_match` conditions. The dot-separated field of the - event to match. + Required for `event_match`, `event_property_is` and `event_property_contains` + conditions. The dot-separated field of the event to match. Required for `sender_notification_permission` conditions. The field in the power level event the user needs a minimum power level for. Fields @@ -43,5 +43,11 @@ properties: optionally prefixed by one of, ==, <, >, >= or <=. A prefix of < matches rooms where the member count is strictly less than the given number and so forth. If no prefix is present, this parameter defaults to ==. + value: + type: ["string", "integer", "boolean", "null"] + description: |- + Required for `event_property_is` and `event_property_contains` conditions. + A non-compound [canonical JSON](/appendices#canonical-json) value to match + against. required: - kind