Split the event_filter into a event_filter and a room_event_filter that

extends it.

So that we don't include "rooms" and "not_rooms" keys for the public_user_data
and private_user_data filters.
pull/977/head
Mark Haines 10 years ago
parent 00fd4aac26
commit 41bc09ea22

@ -37,22 +37,6 @@
"items": { "items": {
"type": "string" "type": "string"
} }
},
"rooms": {
"type": "array",
"description":
"A list of room IDs to include. If this list is absent then all rooms are included.",
"items": {
"type": "string"
}
},
"not_rooms": {
"type": "array",
"description":
"A list of room IDs to exclude. If this list is absent then no rooms are excluded.",
"items": {
"type": "string"
}
} }
} }
} }

@ -0,0 +1,21 @@
{
"type": "object",
"properties": {
"rooms": {
"type": "array",
"description":
"A list of room IDs to include. If this list is absent then all rooms are included.",
"items": {
"type": "string"
}
},
"not_rooms": {
"type": "array",
"description":
"A list of room IDs to exclude. If this list is absent then no rooms are excluded.",
"items": {
"type": "string"
}
}
}
}

@ -7,17 +7,17 @@
"state": { "state": {
"description": "description":
"The state events to include for rooms.", "The state events to include for rooms.",
"allOf": [{"$ref": "definitions/event_filter.json"}] "allOf": [{"$ref": "definitions/room_event_filter.json"}]
}, },
"timeline": { "timeline": {
"description": "description":
"The message and state update events to include for rooms.", "The message and state update events to include for rooms.",
"allOf": [{"$ref": "definitions/event_filter.json"}] "allOf": [{"$ref": "definitions/room_event_filter.json"}]
}, },
"ephemeral": { "ephemeral": {
"description": "description":
"The events that aren't recorded in the room history, e.g. typing and receipts, to include for rooms.", "The events that aren't recorded in the room history, e.g. typing and receipts, to include for rooms.",
"allOf": [{"$ref": "definitions/event_filter.json"}] "allOf": [{"$ref": "definitions/room_event_filter.json"}]
} }
} }
}, },

Loading…
Cancel
Save