-
Notifications
You must be signed in to change notification settings - Fork 399
Allow the filter JSON to be passed inline in the /sync request #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -32,7 +32,12 @@ paths: | |||
name: filter | |||
type: string | |||
description: |- | |||
The ID of a filter created using the filter API. | |||
The ID of a filter created using the filter API or a filter JSON |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the JSON be URL-encoded? Or something else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be passed like any other query parameter, encoded as UTF-8 and URL encoded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do very explicitly state that all strings must be UTF-8 encoded in the API Standards section. As far as I know, this is the first place where a query parameter is anything other than a string or an int.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is saying that it is passed a string sufficient? c3a1318
LGTM |
Allow the filter JSON to be passed inline in the /sync request
Allow filter JSON object in the filter query parameter in /sync Documented by matrix-org/matrix-spec-proposals#224
No description provided.