Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Synapse >=1.66 does not send default: false in pushrules anymore #13884

Closed
nico-famedly opened this issue Sep 23, 2022 · 1 comment
Closed

Synapse >=1.66 does not send default: false in pushrules anymore #13884

nico-famedly opened this issue Sep 23, 2022 · 1 comment

Comments

@nico-famedly
Copy link
Contributor

Description

It seems like #13522 regressed sending the "default" field if it is set to false. This causes issues with our SDK, since that relies on those definitions in the spec to be correct and now fails to parse the rules because of schema violations.

If this field is not sent anymore, the spec should be adapted so that our openapi generator doesn't need another special case.

Spec link: https://github.com/matrix-org/matrix-spec/blob/7ab3aecf29fc0fd1daba7842db1cf95461edde5e/data/api/client-server/definitions/push_rule.yaml#L54

Steps to reproduce

  • add a custom push rule
  • check if Synapse sends the default field

Homeserver

other homeservers

Synapse Version

1.67

Installation Method

Other (please mention below)

Platform

custom built docker image

Relevant log output

Expected bool, got Null

Anything else that would be useful to know?

No response

@richvdh
Copy link
Member

richvdh commented Sep 23, 2022

Duplicate of #13837

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants