mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-31 19:43:45 +01:00
Clean up examples in filter.yaml
Indentation, excess examples.
This commit is contained in:
parent
26a7a341f0
commit
1cbcaba2c7
|
|
@ -54,37 +54,33 @@ paths:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "definitions/sync_filter.yaml"
|
- $ref: "definitions/sync_filter.yaml"
|
||||||
example: {
|
example: {
|
||||||
"room": {
|
"room": {
|
||||||
"state": {
|
"state": {
|
||||||
"types": ["m.room.*"],
|
"types": ["m.room.*"],
|
||||||
"not_rooms": ["!726s6s6q:example.com"]
|
"not_rooms": ["!726s6s6q:example.com"]
|
||||||
},
|
|
||||||
"timeline": {
|
|
||||||
"limit": 10,
|
|
||||||
"types": ["m.room.message"],
|
|
||||||
"not_rooms": ["!726s6s6q:example.com"],
|
|
||||||
"not_senders": ["@spam:example.com"]
|
|
||||||
},
|
|
||||||
"ephemeral": {
|
|
||||||
"types": ["m.receipt", "m.typing"],
|
|
||||||
"not_rooms": ["!726s6s6q:example.com"],
|
|
||||||
"not_senders": ["@spam:example.com"]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"presence": {
|
"timeline": {
|
||||||
"types": ["m.presence"],
|
"limit": 10,
|
||||||
"not_senders": ["@alice:example.com"]
|
"types": ["m.room.message"],
|
||||||
|
"not_rooms": ["!726s6s6q:example.com"],
|
||||||
|
"not_senders": ["@spam:example.com"]
|
||||||
},
|
},
|
||||||
"event_format": "client",
|
"ephemeral": {
|
||||||
"event_fields": ["type", "content", "sender"]
|
"types": ["m.receipt", "m.typing"],
|
||||||
}
|
"not_rooms": ["!726s6s6q:example.com"],
|
||||||
|
"not_senders": ["@spam:example.com"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"presence": {
|
||||||
|
"types": ["m.presence"],
|
||||||
|
"not_senders": ["@alice:example.com"]
|
||||||
|
},
|
||||||
|
"event_format": "client",
|
||||||
|
"event_fields": ["type", "content", "sender"]
|
||||||
|
}
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: The filter was created.
|
description: The filter was created.
|
||||||
examples:
|
|
||||||
application/json: {
|
|
||||||
"filter_id": "66696p746572"
|
|
||||||
}
|
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue