This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
"default" field in PushRule omitted for user-defined push rules #6636
Labels
A-Spec-Compliance
places where synapse does not conform to the spec
z-bug
(Deprecated Label)
z-p2
(Deprecated Label)
Description
The spec states that for push rules returned from the server, the field
default
is required. Synapse however seems to omit this field for user-defined rules, leading to deserialization failures for a spec-compliant client that expects it when fetching push rules.Steps to reproduce
PUT /_matrix/client/r0/pushrules/{scope}/{kind}/{ruleId}
.GET /_matrix/client/r0/pushrules/
.default
field.Since the spec states that the
default
field is required, I did not expect the server to be allowed to omit it.Version information
Version: 1.7.3
Install method: Ansible playbook from https://github.com/spantaleev/matrix-docker-ansible-deploy
The text was updated successfully, but these errors were encountered: